From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1IBDWc-0006hx-B8 for garchives@archives.gentoo.org; Wed, 18 Jul 2007 17:41:22 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l6IHcYAe023469; Wed, 18 Jul 2007 17:38:34 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l6IHWFil011528 for ; Wed, 18 Jul 2007 17:32:30 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6221F65771 for ; Wed, 18 Jul 2007 17:18:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.653 X-Spam-Level: X-Spam-Status: No, score=-0.653 required=5.5 tests=[AWL=-0.654, BAYES_50=0.001] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eq0xi9lZT6yL for ; Wed, 18 Jul 2007 17:18:07 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 96AF965356 for ; Wed, 18 Jul 2007 17:18:03 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IB9gr-0003Ky-A5 for gentoo-dev@gentoo.org; Wed, 18 Jul 2007 15:35:41 +0200 Received: from static24-72-113-196.yorkton.accesscomm.ca ([24.72.113.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2007 15:35:41 +0200 Received: from dirtyepic by static24-72-113-196.yorkton.accesscomm.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2007 15:35:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Ryan Hill Subject: [gentoo-dev] Re: x86 toolchain changes heads up Date: Wed, 18 Jul 2007 07:35:27 -0600 Message-ID: References: <200707171947.14598.vapier@gentoo.org> <1184748819.9888.8.camel@tuxhugs> <469DDB2C.8060600@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: static24-72-113-196.yorkton.accesscomm.ca User-Agent: Thunderbird 2.0.0.5pre (X11/20070713) In-Reply-To: <469DDB2C.8060600@gentoo.org> Sender: news X-Archives-Salt: b0fa8a97-8a9b-4b93-9f98-3a40df85b143 X-Archives-Hash: 58fcddfbfc4ff8194b14e01b5a3da593 Vlastimil Babka wrote: > Peter Gordon wrote: >> On Tue, 2007-07-17 at 19:47 -0400, Mike Frysinger wrote: >>> historically, gcc on x86 has always defaulted to i386. some people noticed >>> recently that glibc-2.6 fails to build in this situation as they were only >>> setting -mtune via CFLAGS, not -march. i'll be tweaking gcc so that it will >>> default -march based on your CHOST. so all the i686-* people will now have a >>> default -march=i686 implied in their gcc systems, i586-* people will >>> have -march=i586, etc... keep in mind this is merely the default. >>> -mike >> Does this mean that any user-set "-march" flag is overridden for these >> cases? Just curious. > > I think he meant CHOST sets just *default* so any user-set -march > overrides that. > But I wonder what happens to user-set -mtune then? Since AFAIK -march > implies -mtune, will also the default -march override user-set -mtune? Previously GCC defaulted to -march=i386, which implied -mtune=i386 (actually, -mcpu for some reason (?)), when neither were set. People are setting CFLAGS="-mtune=pentium4 -O2 -fblah..." which therefore is defaulting to -march=i386 -mtune=pentium4. glibc-2.6 requires >= -march=i486. Kaboom. Now -march=$(echo $CHOST | awk -F- '{ print $1 }'), which implies -mtune=echo $CHOST | awk -F- '{ print $1 }' when neither are set. If _either_ are set by the user, they are overridden. ie. you can still set -march=i386 or -mtune=i386 or whatever you like. -- dirtyepic salesman said this vacuum's guaranteed gentoo org it could suck an ancient virus from the sea 9B81 6C9F E791 83BB 3AB3 5B2D E625 A073 8379 37E8 (0x837937E8) -- gentoo-dev@gentoo.org mailing list