From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SC0nA-0004WA-KZ for garchives@archives.gentoo.org; Mon, 26 Mar 2012 03:40:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43759E05EC; Mon, 26 Mar 2012 03:40:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0F608E05EC for ; Mon, 26 Mar 2012 03:40:15 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6B66B1B4059 for ; Mon, 26 Mar 2012 03:40:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 3C955E5402 for ; Mon, 26 Mar 2012 03:40:13 +0000 (UTC) From: "Jory Pratt" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jory Pratt" Message-ID: <1332733139.5adeb6a7f8337d7aa7e2c74dbcc0154a1de2d2fc.anarchy@gentoo> Subject: [gentoo-commits] proj/mozilla:master commit in: eclass/ X-VCS-Repository: proj/mozilla X-VCS-Files: eclass/mozcoreconf-2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: anarchy X-VCS-Committer-Name: Jory Pratt X-VCS-Revision: 5adeb6a7f8337d7aa7e2c74dbcc0154a1de2d2fc X-VCS-Branch: master Date: Mon, 26 Mar 2012 03:40:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3bfb8f44-b3ac-4087-8528-8b68d0751fce X-Archives-Hash: b5baea6831c5426fbd64631819553d96 commit: 5adeb6a7f8337d7aa7e2c74dbcc0154a1de2d2fc Author: Jory A. Pratt gentoo org> AuthorDate: Mon Mar 26 03:38:59 2012 +0000 Commit: Jory Pratt gentoo org> CommitDate: Mon Mar 26 03:38:59 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/mozilla.git;a= =3Dcommit;h=3D5adeb6a7 remove gcc-3 support with ewarn for unsupported compiler, allow -O3 to be used for optimization with custom-optimization --- eclass/mozcoreconf-2.eclass | 36 ++++++++---------------------------- 1 files changed, 8 insertions(+), 28 deletions(-) diff --git a/eclass/mozcoreconf-2.eclass b/eclass/mozcoreconf-2.eclass index 5b74318..a58773d 100644 --- a/eclass/mozcoreconf-2.eclass +++ b/eclass/mozcoreconf-2.eclass @@ -76,6 +76,12 @@ moz_pkgsetup() { export ALDFLAGS=3D${LDFLAGS} =20 python_set_active_version 2 + + if [[ $(gcc-major-version) -eq 3 ]]; then + ewarn "Unsupported compiler detected, DO NOT file bugs for" + ewarn "outdated compilers. Bugs opened with gcc-3 will be closed" + ewarn "invalid." + fi } =20 mozconfig_init() { @@ -135,6 +141,8 @@ mozconfig_init() { mozconfig_annotate "from CFLAGS" --enable-optimize=3D-O0 elif [[ ${ARCH} =3D=3D ppc ]] && has_version '>=3Dsys-libs/glibc-2.8';= then mozconfig_annotate "more than -O1 segfaults on ppc with glibc-2.8" --= enable-optimize=3D-O1 + elif is-flag -O3; then + mozconfig_annotate "from CFLAGS" --enable-optimize=3D-O3 elif is-flag -O1; then mozconfig_annotate "from CFLAGS" --enable-optimize=3D-O1 elif is-flag -Os; then @@ -170,36 +178,8 @@ mozconfig_init() { ppc64) append-flags -fPIC -mminimal-toc ;; - - ppc) - # Fix to avoid gcc-3.3.x micompilation issues. - if [[ $(gcc-major-version).$(gcc-minor-version) =3D=3D 3.3 ]]; then - append-flags -fno-strict-aliasing - fi - ;; - - x86) - if [[ $(gcc-major-version) -eq 3 ]]; then - # gcc-3 prior to 3.2.3 doesn't work well for pentium4 - # see bug 25332 - if [[ $(gcc-minor-version) -lt 2 || - ( $(gcc-minor-version) -eq 2 && $(gcc-micro-version) -lt 3 ) ]] - then - replace-flags -march=3Dpentium4 -march=3Dpentium3 - filter-flags -msse2 - fi - fi - ;; esac =20 - if [[ $(gcc-major-version) -eq 3 ]]; then - # Enable us to use flash, etc plugins compiled with gcc-2.95.3 - mozconfig_annotate "building with >=3Dgcc-3" --enable-old-abi-compat-w= rappers - - # Needed to build without warnings on gcc-3 - CXXFLAGS=3D"${CXXFLAGS} -Wno-deprecated" - fi - # Go a little faster; use less RAM append-flags "$MAKEEDIT_FLAGS" =20