summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2008-12-03 09:27:42 +0000
committerNed Ludd <solar@gentoo.org>2008-12-03 09:27:42 +0000
commitdce19f85e6806a91b6609b71df8156b6b9b26ed5 (patch)
tree4273e12dd193d4456c6b9e53ce0fdd560574b525 /sys-devel/gcc
parent- update softfloat patch (diff)
downloadhistorical-dce19f85e6806a91b6609b71df8156b6b9b26ed5.tar.gz
historical-dce19f85e6806a91b6609b71df8156b6b9b26ed5.tar.bz2
historical-dce19f85e6806a91b6609b71df8156b6b9b26ed5.zip
- update softfloat patch
Package-Manager: portage-2.1.4.5
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r--sys-devel/gcc/Manifest15
-rw-r--r--sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch88
2 files changed, 91 insertions, 12 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index ce6c3b1b74f9..c778fd8b81c7 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX 3.2.1/gcc31-loop-load-final-value.patch 3324 RMD160 8bb0e9133923821daf2e9d10a27a0a1930e00bbd SHA1 c73dc6e19a76a1dcbb11a15ff5ff04b11a9f0343 SHA256 70aa8433fb19c95f334b6cbc155cae22a3b61a6892ed9e18f95860509d0091a8
AUX 3.2.1/gcc32-arm-disable-mathf.patch 2229 RMD160 40c451d6912473ba39adb72e91d6f507c1045a38 SHA1 6a74ff0312caf8a0ead67dd7aef8d32897cc5d6b SHA256 808368680a4635cdf46844e63342a8ca387769b2323ef99f90530d3bbc622587
AUX 3.2.1/gcc32-arm-reload1-fix.patch 932 RMD160 c681e89ab44626068c0fcda6c929fe4888584c6f SHA1 72589641cb8e7b411a81d08fd5acd768c5a72f5d SHA256 d1158fa35b98cf72565e9b12cfd3f92a1eb14f0abfc5bf86d5990792cf1fefc3
@@ -37,6 +34,7 @@ AUX 4.0.2/gcc-4.0.2-cross-compile.patch 1283 RMD160 772a61065064eeee39f0a4ffb381
AUX 4.0.2/gcc-4.0.2-softfloat.patch 2790 RMD160 c5ad6efdacf01b128db4a1226e254af6f2789330 SHA1 d99d6f940a42be9576195eb851261d3a208b705b SHA256 1525a48bd087c0f0d89db128a16ee106252daf7bf34ffb45867d30f6c452de2c
AUX 4.1.0/gcc-4.1.0-cross-compile.patch 1134 RMD160 70d7ba1cf19700597b812a08c7dcd72633a25c2a SHA1 d016b84010d2cd049d8974a8fcc1dae02e043d3d SHA256 8ee57285151659793df88e025f1225b401a0c805bfc8d1685e04ef75393a24ab
AUX 4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch 1686 RMD160 420e02e85e261759154daf5e3c149344be57af76 SHA1 3f56dce71bf57de5abd4ed7f5549e80946ca3df3 SHA256 7547293b945808f63b70aafed644a43c99e19f82aaf1d2f2df8502d87ab3f01d
+AUX 4.3.2/gcc-4.3.2-softfloat.patch 2800 RMD160 91babb0f61511d8936c4e1dd201c710dd29073a6 SHA1 97b5a6d3251a7a74c6602a36b8b7644c48887cbb SHA256 ab09b2c794b3afd7da3c7ee5a12ed235265334a5fa57f8971bbd6c82dd17f243
AUX awk/fixlafiles.awk 7807 RMD160 749402c9c0a0f1e8755067c0e001f69d73edb09f SHA1 5fc91ce11eb93e989ae64470dba602fe534ac409 SHA256 3cae4890a295adef50c6cf8a7e14d1be4e7a2356479c073e5c29433c3cdf9c5c
AUX awk/fixlafiles.awk-no_gcc_la 8614 RMD160 b2eac0355af83ea2fee02222d1179b23d062ddc2 SHA1 b65717ce21049ba04a4628ceeb662f69797ada40 SHA256 98e1e669906bd5928b695fdcfbf8e56618f12ce9311d31ce1b11dff68d35bb6f
AUX awk/scanforssp.awk 5830 RMD160 43a8c09e4e16d9a78ab4d6263e74a1850f12eb9b SHA1 1d2756f5e75532a7068357404c39081a3c9d9a68 SHA256 236a2a7eea1ba540ca3be82b0fe2cdefd9ac76b061440918ffe52664edbbb98a
@@ -122,13 +120,6 @@ EBUILD gcc-4.2.4.ebuild 1769 RMD160 0af4f09a3847ac051dda0b0e5e20d697e1a2c09b SHA
EBUILD gcc-4.3.0.ebuild 1699 RMD160 fd909faa401f16e47bd2c1b38a4d2a79e4925098 SHA1 f4aa6a50eb8247a43cc29cdafb5132420755421c SHA256 f39c784180f65d9e150b6651be28dc2a35937cf91cefe04c837e9968180e633e
EBUILD gcc-4.3.1-r1.ebuild 1757 RMD160 2243b27d066a97dfd9a2601cbb950afd106c8d9b SHA1 c340323f724ec11e92693b43e1517f84ce7ca617 SHA256 8c037c25e5c02072495cb14593e2e8e3e4acc038bc3ad5e0471d4b288c7e6b8d
EBUILD gcc-4.3.1.ebuild 1748 RMD160 b83c227483a7cd1ff3a669daf953ed1a79aca746 SHA1 a9b8e54947411933e2c61ac073139de2bc5e9a84 SHA256 bd8242f954228d13703e2819b5f3a98bb1cc8926fe00cff5b83b88989a981644
-EBUILD gcc-4.3.2.ebuild 1763 RMD160 43f83e31bbbec11569ebac75514f06a5f53f2773 SHA1 3d9a9afdb8a8c64188951a6de3b0848972067463 SHA256 dc8281877600ebe1566b097f91ade3490c91ef010469f61a439c83fdf4720fa3
-MISC ChangeLog 121201 RMD160 ab9107b7034d7add7ef73df55f0ccdf50de9fd68 SHA1 9e405a0cfe76183ddc0e7ee840164433042a443b SHA256 42e9340eccc6a55e735d8379c9b4cb397ab28cbddb174ab07361ad64c92736c1
+EBUILD gcc-4.3.2.ebuild 1761 RMD160 56f854f0f3b7a041d6ecacb6514e94a4b19f5d8c SHA1 e3853b54aa1ed214aada2fe9c37bdf289ecfa4a3 SHA256 a456cc83ae1aebf5ab83bc715af1f54715ff2d5b3fb5c5d9b662a495f61890e4
+MISC ChangeLog 121321 RMD160 9645d86ac27bf58e160f620201e29d975ced32e7 SHA1 dbaf8959f765304ad29a20de9011636acabae66e SHA256 fce1ca6149417a161c6ff1bc77ba89185ab1c5dda67fbdd9d01d1cbf17f96d98
MISC metadata.xml 1478 RMD160 3c774d5ceb9dc77c4f164f1b808f8d4812feb06e SHA1 2784e14b4b5aff24f4e8b2931f622cf14d4d1b1a SHA256 340b1805c78481cc39a106bcb27742946a4dd2559fe536c57525f0c2358a41a2
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkkpn6UACgkQCRZPokWLroR3SACfa6KxUYL24azBanVIkJlb/qyS
-VPoAnjXcbY/UrPks3/c1EdR8W5NZvMbh
-=kfZr
------END PGP SIGNATURE-----
diff --git a/sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch b/sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch
new file mode 100644
index 000000000000..f530b6af1d8d
--- /dev/null
+++ b/sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch
@@ -0,0 +1,88 @@
+The hunk for gcc/config/arm/t-linux comes from:
+http://gcc.gnu.org/PR14352
+
+The rest is a custom job by Yuri Vasilevski.
+
+The idea here is that we add soft float support into the spec file
+so that we don't have to worry about packages stripping out softfloat
+flags from CFLAGS/CXXFLAGS.
+
+http://bugs.gentoo.org/75585
+
+--- gcc-4.0.2/gcc/config/arm/elf.h
++++ gcc-4.0.2/gcc/config/arm/elf.h
+@@ -45,8 +45,9 @@
+ #endif
+
+ #ifndef SUBTARGET_ASM_FLOAT_SPEC
+-#define SUBTARGET_ASM_FLOAT_SPEC "\
+-%{mapcs-float:-mfloat}"
++#define SUBTARGET_ASM_FLOAT_SPEC "%{mapcs-float:-mfloat} \
++ %{mhard-float:-mfpu=fpa} \
++ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
+ #endif
+
+ #ifndef ASM_SPEC
+@@ -58,8 +59,6 @@
+ %{mapcs-*:-mapcs-%*} \
+ %(subtarget_asm_float_spec) \
+ %{mthumb-interwork:-mthumb-interwork} \
+-%{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} \
+-%{mfloat-abi=*} %{mfpu=*} \
+ %(subtarget_extra_asm_spec)"
+ #endif
+
+--- gcc-4.0.2/gcc/config/arm/linux-elf.h
++++ gcc-4.0.2/gcc/config/arm/linux-elf.h
+@@ -28,7 +28,7 @@
+ #define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr);
+
+ #undef TARGET_DEFAULT_FLOAT_ABI
+-#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
++#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
+
+ /* TARGET_BIG_ENDIAN_DEFAULT is set in
+ config.gcc for big endian configurations. */
+@@ -44,6 +44,10 @@
+
+ #undef TARGET_DEFAULT
+ #define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
++#undef SUBTARGET_EXTRA_ASM_SPEC
++#define SUBTARGET_EXTRA_ASM_SPEC "%{mhard-float:-mfpu=fpa} \
++ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
++
+
+ #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
+
+@@ -51,7 +55,7 @@
+
+ #undef MULTILIB_DEFAULTS
+ #define MULTILIB_DEFAULTS \
+- { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
++ { "marm", TARGET_ENDIAN_OPTION, "msoft-float", "mno-thumb-interwork" }
+
+ /* Now we define the strings used to build the spec file. */
+ #undef LIB_SPEC
+@@ -60,7 +64,7 @@
+ %{shared:-lc} \
+ %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
+
+-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
++#define LIBGCC_SPEC "-lgcc"
+
+ #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+
+--- gcc-4.0.2/gcc/config/arm/t-linux
++++ gcc-4.0.2/gcc/config/arm/t-linux
+@@ -4,7 +4,10 @@ TARGET_LIBGCC2_CFLAGS = -fomit-frame-poi
+ LIBGCC2_DEBUG_CFLAGS = -g0
+
+ LIB1ASMSRC = arm/lib1funcs.asm
+-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
++LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
++ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
++ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
++ _fixsfsi _fixunssfsi _floatdidf _floatdisf
+
+ # MULTILIB_OPTIONS = mhard-float/msoft-float
+ # MULTILIB_DIRNAMES = hard-float soft-float