From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10676 invoked by alias); 12 Mar 2004 21:38:35 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10669 invoked from network); 12 Mar 2004 21:38:34 -0000 Received: from unknown (HELO e33.co.us.ibm.com) (32.97.110.131) by sources.redhat.com with SMTP; 12 Mar 2004 21:38:34 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i2CLcXfS557296 for ; Fri, 12 Mar 2004 16:38:33 -0500 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i2CLcW4V351466 for ; Fri, 12 Mar 2004 14:38:33 -0700 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id i2CLcMvE045428 for ; Fri, 12 Mar 2004 15:38:22 -0600 Date: Fri, 12 Mar 2004 21:38:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb@sources.redhat.com Subject: Re: compiler error on PPC64 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-03/txt/msg00124.txt.bz2 Sorry forgot to add... This is using GDB 6.1 sources from CVS. -- Manoj On Fri, 12 Mar 2004, Manoj Iyer wrote: > > I am getting an error message from the compiler on PPC64 (gcc version > powerpc64-linux-gcc (GCC) 3.3.3-hammer) > > ppc-linux-tdep.c:956: error: parse error before numeric constant > > This happens when the file is compiled as 64bit, on suse with 2.6 kernel > headers. What I think is wrong is that, is there any reason to use > > enum { > ELF_NGREG = 48, > ELF_NFPREG = 33, > ELF_NVRREG = 33 > }; > > instead of using > > #define ELF_NGREG 48 > #define ELF_NFPREG 33 > #define ELF_NVRREG 33 > > Because, in the header file, > > /usr/include/asm-ppc64/elf.h:#define ELF_NGREG 48 /* includes nip, msr, > lr, etc. */ > > is already defined as 48 and the compiler sees 48 = 48 in the enum and so > complains. > > Thanks > Manoj Iyer > >