From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24486 invoked by alias); 11 May 2014 12:37:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24436 invoked by uid 48); 11 May 2014 12:37:36 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/25672] [4.7/4.8/4.9/4.10 Regression] cross build's libgcc picks up CFLAGS Date: Sun, 11 May 2014 12:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 4.1.0 X-Bugzilla-Keywords: build, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-05/txt/msg00940.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25672 --- Comment #36 from Andrew Pinski --- (In reply to Oleg Endo from comment #35) > Just ran into the same issue with trunk r210305, while building a cross SH > on OSX. The newly merged wide-int code contains some things, which clang > considers an error. Setting > export CFLAGS="-fheinous-gnu-extensions" > export CXXFLAGS="-fheinous-gnu-extensions" > > fixes that, but then one need also to set e.g. > export CFLAGS_FOR_TARGET="-O2" > export CXXFLAGS_FOR_TARGET="-O2" > > or else -fheinous-gnu-extensions will be passed to the xgcc. > This really should be documented somewhere... Can you file a bug about these errors? Are we sure it is a gnu extension issue or just clang thinks it is a gnu extension.