public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Strange gcc-3.0.1 preprocessor
@ 2001-10-14  7:46 Nick Kurshev
  2001-10-14  8:12 ` Neil Booth
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Kurshev @ 2001-10-14  7:46 UTC (permalink / raw)
  To: gcc

Hello!

I've tried to compile my project with new gcc-3.0.1 and got strange error. :(

command:
gcc -D__MACHINE__=ia32 ...

source code:
    #define _INLINES <biewlib/sysdep/##__MACHINE__/_inlines.h>
    #define __CONFIG <biewlib/sysdep/##__MACHINE__/__config.h>
    #include __CONFIG
    #include _INLINES

stderr output:
In file included from biewlib/biewlib.h:25,
                 from biewlib/bbio.h:21,
                 from biewlib/bbio.c:26:
biewlib/sysdep/_sys_dep.h:30:14: warning: pasting "/" and "__MACHINE__" does not give a valid preprocessing token
biewlib/sysdep/_sys_dep.h:30:22: biewlib/sysdep/__MACHINE__/__config.h: No such file or directory
biewlib/sysdep/_sys_dep.h:31:14: warning: pasting "/" and "__MACHINE__" does not give a valid preprocessing token
biewlib/sysdep/_sys_dep.h:31:22: biewlib/sysdep/__MACHINE__/_inlines.h: No such file or directory

Only one question: Is it a bug or is it a new feature of gcc-3.0.1?
Any previouse versions of gcc since 2.7.2.1 upto 2.95.3 handle this code correctly.

Best regards! Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-15 10:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-14  7:46 Strange gcc-3.0.1 preprocessor Nick Kurshev
2001-10-14  8:12 ` Neil Booth
2001-10-14 10:45   ` Nick Kurshev
2001-10-14 10:59     ` Neil Booth
2001-10-14 11:06       ` Nick Kurshev
2001-10-14 11:09         ` Neil Booth
2001-10-15 10:59           ` Nick Kurshev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).