preprocessor/6779: -O option causes preprocessing problems
neil@gcc.gnu.org
neil@gcc.gnu.org
Thu May 23 02:50:00 GMT 2002
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
More information about the Gcc-bugs
mailing list