public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/9775: [FreeBSD] -O3 complains about stdarg functions
@ 2003-03-26 10:17 ljrittle
0 siblings, 0 replies; only message in thread
From: ljrittle @ 2003-03-26 10:17 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, ljrittle, mlelstv, nobody
Synopsis: [FreeBSD] -O3 complains about stdarg functions
Responsible-Changed-From-To: unassigned->ljrittle
Responsible-Changed-By: ljrittle
Responsible-Changed-When: Wed Mar 26 10:16:48 2003
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->closed
State-Changed-By: ljrittle
State-Changed-When: Wed Mar 26 10:16:48 2003
State-Changed-Why:
I will tell you precisely why you got that error but you will have to
figure out how it happened to you and correct for it (since this is
a local install problem not a general problem).
Your installation is somehow using the system's base <stdarg.h>
from /usr/include instead of the one provided with gcc. For example,
when I preprocess your code, I see:
[...]
# 1 "/usr/local/beta-gcc/lib/gcc-lib/i386-unknown-freebsd4.8/3.4/include/stdarg.h" 1 3 4
[...]
I get your exact error message, if compile like this:
gcc32 -O3 -isystem /usr/include -c t.c
t.c: In function `bar':
t.c:8: `va_start' used in function with fixed args
t.c:8: `va_start' used in function with fixed args
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9775
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-26 10:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-26 10:17 optimization/9775: [FreeBSD] -O3 complains about stdarg functions ljrittle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).