# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.495 2006/01/03 14:25:08 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.496 2006/01/03 14:55:11 wolf31o2 Exp $
+
+ 03 Jan 2006; Chris Gianelloni <wolf31o2@gentoo.org> arch/alpha.py,
+ arch/amd64.py, arch/mips.py, arch/ppc.py, arch/ppc64.py, arch/s390.py,
+ arch/sh.py, arch/sparc.py, arch/sparc64.py, arch/x86.py:
+ Added -pipe to default CFLAGS/CXXFLAGS and doing some minor cleanup
+ (comments mostly).
03 Jan 2006; Eric Edgar <rocket@gentoo.org>
modules/generic_stage_target.py:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/alpha.py,v 1.3 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/alpha.py,v 1.4 2006/01/03 14:55:11 wolf31o2 Exp $
import builder,os
from catalyst_support import *
builder.generic.__init__(self,myspec)
self.settings["mainarch"]="alpha"
self.settings["CHROOT"]="chroot"
- self.settings["CFLAGS"]="-mieee"
+ self.settings["CFLAGS"]="-mieee -pipe"
class arch_alpha(generic_alpha):
"builder class for generic alpha (ev4+)"
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/amd64.py,v 1.4 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/amd64.py,v 1.5 2006/01/03 14:55:11 wolf31o2 Exp $
import builder
"builder class for generic amd64 (athlon64/opteron)"
def __init__(self,myspec):
generic_amd64.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2"
+ self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CHOST"]="x86_64-pc-linux-gnu"
def register(foo):
"Inform main catalyst program of the contents of this plugin."
foo.update({"amd64":arch_amd64})
-
+
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/mips.py,v 1.5 2005/07/06 18:50:25 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/mips.py,v 1.6 2006/01/03 14:55:11 wolf31o2 Exp $
import builder,os
from catalyst_support import *
"Builder class for MIPS I [Big-endian]"
def __init__(self,myspec):
generic_mips.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips1 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips1 -mabi=32 -pipe"
class arch_mips2(generic_mips):
"Builder class for MIPS II [Big-endian]"
def __init__(self,myspec):
generic_mips.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips2 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips2 -mabi=32 -pipe"
class arch_mips3(generic_mips):
"Builder class for MIPS III [Big-endian]"
def __init__(self,myspec):
generic_mips.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips3 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips3 -mabi=32 -pipe"
class arch_mips4(generic_mips):
"Builder class for MIPS IV [Big-endian]"
def __init__(self,myspec):
generic_mips.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips4 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips4 -mabi=32 -pipe"
class arch_mips4n32(generic_mips):
"Builder class for MIPS IV [Big-endian N32]"
def __init__(self,myspec):
generic_mips.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips4 -mabi=n32"
+ self.settings["CFLAGS"]="-O2 -mips4 -mabi=n32 -pipe"
self.settings["CHOST"]="mips64-unknown-linux-gnu"
class arch_mipsel1(generic_mipsel):
"Builder class for all MIPS I [Little-endian]"
def __init__(self,myspec):
generic_mipsel.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips1 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips1 -mabi=32 -pipe"
class arch_mipsel2(generic_mipsel):
"Builder class for all MIPS II [Little-endian]"
def __init__(self,myspec):
generic_mipsel.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips2 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips2 -mabi=32 -pipe"
class arch_mipsel3(generic_mipsel):
"Builder class for all MIPS III [Little-endian]"
def __init__(self,myspec):
generic_mipsel.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips3 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips3 -mabi=32 -pipe"
class arch_mipsel4(generic_mipsel):
"Builder class for all MIPS IV [Little-endian]"
def __init__(self,myspec):
generic_mipsel.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mips4 -mabi=32"
+ self.settings["CFLAGS"]="-O2 -mips4 -mabi=32 -pipe"
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/ppc.py,v 1.15 2005/11/30 21:34:03 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/ppc.py,v 1.16 2006/01/03 14:55:11 wolf31o2 Exp $
import os,builder
from catalyst_support import *
-# gcc-3.3.3 required to do G5 optimizations
-# install a 32bit kernel personality changer (that works) before building on a ppc64 host
-# new gcc optimization feature requires -fno-strict-aliasing needed, otherwise code complains
-# use the experimental thing for nptl builds
+# gcc-3.3.3 is required to do G5 optimizations
+# install a 32bit kernel personality changer (that works) before building on a
+# ppc64 host new gcc optimization feature requires -fno-strict-aliasing needed,
+# otherwise code complains use the experimental thing for nptl builds
class generic_ppc(builder.generic):
"abstract base class for all ppc builders"
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/ppc64.py,v 1.3 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/ppc64.py,v 1.4 2006/01/03 14:55:11 wolf31o2 Exp $
import builder
"builder class for generic ppc64 (G5/Power4/Power4+)"
def __init__(self,myspec):
generic_ppc64.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2"
+ self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CHOST"]="powerpc64-unknown-linux-gnu"
def register(foo):
"Inform main catalyst program of the contents of this plugin."
foo.update({"ppc64":arch_ppc64})
-
+
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/s390.py,v 1.3 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/s390.py,v 1.4 2006/01/03 14:55:11 wolf31o2 Exp $
import builder,os
from catalyst_support import *
"builder class for generic s390"
def __init__(self,myspec):
generic_s390.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2"
+ self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CHOST"]="s390-ibm-linux-gnu"
def register(foo):
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/sh.py,v 1.3 2005/12/23 06:38:18 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/sh.py,v 1.4 2006/01/03 14:55:11 wolf31o2 Exp $
import builder,os
from catalyst_support import *
"Builder class for SH [Little-endian]"
def __init__(self,myspec):
generic_sh.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2"
+ self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CHOST"]="sh-unknown-linux-gnu"
class arch_sh2(generic_sh):
"Builder class for SH-2 [Little-endian]"
def __init__(self,myspec):
generic_sh.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -m2"
+ self.settings["CFLAGS"]="-O2 -m2 -pipe"
self.settings["CHOST"]="sh2-unknown-linux-gnu"
class arch_sh3(generic_sh):
"Builder class for SH-3 [Little-endian]"
def __init__(self,myspec):
generic_sh.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -m3"
+ self.settings["CFLAGS"]="-O2 -m3 -pipe"
self.settings["CHOST"]="sh3-unknown-linux-gnu"
class arch_sh4(generic_sh):
"Builder class for SH-4 [Little-endian]"
def __init__(self,myspec):
generic_sh.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -m4"
+ self.settings["CFLAGS"]="-O2 -m4 -pipe"
self.settings["CHOST"]="sh4-unknown-linux-gnu"
class arch_sheb(generic_sheb):
"Builder class for SH [Big-endian]"
def __init__(self,myspec):
generic_sheb.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2"
+ self.settings["CFLAGS"]="-O2 -pipe"
self.settings["CHOST"]="sheb-unknown-linux-gnu"
class arch_sh2eb(generic_sheb):
"Builder class for SH-2 [Big-endian]"
def __init__(self,myspec):
generic_sheb.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -m2"
+ self.settings["CFLAGS"]="-O2 -m2 -pipe"
self.settings["CHOST"]="sh2eb-unknown-linux-gnu"
class arch_sh3eb(generic_sheb):
"Builder class for SH-3 [Big-endian]"
def __init__(self,myspec):
generic_sheb.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -m3"
+ self.settings["CFLAGS"]="-O2 -m3 -pipe"
self.settings["CHOST"]="sh3eb-unknown-linux-gnu"
class arch_sh4eb(generic_sheb):
"Builder class for SH-4 [Big-endian]"
def __init__(self,myspec):
generic_sheb.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -m4"
+ self.settings["CFLAGS"]="-O2 -m4 -pipe"
self.settings["CHOST"]="sh4eb-unknown-linux-gnu"
def register(foo):
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/sparc.py,v 1.6 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/sparc.py,v 1.7 2006/01/03 14:55:11 wolf31o2 Exp $
import builder,os
from catalyst_support import *
"builder class for generic sparc (sun4cdm)"
def __init__(self,myspec):
generic_sparc.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2"
- self.settings["CXXFLAGS"]="-O2"
+ self.settings["CFLAGS"]="-O2 -pipe"
+ self.settings["CXXFLAGS"]="-O2 -pipe"
self.settings["CHOST"]="sparc-unknown-linux-gnu"
def register(foo):
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/sparc64.py,v 1.5 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/sparc64.py,v 1.6 2006/01/03 14:55:11 wolf31o2 Exp $
import builder,os
from catalyst_support import *
"builder class for generic sparc64 (sun4u)"
def __init__(self,myspec):
generic_sparc64.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mcpu=ultrasparc"
- self.settings["CXXFLAGS"]="-O2 -mcpu=ultrasparc"
+ self.settings["CFLAGS"]="-O2 -mcpu=ultrasparc -pipe"
+ self.settings["CXXFLAGS"]="-O2 -mcpu=ultrasparc -pipe"
self.settings["CHOST"]="sparc-unknown-linux-gnu"
def register(foo):
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/arch/x86.py,v 1.21 2005/12/16 18:57:57 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/arch/x86.py,v 1.22 2006/01/03 14:55:11 wolf31o2 Exp $
import builder,os
from catalyst_support import *
"builder class for generic x86 (386+)"
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -mcpu=i686"
+ self.settings["CFLAGS"]="-O2 -mcpu=i686 -pipe"
self.settings["CHOST"]="i386-pc-linux-gnu"
class arch_i386(generic_x86):
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=i386"
+ self.settings["CFLAGS"]="-O2 -march=i386 -pipe"
self.settings["CHOST"]="i386-pc-linux-gnu"
class arch_i486(generic_x86):
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=i486"
+ self.settings["CFLAGS"]="-O2 -march=i486 -pipe"
self.settings["CHOST"]="i486-pc-linux-gnu"
class arch_i586(generic_x86):
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=i586"
+ self.settings["CFLAGS"]="-O2 -march=i586 -pipe"
self.settings["CHOST"]="i586-pc-linux-gnu"
class arch_pentium_mmx(arch_i586):
def __init__(self,myspec):
arch_i586.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=pentium-mmx"
+ self.settings["CFLAGS"]="-O2 -march=pentium-mmx -pipe"
self.settings["HOSTUSE"]=["mmx"]
class arch_i686(generic_x86):
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=i686"
+ self.settings["CFLAGS"]="-O2 -march=i686 -pipe"
self.settings["CHOST"]="i686-pc-linux-gnu"
class arch_athlon(generic_x86):
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=athlon"
+ self.settings["CFLAGS"]="-O2 -march=athlon -pipe"
self.settings["CHOST"]="i686-pc-linux-gnu"
self.settings["HOSTUSE"]=["mmx","3dnow"]
#this handles XP and MP processors
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=athlon-xp"
+ self.settings["CFLAGS"]="-O2 -march=athlon-xp -pipe"
self.settings["CHOST"]="i686-pc-linux-gnu"
self.settings["HOSTUSE"]=["mmx","3dnow","sse"]
class arch_pentium4(generic_x86):
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=pentium4"
+ self.settings["CFLAGS"]="-O2 -march=pentium4 -pipe"
self.settings["CHOST"]="i686-pc-linux-gnu"
self.settings["HOSTUSE"]=["mmx","sse"]
class arch_pentium3(generic_x86):
def __init__(self,myspec):
generic_x86.__init__(self,myspec)
- self.settings["CFLAGS"]="-O2 -march=pentium3"
+ self.settings["CFLAGS"]="-O2 -march=pentium3 -pipe"
self.settings["CHOST"]="i686-pc-linux-gnu"
self.settings["HOSTUSE"]=["mmx","sse"]