This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/6779: -O option causes preprocessing problems
- From: neil at gcc dot gnu dot org
- To: avd at openlinksw dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 23 May 2002 09:50:37 -0000
- Subject: Re: preprocessor/6779: -O option causes preprocessing problems
- Reply-to: neil at gcc dot gnu dot org, avd at openlinksw dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: -O option causes preprocessing problems
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Thu May 23 02:50:36 2002
State-Changed-Why:
This is the same as the frequently reported non-bug.
Glibc defines printf as a macro if optimization is on.
At the top of your file, put #undef printf to solve this.
GCC 3.2 allows you to put directives in macro arguments,
so this Gblic issue disappears, but the changes will
not be backported to 3.1 .
Why was the message reported by the compiler unclear to
you? I'm worried as I don't think I can make it any clearer.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6779