From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6947 invoked by alias); 12 Mar 2004 21:31:47 -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 6917 invoked from network); 12 Mar 2004 21:31:47 -0000 Received: from unknown (HELO e31.co.us.ibm.com) (32.97.110.129) by sources.redhat.com with SMTP; 12 Mar 2004 21:31:47 -0000 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e31.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i2CLVk5w335884 for ; Fri, 12 Mar 2004 16:31:46 -0500 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i2CLVijR117244 for ; Fri, 12 Mar 2004 14:31:45 -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 i2CLVVvE043234 for ; Fri, 12 Mar 2004 15:31:31 -0600 Date: Fri, 12 Mar 2004 21:31:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb@sources.redhat.com Subject: compiler error on PPC64 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-03/txt/msg00121.txt.bz2 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