From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3453 invoked by alias); 26 Mar 2003 10:16:49 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 3408 invoked by uid 48); 26 Mar 2003 10:16:48 -0000 Date: Wed, 26 Mar 2003 10:17:00 -0000 Message-ID: <20030326101648.3407.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, ljrittle@gcc.gnu.org, mlelstv@dev.de.cw.net, nobody@gcc.gnu.org From: ljrittle@gcc.gnu.org Reply-To: ljrittle@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, ljrittle@gcc.gnu.org, mlelstv@dev.de.cw.net, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: optimization/9775: [FreeBSD] -O3 complains about stdarg functions X-SW-Source: 2003-03/txt/msg01784.txt.bz2 List-Id: 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 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