diff options
author | Joshua Kinard <kumba@gentoo.org> | 2004-09-22 20:27:17 +0000 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2004-09-22 20:27:17 +0000 |
commit | 7d0d1126ce2f7da7abc24eec34bbe469bd09a0c3 (patch) | |
tree | c3bab5ea22d92febfa276b1470e3f404c00269f2 /sys-devel/gcc/gcc-3.4.2-r2.ebuild | |
parent | Added to ~ppc. (Manifest recommit) (diff) | |
download | gentoo-2-7d0d1126ce2f7da7abc24eec34bbe469bd09a0c3.tar.gz gentoo-2-7d0d1126ce2f7da7abc24eec34bbe469bd09a0c3.tar.bz2 gentoo-2-7d0d1126ce2f7da7abc24eec34bbe469bd09a0c3.zip |
Added a patch for mips that adds -march=r10000 and -mtune=r10000 support to gcc.
Diffstat (limited to 'sys-devel/gcc/gcc-3.4.2-r2.ebuild')
-rw-r--r-- | sys-devel/gcc/gcc-3.4.2-r2.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys-devel/gcc/gcc-3.4.2-r2.ebuild b/sys-devel/gcc/gcc-3.4.2-r2.ebuild index 46e9e5d2e221..1e88eb68e5bc 100644 --- a/sys-devel/gcc/gcc-3.4.2-r2.ebuild +++ b/sys-devel/gcc/gcc-3.4.2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.2-r2.ebuild,v 1.1 2004/09/21 23:14:25 lv Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.2-r2.ebuild,v 1.2 2004/09/22 20:27:17 kumba Exp $ IUSE="static nls bootstrap build nomultilib gcj gtk f77 objc hardened uclibc n32 n64" @@ -139,11 +139,20 @@ src_unpack() { epatch ${FILESDIR}/3.4.0/gcc34-reiser4-fix.patch epatch ${FILESDIR}/gcc-spec-env.patch + # If mips, and we DON'T want multilib, then rig gcc to only use n32 OR n64 if use mips && use nomultilib; then use n32 && epatch ${FILESDIR}/3.4.1/gcc-3.4.1-mips-n32only.patch use n64 && epatch ${FILESDIR}/3.4.1/gcc-3.4.1-mips-n64only.patch fi + # Patch forward-ported from a gcc-3.0.x patch that adds -march=r10000 and + # -mtune=r10000 support to gcc (Allows the compiler to generate code to + # take advantage of R10k's second ALU, perform shifts, etc.. + # Needs re-porting for DFA in gcc-4.0 + if use mips; then + epatch ${FILESDIR}/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch + fi + # hack around some ugly 32bit sse2 wrong-code bugs epatch ${FILESDIR}/3.4.2/gcc34-m32-no-sse2.patch epatch ${FILESDIR}/3.4.2/gcc34-fix-sse2_pinsrw.patch |