This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Strange gcc-3.0.1 preprocessor
- To: gcc at gcc dot gnu dot org
- Subject: Strange gcc-3.0.1 preprocessor
- From: Nick Kurshev <nickols_k at mail dot ru>
- Date: Sun, 14 Oct 2001 18:49:39 +0400
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