summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-21 23:59:24 +0000
committerMike Frysinger <vapier@gentoo.org>2006-04-21 23:59:24 +0000
commit369d169f1ea21c3160950bd95dd8895745e455d4 (patch)
tree71678f4f76863636c5f2a31b2b2d625b4082b4c4 /sys-devel
parentchange short --version from -v to -V (diff)
downloadgentoo-2-369d169f1ea21c3160950bd95dd8895745e455d4.tar.gz
gentoo-2-369d169f1ea21c3160950bd95dd8895745e455d4.tar.bz2
gentoo-2-369d169f1ea21c3160950bd95dd8895745e455d4.zip
update patch to work with big endian arm
(Portage version: 2.1_pre9-r1)
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch b/sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch
index 1e01479ffcd9..e49fea61a1b5 100644
--- a/sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch
+++ b/sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch
@@ -35,14 +35,14 @@ http://bugs.gentoo.org/75585
--- gcc-4.0.2/gcc/config/arm/linux-elf.h
+++ gcc-4.0.2/gcc/config/arm/linux-elf.h
@@ -32,18 +32,22 @@
- #define NO_IMPLICIT_EXTERN_C
+ #endif
#undef TARGET_DEFAULT_FLOAT_ABI
-#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
+#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
#undef TARGET_DEFAULT
- #define TARGET_DEFAULT (0)
+ #define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
+#undef SUBTARGET_EXTRA_ASM_SPEC
+#define SUBTARGET_EXTRA_ASM_SPEC "%{mhard-float:-mfpu=fpa} \
@@ -50,12 +50,12 @@ http://bugs.gentoo.org/75585
+
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
- #define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
+ #define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
#undef MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS \
-- { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
-+ { "marm", "mlittle-endian", "msoft-float", "mno-thumb-interwork" }
+- { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mno-thumb-interwork" }
++ { "marm", TARGET_ENDIAN_OPTION, "msoft-float", "mno-thumb-interwork" }
/* The GNU C++ standard library requires that these macros be defined. */
#undef CPLUSPLUS_CPP_SPEC