This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/4151: gcc will not permit printf() to be redefined with -O switch
- From: rodrigc at gcc dot gnu dot org
- To: chris at cs dot uwa dot edu dot au, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 24 Feb 2002 17:19:59 -0000
- Subject: Re: c/4151: gcc will not permit printf() to be redefined with -O switch
- Reply-to: rodrigc at gcc dot gnu dot org, chris at cs dot uwa dot edu dot au, 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: 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