This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/9775: [FreeBSD] -O3 complains about stdarg functions
- From: ljrittle at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, ljrittle at gcc dot gnu dot org, mlelstv at dev dot de dot cw dot net, nobody at gcc dot gnu dot org
- Date: 26 Mar 2003 10:16:48 -0000
- Subject: Re: optimization/9775: [FreeBSD] -O3 complains about stdarg functions
- Reply-to: ljrittle at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, ljrittle at gcc dot gnu dot org, mlelstv at dev dot de dot cw dot net, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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