From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C6B4E13847F for ; Mon, 14 Jan 2013 12:05:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8457021C0D6; Mon, 14 Jan 2013 12:05:07 +0000 (UTC) Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C646E21C049 for ; Mon, 14 Jan 2013 12:05:05 +0000 (UTC) Received: by mail-ee0-f41.google.com with SMTP id d41so1884201eek.14 for ; Mon, 14 Jan 2013 04:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NhZ9boRLDBjjP+I1RFlh3w8AO7O388ucV9mRt69IGtY=; b=q70V7wAh+IhPFUzffpYSv/g4ce8KF3irjRBapCk6DPilvIA+4y4ywOfhBm6pbnE0/t ThFSgK/3IhK4PuvqgonrNAdqzt1WCJ+/oVTcbNM3v2E94lx1VjLGJWxDrKEl3SWnvJIi SsJTIoMATMjryVQLbukDBwCPD1ZhE9b7yjNIEwwC3yyXw0qZXuhzdmepXii9biMrUZ0P 7zdudtmzT8Kqc+Rjgbt9VNxBq2U3IHkzYKc6DSx0SAWf4yt/A8SmcyPl0BiMGAwMLTu6 4N6fcagmV3pktxEGlmmzSpcMzS6qc6WeNuBd5UZAm8wi/UyfhntCOOvfqdLRhSqPsUPJ NWkg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.14.215.194 with SMTP id e42mr230906862eep.32.1358165104453; Mon, 14 Jan 2013 04:05:04 -0800 (PST) Received: by 10.223.14.193 with HTTP; Mon, 14 Jan 2013 04:05:04 -0800 (PST) In-Reply-To: References: Date: Mon, 14 Jan 2013 20:05:04 +0800 Message-ID: Subject: Re: [gentoo-user] How reliable is emerge --info output? From: Mark David Dumlao To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 247d1c69-5992-47de-a568-bb62fd042e5e X-Archives-Hash: b0b45c3ea169d64c985e21e6b4fed5d9 On Mon, Jan 14, 2013 at 7:18 PM, Adam Carter wrote: > The first CFLAGS (or CXXFLAGS) line below appears to be taken from the > environment setting, and the second is from the " was built > with the following" section of the emerge --info output. > > Squid looks as it should (the -flto is added to that package only) but for > firefox it appears that -O2 has been stripped, and not replaced with -O3, > which IIRC is the default for that package. > > # grep ^CFL /etc/make.conf > CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe" > > # emerge --info squid | grep ^CFL > CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe" > CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe -flto" > > # emerge --info firefox | grep ^CFL > CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm -O2 -pipe" > CFLAGS="-march=amdfam10 -pipe -mno-avx" > > Is anyone getting O2 or O3 in their emerge --info firefox output? > Seems to me like -O2 is the default, according to /usr/portage/eclass/mozcoreconf-2.eclass """ # Set optimization level if [[ ${ARCH} == hppa ]]; then mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0 elif [[ ${ARCH} == x86 ]]; then mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2 elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then # Set optimization level based on CFLAGS if is-flag -O0; then mozconfig_annotate "from CFLAGS" --enable-optimize=-O0 elif [[ ${ARCH} == ppc ]] && has_version '>=sys-libs/glibc-2.8'; then mozconfig_annotate "more than -O1 segfaults on ppc with glibc-2.8" --enable-optimize=-O1 elif is-flag -O3; then mozconfig_annotate "from CFLAGS" --enable-optimize=-O3 elif is-flag -O1; then mozconfig_annotate "from CFLAGS" --enable-optimize=-O1 elif is-flag -Os; then mozconfig_annotate "from CFLAGS" --enable-optimize=-Os else mozconfig_annotate "Gentoo's default optimization" --enable-optimize=-O2 fi else # Enable Mozilla's default mozconfig_annotate "mozilla default" --enable-optimize fi """ -- This email is: [ ] actionable [ ] fyi [x] social Response needed: [ ] yes [x] up to you [ ] no Time-sensitive: [ ] immediate [ ] soon [x] none