optimization/9775: [FreeBSD] -O3 complains about stdarg functions
ljrittle@gcc.gnu.org
ljrittle@gcc.gnu.org
Wed Mar 26 10:17:00 GMT 2003
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
More information about the Gcc-prs
mailing list