c/4151: gcc will not permit printf() to be redefined with -O switch
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Sun Feb 24 09:29:00 GMT 2002
Synopsis: gcc will not permit printf() to be redefined with -O switch
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Feb 24 09:19:58 2002
State-Changed-Why:
Invalid testcase:
try.c:21: parse error before "const"
try.c:22: warning: conflicting types for built-in function `fprintf'
try.c: In function `fprintf':
try.c:26: `fmt' undeclared (first use in this function)
try.c:26: (Each undeclared identifier is reported only once
try.c:26: for each function it appears in.)
try.c:26: `va_start' used in function with fixed args
The decision to define printf() as a macro was
made in the GNU C library (glibc), not gcc.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4151
More information about the Gcc-bugs
mailing list