From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Markus F.X.J. Oberhumer" To: gcc-gnats@gcc.gnu.org Cc: debian-gcc@lists.debian.org Subject: preprocessor/2883: cpp stringizing problem 1 Date: Sun, 20 May 2001 11:46:00 -0000 Message-id: X-SW-Source: 2001-05/msg00545.html List-Id: >Number: 2883 >Category: preprocessor >Synopsis: cpp 3.0 200010426 stringizing problem 1 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Sun May 20 11:46:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Markus F.X.J. Oberhumer >Release: 3.0 20010426 (Debian prerelease) (Debian testing/unstable) >Organization: none >Environment: System: Linux laetitia 2.4.3 #1 Wed Apr 4 03:58:32 CEST 2001 i586 unknown Architecture: i586 =20 host: i386-pc-linux-gnu build: i386-pc-linux-gnu target: i386-pc-linux-gnu configured with: ../src/configure -v --enable-languages=3Dc,c++,java,f77,proto,objc --prefix=3D/usr --infodir=3D/share/info --mandir=3D /share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-x --without -included-gettext --disable-checking --enable-threads=3Dposix --enable-java-gc=3Dboehm --with-cpp-install-dir=3Dbin --enable-objc-gc=20 i386-linux >Description: cpp 3.0 200010426 stringizing problem 1 >How-To-Repeat: $ gcc-3.0 -c -Werror bug02.c bug02.c:13:23: pasting ""_"" and ""foo"" does not give a valid preprocessin= g token ---------------------------------------- $ cat bug02.c /* Markus F.X.J. Oberhumer * gcc 3.0 20010426 (Debian prerelease) bug report: * * cpp stringizing problem */ #if defined(__GNUC__) #define ASM_NAME(x) __asm__("_" ## #x) #else #define ASM_NAME(x) #endif extern void foo(void) ASM_NAME(foo); int dummy =3D 0; /* avoid empty source file */ >Fix: =20 >Release-Note: >Audit-Trail: >Unformatted: