This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 2.95.4 GCC bug
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: "VEGH, Janos" <J dot Vegh at atomki dot hu>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Dec 2003 14:12:21 +0000
- Subject: Re: 2.95.4 GCC bug
- Organization: Codesourcery LLC
- References: <20031215140513.31DA7774CB@server2.messagingengine.com>
VEGH, Janos wrote:
Hi,
I found a strange error on my Debian Linux, (2.4.18) with the 2.95.4 GCC.
I ported some routines from a Windows driver to a Linux driver
and I received the error message
parse error before '7'
You can reproduce this error when compiling the function
void MyFunction(int DS)
{}
if the __KERNEL__ symbol defined in the source
The key here is the symbol DS, which might be interpreted
by the gcc specially.
you have probably #included asm/ptrace.h or sys/reg.h, as this shows
grep '[^A-Za-z0-9_]DS[^A-Za-z0-9_]' **/*.h | grep define
asm/ptrace.h:#define DS 7
sys/reg.h:#define DS 7
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk