From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29707 invoked by alias); 31 Mar 2004 03:10:15 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 29686 invoked from network); 31 Mar 2004 03:10:14 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 31 Mar 2004 03:10:14 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i2V3AD1X027151; Tue, 30 Mar 2004 22:10:13 -0500 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2V3ADj25600; Tue, 30 Mar 2004 22:10:13 -0500 Received: from greed.delorie.com (dj.cipe.redhat.com [10.0.0.222]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2V3ADV02795; Tue, 30 Mar 2004 22:10:13 -0500 Received: from greed.delorie.com (localhost [127.0.0.1]) by greed.delorie.com (8.12.10/8.12.10) with ESMTP id i2V3ACYj015850; Tue, 30 Mar 2004 22:10:12 -0500 Received: (from dj@localhost) by greed.delorie.com (8.12.10/8.12.10/Submit) id i2V3ACS1015846; Tue, 30 Mar 2004 22:10:12 -0500 Date: Wed, 31 Mar 2004 07:55:00 -0000 Message-Id: <200403310310.i2V3ACS1015846@greed.delorie.com> From: DJ Delorie To: wilson@specifixinc.com CC: gcc@gcc.gnu.org In-reply-to: <1080701413.1213.25.camel@leaf.tuliptree.org> (message from Jim Wilson on 30 Mar 2004 18:50:13 -0800) Subject: Re: fixing vs WARN_CFLAGS vs cross builds References: <200403292112.i2TLC2xB002927@greed.delorie.com> <406A1FA1.1090602@specifixinc.com> <200403310143.i2V1hFA0014438@greed.delorie.com> <1080701413.1213.25.camel@leaf.tuliptree.org> X-SW-Source: 2004-03/txt/msg01740.txt.bz2 For background, I'm doing this: --build=i686-pc-linux-gnu --host=i586-pc-msdosdjgpp --target=i586-pc-msdosdjgpp So, it's a native build, but cross-built. DJGPP *does* use fixincludes, so that should run. Apparently, configure tests $CC for support of -Wno-long-long -Wno-variadic-macros (and a few others) and adds them to the stage1 flags if supported. However, $CC is a cross compiler, different from $BUILD_CC. "If the native compiler is GCC, we can enable warnings even in stage1." Well, it is GCC, and strict1 propogates to WARN_CFLAGS, and WARN_CFLAGS is passed to fixinc. But the compiler used in fixinc is a different gcc (BUILD_CC vs CC).