This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 2.95.4 GCC bug


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]