Drop old mips-specific patches -- they can use newer gcc-4 versions. The r10k patch...
authorMike Frysinger <vapier@gentoo.org>
Sun, 29 Mar 2015 19:24:29 +0000 (19:24 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 29 Mar 2015 19:24:29 +0000 (19:24 +0000)
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0xD2E96200

sys-devel/gcc/ChangeLog
sys-devel/gcc/Manifest
sys-devel/gcc/files/3.4.1/gcc-3.4.1-mips-n32only.patch [deleted file]
sys-devel/gcc/files/3.4.1/gcc-3.4.1-mips-n64only.patch [deleted file]
sys-devel/gcc/files/3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch [deleted file]
sys-devel/gcc/files/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch [deleted file]
sys-devel/gcc/gcc-3.4.6-r2.ebuild
sys-devel/gcc/metadata.xml

index 1d100fbb3c6217433d5093b7a6b3b4b0bdba8f63..80cd0e237352bb43ba9311eb901a0a289c50e5d8 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for sys-devel/gcc
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/ChangeLog,v 1.1053 2015/03/29 19:17:06 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/ChangeLog,v 1.1054 2015/03/29 19:24:26 vapier Exp $
+
+  29 Mar 2015; Mike Frysinger <vapier@gentoo.org>
+  -files/3.4.1/gcc-3.4.1-mips-n32only.patch,
+  -files/3.4.1/gcc-3.4.1-mips-n64only.patch,
+  -files/3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch,
+  -files/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch, gcc-3.4.6-r2.ebuild,
+  metadata.xml:
+  Drop old mips-specific patches -- they can use newer gcc-4 versions.  The r10k
+  patch has been moved to the gentoo patchset.
 
   29 Mar 2015; Mike Frysinger <vapier@gentoo.org> metadata.xml:
   Add USE=cilk to control support for the Cilk Plus language.
index 7d99aa205d14462fe9fe558887e21ece022b008d..99228d7d4d72630dc07cbd7c7fb8e8a42c8f9a11 100644 (file)
@@ -2,10 +2,6 @@
 Hash: SHA256
 
 AUX 3.3.4/libffi-without-libgcj.patch 890 SHA256 a422ebf05e279bdcb15627363af8101e4d6a54ca037d6da11c13b4768799d974 SHA512 6204588808a37a13dffc8c6bdf70eb453107413d0c8fffddeb360444e3e605f1ceb42c41905cfa1c4f9cbb1b22dc290e68d2728dbddb0f4d0406dd8dca6789a0 WHIRLPOOL 7260ba32fc7d60f1fa4d8667c929e16f3bdf9fe953c823c5b6876d4fea4d4fed52e67aec92cbb599d6327eac009bc4fbbc06ba85acf9848bf346384af0523363
-AUX 3.4.1/gcc-3.4.1-mips-n32only.patch 614 SHA256 f75cbf7aab59b73f23f2a6b327f9c00bfa87f38a67a054c4aa5637dcbb8dad1e SHA512 afdbf733c7325d0a7c34c6027c49a4e18af64f2e042680756ebfdd836084e050301d748a2f3ef20c73d20078082b95a6a9d9a1ed05222db4d82be213ebc0f6a2 WHIRLPOOL c291003a930d71b285bd5d4422a3c1a60290ed9499011e04def90c92e755658a8f04a9d30d23d011cdfc2e6caa92348ee25fba14aba195008f62be30b3bf2c14
-AUX 3.4.1/gcc-3.4.1-mips-n64only.patch 614 SHA256 4e94950bdaec5d089af8a60471e75dd1bf117a2eff9867aa95ebc7800dcdb6c7 SHA512 f12473edc818285e44a745fde700ee6cda397c8452705464f357815cc2d764f7a3933071495a03617c7c9f4254072cbb7ee11b2d5da943a7e1b4ffb3bd3d7052 WHIRLPOOL 8708b686d8daf36b3b646a870210b19826806990a4b3f0b1166a459579281dfcb02488548810a1eec22b0670f099d9930c4bd21b14155136947f180e414917eb
-AUX 3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch 12951 SHA256 8cef3779bc962b9a9c20daabea28791514b6f54824659e2f5824c493cdc3f6c7 SHA512 7bbab9528d7f65d9c9226fc4063c6a73861300b65f02132cd149dc224b3ca98741824252d0fdc83aaeaf65f7d93db85d34028f1e10bcd5390b6b30d9f2be13a8 WHIRLPOOL a77d8c7ba610967a33675b9c1acf3c48730df84efdad6f66efc8ca9b9af5e4ad38271b0b41f7df8248b4571b22d783fe8ea7e314530620df9ec4d6e8b747c14b
-AUX 3.4.2/gcc-3.4.x-mips-add-march-r10k.patch 14248 SHA256 10d6947954f03145d8ac16f497826cf25583d37f0e1e63b9df1a33d91f59e2c8 SHA512 7bcb5ff9d187c2c16adea780a77fe19b053a6b63b33a10352c0ef42e1b31616d5ff8280e45d5292eb03c92970f420d2021c7e58dfe704ff956f0113689206c25 WHIRLPOOL ac914bad42469b56e635ff3225864aa48a6fc1fef8c8abd4fd11eaac232b7e01d8ae29e252702cd719ab446438846fb673003c95536155da513aabb2a3aa3cde
 AUX 3.4.3/libffi-nogcj-lib-path-fix.patch 1691 SHA256 030e2c9f31b325ea975792bdfee88272d1065b8794511410dc30bd2caf8b3451 SHA512 001e3c1c585c3ab641a540eb5502788dd1151cb66fc9f0196ae79e3ad7f01a291812511bd19114fdffc9d8b71987623f1dcccefed3546cb9e0f0e6abd55f093c WHIRLPOOL ffda82e69885c7691f7746188f3565dd90fa9a33be1426155ccf8f5cc40f910ac8bdac14accef120c379bbddc589732028cff94377a6bfffc080789d7a825d15
 AUX 3.4.3/libffi-without-libgcj.patch 1658 SHA256 41fd051cc16b61da4abf4f696f13b8b574fce76c65d1a731de3dd0d39f335037 SHA512 f277f4dff390ead308b897bf06ad53584f11d8234f49f5c41c6966204652113d015c1c6a240d8e9d121af285d4491cfd15a3934c37588b66007423b9050cb42f WHIRLPOOL 82350dd81e502b037d767f066abc1277ed69a2b0d404973e001b7af126aa4c03ddba04ff094fb8ae3b29b9690e78ee0fd71ede2c29bd1c944fc9516199d547a5
 AUX 3.4.4/gcc-3.4.4-cross-compile.patch 1912 SHA256 f8bc4cb8cc012f40f9a988ed8344e9e75df5cb3714d98a2eb19e5320e32c7724 SHA512 c31cc4c77bb9a5f01a7a7969dad862fc5d7f9916adf67e039a71714e0eca02b13a576bdfbab50c069cc8020ef4dc335ed20bb10214f714a089b8daa02e849d2c WHIRLPOOL a96f689f8b97f960e7e33c6bb0fe13e502bf1a180ba8c0f49a9538f842bbb9c736e3162643e2401bccb8ff2f98622e9b1d0e1959ad5728d18130d4b5b927dfa1
@@ -114,7 +110,7 @@ DIST gcc-4.9.2.tar.bz2 89939747 SHA256 2020c98295856aa13fda0f2f3a4794490757fc24b
 DIST gdc-0.24-src.tar.bz2 1012099 SHA256 cc6a97c76c9e6db31e76ff97014d24b3d43e21f018a3c6218e3fb2a4500fc79a SHA512 9aec7e4b102e602dfb61cd09ea4b4a96af637ceb3d726235261d09ebd35dbd416abcbfe0e46918e48474bd241fe9bb29abc145a65aa834669295aaee4fca0686 WHIRLPOOL 22322b0c3e2d67b3b37bd7fa92a29c593688f934d4ffd62b9cc87eb63a44a4f8bbc9d75cadf11209c73bdc9942c9b4430036629d0eefcd04de9055c502b85f12
 EBUILD gcc-2.95.3-r10.ebuild 863 SHA256 c86f3bf703813779e5e9ef045405993abc71a2277a3e6a4f23fdebadbee16d01 SHA512 94471cce79c4e34d3d093cb40a0f6f4706dc2ad6766bf55d6252f245922204dec79319cdcf5c6360552a92f8fcb1c7478b8a426c0dc22f261cdcc96ea0d831dc WHIRLPOOL e251a788e5ef85e0a573f2c294f95359c0108ec4b2fd07452ada1d5220345c324b86a995f1213ce99b25c9312c2c1db28217a83088598e68852e2837918de32e
 EBUILD gcc-3.3.6-r1.ebuild 1373 SHA256 a12365e5d127cbed8c880b8a46f4625c8b93042b8e5710ce298be01339ceda2d SHA512 416ae2cf6e0e438ac569efa81422d4e9b117944f6c3ac5749b029b3dda48a3553ad24c3bda202d5969704f082f6feb34fe61992eabf16a13548b459816b9e217 WHIRLPOOL 113f1b45f7a9dd7c6d10dfb02c2ed86a811c46b3052dc21a375814ec126540a4fbf2cdc70a787ef3b3cd97cb90fbbf2a7f5894a95bf43b2e6dacf498c89742c3
-EBUILD gcc-3.4.6-r2.ebuild 2978 SHA256 bd76dbf92daa8b8921908c1481b06c70cb7c84f88e86968c11e45d9d168242b7 SHA512 7590082048a7f7c7b9b23fa0de0323a84b28d1d9cbe7eb71befb363a5769150df684bc40ed6682549dc978a296ac90ae4a0367c9d257d7e4ad61235fecf11bbf WHIRLPOOL c9d29111b1aafba21d169edf0e44a2d44d4965e43a0041a0174c1592f7b3857e7f75a626d0cc32f4124ef0186a4c672bedf9f010610228945173183504e82858
+EBUILD gcc-3.4.6-r2.ebuild 1496 SHA256 fb8319c93279117aab35a58330cb63cca5baccb4dc933ebb7be12a1e4d7455e8 SHA512 5e4b1bbe0f3dc62ae53d2fb61ad74bbd2d15b6199489f27c1ff637afae5f8fe2f1460f4e7d302e78fe0d1dd26349a47ab568837dd18d7a6d2427ef79affc66f1 WHIRLPOOL cbf5fbf97f707fb4136be16562d905f44b757d959fd3bb92d20c01f5a16b1117754a21d7c396ecd94332f01edaf70221fba3f82b82849b3b52b891d7abf0dc5b
 EBUILD gcc-4.0.4.ebuild 353 SHA256 2df0a4354ae0a0e9d222d4bc481635650de69aca55ef23916ea020765a861ec3 SHA512 53b2dccf6d48e4e51d228b883f913724a9bd5ec3aec23bee893a73caf896566f1cec93a8d527d8b106301da5090f3e64fad0e22d7a09399f100077e171a39106 WHIRLPOOL 40e838c2b929387a575c30e767c77c9f52e501210baafce9d13ce48d5b6162c03ebd0f0b0c036bd4f2e63a4af450e5f707d7d44d0978e196f44f546f8866024a
 EBUILD gcc-4.1.2.ebuild 767 SHA256 01691a1ad4f2801a893729e293126abee7efcea8bb125010d6215d26d0a677d2 SHA512 d1c04885cfa8fb479c4e12246825ef585bda88d2d8a61b66ab9a69f879046306a114ab889b9ad2e3dcf22093a85ac28dc9015f6f6258ddae510932525535c388 WHIRLPOOL c6d609625ff964af25f18f0221228e05341bfbd02c848bbb538c98761ce799e993e667637077980bff2c5985cb4ee91daf7ed638496152f0ed74ffc84c6fc4f4
 EBUILD gcc-4.2.4-r1.ebuild 515 SHA256 3ac3841176c8059d27dfbead0e371eaafcd7cbaa0a016ac2e7a0f4a914e16d36 SHA512 19bf1fb6a4c63357cf87979ae90e1c6683cb5961f11ac01a574dcee42a911e515bff3ff473100feec95602334ab1aee1d277459e3cdc4757fe536298ccc626b5 WHIRLPOOL dca2ff6f02f241cba631ea1fb86c0571d71d5223fff14116a86283ec6b05e839cd777c07690271b58a1f8af1a8f095c0c9dfb52efe2a239cfaadeaf8556e2b3f
@@ -135,23 +131,23 @@ EBUILD gcc-4.8.4.ebuild 1521 SHA256 f1bc3c720a5d2d4d18b3f60237499162e6b5bbb6360e
 EBUILD gcc-4.9.0.ebuild 1416 SHA256 65f404188fadc426fbfc091dd20c8487b3be3e328bad7642af78392e9c959f7e SHA512 929ac861bc27ebfbec6225f02678cf0caf866768ad2e79726bf9df9069685fc8fe52d684bb3ba42af4e406f00c8a3acda8236c7991e3e4284cfa9c75b598632b WHIRLPOOL d576448e1e268f9dbb9a2bdfa41c010a81cd87ae7259e92a821456d0c1f6f85b32369f055655c37722de614a3b1b03529f69715b831b86adb6414f3732787f86
 EBUILD gcc-4.9.1.ebuild 1416 SHA256 f4750ec96aa0d30ab305e644a542cb11dc2f71999fbdd5bc40799e334d75575d SHA512 e1207297335bf1d6cd4cc8e40b00efa097fb52dbd6beeb35930104f04ed8b3b0dcfb944a9f0e4f09808d5c299631acb1417842a72aa313afc9ba30169ed71dc4 WHIRLPOOL 975e19adc24a85663eead688e83623e4b8549301ed6949bbf3e70f6289aa205f050c29e785774b21a61781be4739f7af4daf657b3cda15fcac4fb231a238f95c
 EBUILD gcc-4.9.2.ebuild 1481 SHA256 a8816af30b6653b1f9aeeec8f06f44ef3685158dc698da9ae0bf9b5d6a39f247 SHA512 4011caa8d2909c8ad24bd8241399270b91e4d09bf8c4263934b30b711529541f11160bfb01437fb4c81931ee4afd11f4f152102e7fd73af9f96674f18d307de5 WHIRLPOOL 3e8bb5b742edbdc7f9f6483dc27a9ca6615547aa5df79736ca02be6c54c847d5e022a8d50f0be06ed0e09114235030579f21b63dc231907f6c217cb002c872c4
-MISC ChangeLog 68521 SHA256 e41c9cc6453010818777c62e5c8126fde4739db81bd7fa9cd4575178348ec66b SHA512 b33a618f6892ccb58495f7cfbe1063034f2b9765ac9705ae1f84da2ab18a384729b23a1a92b3a2b7373ffb9e5974f7c52c765b6839699096c77d34b2cf5d3f6a WHIRLPOOL 220876b07a77ad7c660af7025ea171d3331b23dd1ed59c9d91f6a05a2a75f4fe75f029ceb7c769448bb48c84e295588807df0c7ba2fa7b501328d9c860c6c928
+MISC ChangeLog 68939 SHA256 41f43266b8e5781bd427e2788e7bd3901c985e6188ca68b387b2b18105541f5f SHA512 e151473838f92a0c1263c78a9722ed05086e324a6211a0eb99fc49d6548fe270069588357d70b853dd0a8d2d42a3a3b4f66b00de08db13f0e16d55abee93064a WHIRLPOOL 3720c3c5b7431795d23f47b21182a46e943bcb69c631b396853c16ba399fbd1f9d7788dca44c89166c6d9420cbba5d72f1391a1653900c7d5f4c276e9007668f
 MISC ChangeLog-2006 112483 SHA256 108a7803efc91b08dd27ca4a83468637222a0685760f63bce724cb486fbc4022 SHA512 2887a66d03f4e1a9c60c743d7aa22147bdd95900b9e759c760a63f1a60c90008585b10b4f46ecc26e0149427bbdb8b83a9de4546d75e9ad935dd8e5377bf8870 WHIRLPOOL a2e1df0a7cead4373b5aeda333d952407049e1945f0a4e7774e1249e9f08ee33faafe0e74adec28b641bf037b8d6a350f45760a25c15e769b23eadb84b7ea48e
-MISC metadata.xml 2298 SHA256 1c1278fd4d6abb63644e891ba07c9822ee64131b4bf7b0c4fc14bfc00ccd2d46 SHA512 c186ff6384630fe5bd0d99f8011ce020482ed108aa656ddbad66096271bd5862843ee15ed7b150788d3e0f28c5cc06bea0fbe5e1ee16f7dcca6e88bdab145ff2 WHIRLPOOL 3b3c3ea62c655b8eab9b4c2e8bdcb2b710251613e3d23cfd0fdf8d04afb1f3246f1d7ffb8c6c911f49fe4795f065227fe8f0d9abe9e2cd29844e7161566df0a4
+MISC metadata.xml 1910 SHA256 2f6c2f19316b90d4b829aab2dd6fb66319c158c0955e81533aba54b6c1af00d8 SHA512 b5144578028c73be85bff609538399e832a7205aba451374973b640f83c1e9fa6a6684bb6c26043912ad649e6ea3e4115621b9a84b157399d13027a1f514f947 WHIRLPOOL 29e0ec175732d52d13345d22ae73711b394af62eb852e0a997b6a656834ad60e6be5fdf27ba174ed75310912dd730950be7966e7a8ca038f9f5686744ccef888
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iQIcBAEBCAAGBQJVGE+zAAoJEPGu1DbS6WIAUu0P/AumEkojQ5Hew7OQpLznSd+s
-RrGGRyPR2baWgOmrlM3W0ObPlvwFgFOb1X40EpZdCX4KrXu+HWHagKIqnkqWQJwB
-57hlk/GizDFXJMHQwtL0smftz5e0BEg2L0jNz44qoyiXJKh58zSny7aLNFfgtltP
-p7nlSmYAKL8zRJXUxkTQnSypL/llDZpUQBnsr4vsYchKnLKTEQDXbpDtxcGay1ST
-+1l46DIQaZyUzS6oktFCWjf/AfWs25RvhZZjvu8a03WqEY94hesUHtomF6+xI3c8
-qUUnjT8cfL6eMuQ0JFgSWJHGT4Ohh0ObCFoY6uVkWprq3VU8rQW5gelp62WyjwPG
-BeL1D9FJwdC7SCvHF29sn/NHJkE4PfiIeHwK2gB/CgE6DjE+ZECd5zIZe3ZBJqU+
-3Qechq1p4FEMaGk3FDzyODY74lCWF6ywVYfj1VIUXms1W4YoWAt+xhQP8GOuH3IA
-wDZW+srsSBd8PcQ7giorVMoC6B3JCQ9Z/F1M1D+d2zsubrG63wCXWrg0jbav6LgQ
-tt7Brxo6ouaS6tI80aQIFL/EbOK8At5cXUYSGyc7hu7Ce/KIdrQGyKekObQo7g34
-UMFnuyNU5luZA27QoX28mTwzWMeScqIDXT8DJR7j3Vt5LubQTqMqyJ+SI6L45mq/
-zDLhVykMKjCalu7gStrN
-=QNK8
+iQIcBAEBCAAGBQJVGFFtAAoJEPGu1DbS6WIAsvQP/jTZOsKAOM1FbquqJmjaeqRH
+8JGZge8tBnJpqOX8Msz4fpJH8JcPZjMEaZXNK7oAS2L3I+P7rr7LwoOf5Yk65r0p
+mEP2+WvvI0nEV+v7mdjXTdDCxmhY5ajOWf92ShWwJe9yQln5gp2qGOyxmSbSeJiH
+QiKAqGGaYYElHAHCo8fROFyVqayx2zngWkpNz5jMr2Oi03w9CVCDgBuIjy5jFDRL
+N7S/reZh9PPo0zATHnMwevlGHXe7SCiXXQTp+Nqv/gl8hblpx/VIAC2ElTOOkdK+
+mtmOV93hsTPg7z/DDmkQZHmtB7DLze1GEXKcgGQb5S6+FinHwDSwkg/DgndjVTbM
+QCqZFW+3kzEG53WgbiOFzaeAM8Ci1Y9Yjt9vQdE3sk5E06G2WlPpxSCytbI+b0fD
+J0UcU9U0OxYuBWIbk4UuZb2mlfaXi7Do+x/CEP62Cv6wZ2+B6ai7Dfd4nQ3+BhmU
+G6kJJyPNBNeZkayAqLSmQuygbn9468zkozuyTLtB80AamTPF14S27cjVLuOQ7zX4
+1drZntRli/10/+3Xm++MMEsP/ErHyapQezS8zCbflt8u26EziHNvpZ+p7o30k8+P
+jh68MTUpCp27p4me2M8Hsu6HRMgmsHCrwFCskR81L6KzWVltWmgJTyvgz91SXn13
+KErNieFQhB3udHadIWlz
+=+8cd
 -----END PGP SIGNATURE-----
diff --git a/sys-devel/gcc/files/3.4.1/gcc-3.4.1-mips-n32only.patch b/sys-devel/gcc/files/3.4.1/gcc-3.4.1-mips-n32only.patch
deleted file mode 100644 (file)
index 6fba12b..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Index: gcc/config/mips/t-linux64
-===================================================================
-RCS file: /cvsroot/gcc/gcc/gcc/config/mips/t-linux64,v
-retrieving revision 1.3
-diff -u -r1.3 t-linux64
---- gcc/config/mips/t-linux64  4 Jun 2003 05:35:15 -0000       1.3
-+++ gcc/config/mips/t-linux64  10 Aug 2004 18:26:26 -0000
-@@ -1,6 +1,6 @@
--MULTILIB_OPTIONS = mabi=32/mabi=n32/mabi=64
--MULTILIB_DIRNAMES = o32 32 64
--MULTILIB_OSDIRNAMES = ../lib ../lib32 ../lib64
-+MULTILIB_OPTIONS = mabi=n32
-+MULTILIB_DIRNAMES =
-+MULTILIB_OSDIRNAMES =
- 
- EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
- 
diff --git a/sys-devel/gcc/files/3.4.1/gcc-3.4.1-mips-n64only.patch b/sys-devel/gcc/files/3.4.1/gcc-3.4.1-mips-n64only.patch
deleted file mode 100644 (file)
index 81baf62..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Index: gcc/config/mips/t-linux64
-===================================================================
-RCS file: /cvsroot/gcc/gcc/gcc/config/mips/t-linux64,v
-retrieving revision 1.3
-diff -u -r1.3 t-linux64
---- gcc/config/mips/t-linux64  4 Jun 2003 05:35:15 -0000       1.3
-+++ gcc/config/mips/t-linux64  10 Aug 2004 18:26:53 -0000
-@@ -1,6 +1,6 @@
--MULTILIB_OPTIONS = mabi=32/mabi=n32/mabi=64
--MULTILIB_DIRNAMES = o32 32 64
--MULTILIB_OSDIRNAMES = ../lib ../lib32 ../lib64
-+MULTILIB_OPTIONS = mabi=n64
-+MULTILIB_DIRNAMES =
-+MULTILIB_OSDIRNAMES =
- 
- EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
- 
diff --git a/sys-devel/gcc/files/3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch b/sys-devel/gcc/files/3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch
deleted file mode 100644 (file)
index 02edc37..0000000
+++ /dev/null
@@ -1,366 +0,0 @@
-diff -Naurp gcc-3.4.6.orig/gcc/config/mips/mips.c gcc-3.4.6/gcc/config/mips/mips.c
---- gcc-3.4.6.orig/gcc/config/mips/mips.c      2005-07-31 04:35:15.000000000 -0400
-+++ gcc-3.4.6/gcc/config/mips/mips.c   2006-04-08 17:41:44.000000000 -0400
-@@ -8801,6 +8801,11 @@ mips_reorg (void)
-       dbr_schedule (get_insns (), rtl_dump_file);
-       mips_avoid_hazards ();
-     }
-+  if (mips_r10k_cache_barrier)
-+    {
-+      static int r10k_insert_cache_barriers (void);
-+      r10k_insert_cache_barriers ();
-+    }
- }
- 
- /* We need to use a special set of functions to handle hard floating
-@@ -9661,5 +9666,5 @@ irix_section_type_flags (tree decl, cons
- }
- 
- #endif /* TARGET_IRIX */
--
-+#include "r10k-cacheb.c"
- #include "gt-mips.h"
-diff -Naurp gcc-3.4.6.orig/gcc/config/mips/mips.h gcc-3.4.6/gcc/config/mips/mips.h
---- gcc-3.4.6.orig/gcc/config/mips/mips.h      2004-07-14 20:42:49.000000000 -0400
-+++ gcc-3.4.6/gcc/config/mips/mips.h   2006-04-08 17:41:01.000000000 -0400
-@@ -122,6 +122,7 @@ extern const char *mips_tune_string;    
- extern const char *mips_isa_string;   /* for -mips{1,2,3,4} */
- extern const char *mips_abi_string;   /* for -mabi={32,n32,64} */
- extern const char *mips_cache_flush_func;/* for -mflush-func= and -mno-flush-func */
-+extern const char *mips_r10k_cache_barrier;/* for -mr10k-cache-barrier[={1,2}] */
- extern int mips_string_length;                /* length of strings for mips16 */
- extern const struct mips_cpu_info mips_cpu_info_table[];
- extern const struct mips_cpu_info *mips_arch_info;
-@@ -752,6 +753,10 @@ extern const struct mips_cpu_info *mips_
-       N_("Don't call any cache flush functions"), 0},                 \
-   { "flush-func=", &mips_cache_flush_func,                            \
-       N_("Specify cache flush function"), 0},                         \
-+  { "r10k-cache-barrier", &mips_r10k_cache_barrier,                   \
-+      N_("[=1|2]\tGenerate cache barriers for SGI Indigo2/O2 R10k"), 0},      \
-+  { "ip28-cache-barrier", &mips_r10k_cache_barrier,                   \
-+      N_(""), 0},     \
- }
- 
- /* This is meant to be redefined in the host dependent files.  */
-diff -Naurp gcc-3.4.6.orig/gcc/config/mips/r10k-cacheb.c gcc-3.4.6/gcc/config/mips/r10k-cacheb.c
---- gcc-3.4.6.orig/gcc/config/mips/r10k-cacheb.c       1969-12-31 19:00:00.000000000 -0500
-+++ gcc-3.4.6/gcc/config/mips/r10k-cacheb.c    2006-04-08 17:41:22.000000000 -0400
-@@ -0,0 +1,318 @@
-+/* Subroutines used for MIPS code generation: generate cache-barriers
-+   for SiliconGraphics IP28 and IP32/R10000 kernel-code.
-+   Copyright (C) 2005,2006 peter fuerst, pf@net.alphadv.de.
-+
-+This file is intended to become part of GCC.
-+
-+This file is free software; you can redistribute it and/or modify it
-+under the terms of the GNU General Public License as published
-+by the Free Software Foundation; either version 2, or (at your
-+option) any later version.
-+
-+This file is distributed in the hope that it will be useful,
-+but WITHOUT ANY WARRANTY; without even the implied warranty of
-+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-+GNU General Public License for more details.
-+
-+You should have received a copy of the GNU General Public License
-+along with GCC; see the file COPYING.  If not, write to the
-+Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
-+MA  02110-1301  USA.  */
-+
-+
-+#define ASM_R10K_CACHE_BARRIER        "cache 0x14,0($sp)"
-+
-+/* Some macros, ported back from 4.x ... */
-+
-+#define CALL_P(X)  (GET_CODE (X) == CALL_INSN)
-+#define MEM_P(X)   (GET_CODE (X) == MEM)
-+#define NONJUMP_INSN_P(X)  (GET_CODE (X) == INSN)
-+
-+#define SEQ_BEGIN(insn)                        \
-+  (INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE  \
-+   ? XVECEXP (PATTERN (insn), 0, 0)                        \
-+   : (insn))
-+
-+#define SEQ_END(insn)                          \
-+  (INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE      \
-+   ? XVECEXP (PATTERN (insn), 0, XVECLEN (PATTERN (insn), 0) - 1)  \
-+   : (insn))
-+
-+#define FOR_EACH_SUBINSN(subinsn, insn)        \
-+  for ((subinsn) = SEQ_BEGIN (insn);       \
-+       (subinsn) != NEXT_INSN (SEQ_END (insn));    \
-+       (subinsn) = NEXT_INSN (subinsn))
-+
-+
-+/* Nonzero means generate special cache barriers to inhibit speculative
-+   stores which might endanger cache coherency or reference invalid
-+   addresses (especially on SGI's Indigo2 R10k (IP28)).  */
-+const char *mips_r10k_cache_barrier;
-+static int TARGET_R10K_SPECEX;
-+
-+/* Check, whether an instruction is a possibly harmful store instruction,
-+   i.e. a store which might cause damage, if speculatively executed. */
-+
-+/* Return truth value whether the expression `*memx' instantiates
-+   (mem:M (not (stackpointer_address or constant))). */
-+
-+static int
-+is_stack_pointer (rtx *x, void *data)
-+{
-+  return (*x == stack_pointer_rtx);
-+}
-+
-+static int
-+check_p_mem_expr (rtx *memx, void *data)
-+{
-+  if (!MEM_P (*memx) || for_each_rtx (memx, is_stack_pointer, 0))
-+    return 0;
-+
-+  /* Stores/Loads to/from constant addresses can be considered
-+     harmless, since:
-+     1)  the address is always valid, even when taken speculatively.
-+     2a) the location is (hopefully) never used as a dma-target, thus
-+         there is no danger of cache-inconsistency.
-+     2b) uncached loads/stores are guaranteed to be non-speculative. */
-+  if ( CONSTANT_P(XEXP (*memx, 0)) )
-+    return 0;
-+
-+  return 1;
-+}
-+
-+/* Return truth value whether we find (set (mem:M (non_stackpointer_address)
-+   ...)) in instruction-pattern `body'.
-+   Here we assume, that addressing with the stackpointer accesses neither
-+   uncached-aliased nor invalid memory.
-+   (May be, this applies to the global pointer and frame pointer also,
-+   but its saver not to assume it. And probably it's not worthwile to
-+   regard these registers)
-+
-+   Speculative loads from invalid addresses also cause bus errors...
-+   So check for (set (reg:M ...) (mem:M (non_stackpointer_address)))
-+   too, unless there is an enhanced bus-error handler. */
-+
-+static int
-+check_p_pattern_for_store (rtx *body, void *data)
-+{
-+  if (*body && GET_CODE (*body) == SET)
-+    {
-+      /* Cache-barriers for SET_SRC may be requested as well. */
-+      if (!(TARGET_R10K_SPECEX & 2))
-+        body = &SET_DEST(*body);
-+
-+      if (for_each_rtx (body, check_p_mem_expr, 0))
-+        return 1;
-+
-+      /* Don't traverse sub-expressions again. */
-+      return -1;
-+    }
-+  return 0;
-+}
-+
-+static int
-+strmatch (const char *txt, const char *match)
-+{
-+  return !strncmp(txt, match, strlen (match));
-+}
-+
-+/* Check for (ins (set (mem:M (dangerous_address)) ...)) or end of the
-+   current basic block in instruction `insn'.
-+   `state': (internal) recursion-counter and delayslot-flag
-+   Criteria to recognize end-of/next basic-block are reduplicated here
-+   from final_scan_insn.
-+   return >0: `insn' is critical.
-+   return <0: `insn' is at end of current basic-block.
-+   return 0:  `insn' can be ignored. */
-+
-+static int
-+check_insn_for_store (int state, rtx insn)
-+{
-+  rtx body;
-+
-+  if (INSN_DELETED_P (insn))
-+    return 0;
-+
-+  if (LABEL_P (insn))
-+    return -1;
-+
-+  if (CALL_P (insn) || JUMP_P (insn) || NONJUMP_INSN_P (insn))
-+    {
-+      body = PATTERN (insn);
-+      if (GET_CODE (body) == SEQUENCE)
-+        {
-+          /* A delayed-branch sequence. */
-+          rtx insq;
-+          FOR_EACH_SUBINSN(insq, insn)
-+            if (! INSN_DELETED_P (insq))
-+              {
-+                /* |1: delay-slot completely contained in sequence. */
-+                if (check_insn_for_store (8+state|1, insq) > 0)
-+                  return 1;
-+              }
-+          /* Following a (conditional) branch sequence, we have a new
-+             basic block.  */
-+          if (JUMP_P (SEQ_BEGIN(insn)))
-+            return -1;
-+          /* Handle a call sequence like a conditional branch sequence. */
-+          if (CALL_P (SEQ_BEGIN(insn)))
-+            return -1;
-+        }
-+      if (GET_CODE (body) == PARALLEL)
-+        if (for_each_rtx (&body, check_p_pattern_for_store, 0))
-+           return 1;
-+
-+      /* Now, only a `simple' INSN or JUMP_INSN remains to be checked. */
-+      if (NONJUMP_INSN_P (insn))
-+        {
-+          /* Since we don't know what's inside, we must take inline
-+             assembly to be dangerous. */
-+          if (GET_CODE (body) == ASM_INPUT)
-+            {
-+              const char *t = XSTR (body, 0);
-+              if (t && !strmatch(t, ASM_R10K_CACHE_BARRIER))
-+                return 1;
-+            }
-+
-+          if (check_p_pattern_for_store (&body, 0) > 0)
-+            return 1;
-+        }
-+      /* Handle a CALL_INSN instruction like a conditional branch. */
-+      if (JUMP_P (insn) || CALL_P (insn))
-+        {
-+          /* Following a (conditional) branch, we have a new basic block. */
-+          /* But check insn(s) in delay-slot first.  If we could know in
-+             advance that this jump is in `.reorder' mode, where gas will
-+             insert a `nop' into the delay-slot, we could skip this test.
-+             Since we don't know, always assume `.noreorder', sometimes
-+             emitting a cache-barrier, that isn't needed.  */
-+          /* But if we are here recursively, already checking a (pseudo-)
-+             delay-slot, we are done.  */
-+          if ( !(state & 1) )
-+            for (insn = NEXT_INSN (insn); insn; insn = NEXT_INSN (insn))
-+              {
-+                if (LABEL_P (insn) || CALL_P (insn) || JUMP_P (insn))
-+                  /* Not in delay-slot at all. */
-+                  break;
-+
-+                if (NONJUMP_INSN_P (insn))
-+                  {
-+                    if (GET_CODE (PATTERN (insn)) == SEQUENCE)
-+                      /* Not in delay-slot at all. */
-+                      break;
-+
-+                    if (check_insn_for_store (8+state|1, insn) > 0)
-+                      return 1;
-+                    /* We're done anyway. */
-+                    break;
-+                  }
-+                /* skip NOTE,... */;
-+              }
-+          return -1;
-+        }
-+    }
-+  return 0;
-+}
-+
-+
-+/* Scan a basic block, starting with `insn', for a possibly harmful store
-+   instruction.  If found, output a cache barrier at the start of this
-+   block.  */
-+
-+static int
-+bb_insert_store_cache_barrier (rtx head, rtx nxtb)
-+{
-+  rtx insn = head;
-+
-+  if (!insn || insn == nxtb)
-+     return 0;
-+
-+  while ((insn = NEXT_INSN (insn)) && insn != nxtb)
-+    {
-+      int found;
-+
-+      if (NOTE_INSN_BASIC_BLOCK_P(insn)) /* See scan_1_bb_for_store() */
-+        break;
-+      
-+      found = check_insn_for_store (0, insn);
-+      if (found < 0)
-+        break;
-+      if (found > 0)
-+        {
-+          /* found critical store instruction */
-+          insn = gen_rtx_ASM_INPUT (VOIDmode,
-+                                    ASM_R10K_CACHE_BARRIER "\t"
-+                                    ASM_COMMENT_START " Cache Barrier");
-+          /* Here we rely on the assumption, that an explicit delay-slot
-+             - if any - is already embedded (in a sequence) in 'head'! */
-+          insn = emit_insn_after (insn, head);
-+          return 1;
-+        }
-+    }
-+  return 0;
-+}
-+
-+
-+/* Scan one basic block for a possibly harmful store instruction.
-+   If found, insert a cache barrier at the start of this block,
-+   return number of inserted cache_barriers. */
-+
-+static int
-+scan_1_bb_for_store (rtx head, rtx end)
-+{
-+  rtx nxtb;
-+  int count;
-+
-+  /* Note: 'end' is not necessarily reached from 'head' (hidden in
-+     SEQUENCE, PARALLEL), but 'nxtb' is. */
-+  nxtb = NEXT_INSN (end);
-+
-+  /* Each basic block starts with zero or more CODE_LABEL(s), followed
-+     by one NOTE_INSN_BASIC_BLOCK.
-+     Note: bb_head may equal next_insn(bb_end) already ! */
-+  while (head && head != nxtb && LABEL_P (head))
-+    head = NEXT_INSN (head);
-+
-+  if (!head || head == nxtb)
-+    return 0;
-+
-+  /* Handle the basic block itself, at most up to next CALL_INSN. */
-+  count = bb_insert_store_cache_barrier (head, nxtb);
-+
-+  /* 1) Handle any CALL_INSN instruction like a conditional branch.
-+     2) There may be "basic blocks" in the list, which are no basic blocks
-+        at all. (containing CODE_LABELs in the body or gathering several
-+        other basic blocks (e.g. bb5 containing bb6,bb7,bb8)). */
-+
-+  while ((head = NEXT_INSN (head)) && head != nxtb)
-+    {
-+      if (INSN_DELETED_P (head))
-+        continue;
-+
-+      /* Later we'll be called again for this bb on its own. */
-+      if (NOTE_INSN_BASIC_BLOCK_P(head))
-+        break;
-+
-+      if (CALL_P (SEQ_BEGIN (head)) || LABEL_P (head))
-+        count += bb_insert_store_cache_barrier (head, nxtb);
-+    }
-+  return count;
-+}
-+
-+static int
-+r10k_insert_cache_barriers (void)
-+{
-+  if (mips_r10k_cache_barrier)
-+    {
-+      basic_block bb;
-+
-+      const char *s = mips_r10k_cache_barrier;
-+      /* Default is to protect stores (only). */
-+      TARGET_R10K_SPECEX = 1 | strtol(*s != '=' ? s:s+1, (char**)0, 0);
-+
-+      FOR_EACH_BB (bb)
-+        if (0 <= bb->index)
-+          scan_1_bb_for_store (BB_HEAD (bb), BB_END (bb));
-+    }
-+  return 0;
-+}
diff --git a/sys-devel/gcc/files/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch b/sys-devel/gcc/files/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch
deleted file mode 100644 (file)
index d02a5e9..0000000
+++ /dev/null
@@ -1,460 +0,0 @@
-diff -Naurp gcc-3.4.1.orig/gcc/config/mips/mips.c gcc-3.4.1/gcc/config/mips/mips.c
---- gcc-3.4.1.orig/gcc/config/mips/mips.c      2004-06-28 09:58:42.000000000 -0400
-+++ gcc-3.4.1/gcc/config/mips/mips.c   2004-08-09 22:37:21.983939192 -0400
-@@ -707,6 +707,7 @@ const struct mips_cpu_info mips_cpu_info
- 
-   /* MIPS IV */
-   { "r8000", PROCESSOR_R8000, 4 },
-+  { "r10000", PROCESSOR_R10000, 4 },
-   { "vr5000", PROCESSOR_R5000, 4 },
-   { "vr5400", PROCESSOR_R5400, 4 },
-   { "vr5500", PROCESSOR_R5500, 4 },
-@@ -9401,6 +9402,9 @@ mips_issue_rate (void)
- {
-   switch (mips_tune)
-     {
-+    case PROCESSOR_R10000:
-+      return 4;
-+
-     case PROCESSOR_R5400:
-     case PROCESSOR_R5500:
-     case PROCESSOR_R7000:
-diff -Naurp gcc-3.4.1.orig/gcc/config/mips/mips.h gcc-3.4.1/gcc/config/mips/mips.h
---- gcc-3.4.1.orig/gcc/config/mips/mips.h      2004-03-11 16:52:33.000000000 -0500
-+++ gcc-3.4.1/gcc/config/mips/mips.h   2004-08-09 01:02:35.042149496 -0400
-@@ -66,6 +66,7 @@ enum processor_type {
-   PROCESSOR_R7000,
-   PROCESSOR_R8000,
-   PROCESSOR_R9000,
-+  PROCESSOR_R10000,
-   PROCESSOR_SB1,
-   PROCESSOR_SR71000
- };
-diff -Naurp gcc-3.4.1.orig/gcc/config/mips/mips.md gcc-3.4.1/gcc/config/mips/mips.md
---- gcc-3.4.1.orig/gcc/config/mips/mips.md     2004-06-25 03:35:30.000000000 -0400
-+++ gcc-3.4.1/gcc/config/mips/mips.md  2004-08-09 04:55:10.158649320 -0400
-@@ -103,6 +103,7 @@
- ;; arith      integer arithmetic instruction
- ;; darith     double precision integer arithmetic instructions
- ;; const      load constant
-+;; shift        integer shift
- ;; imul               integer multiply
- ;; imadd      integer multiply-add
- ;; idiv               integer divide
-@@ -120,7 +121,7 @@
- ;; multi      multiword sequence (or user asm statements)
- ;; nop                no operation
- (define_attr "type"
--  "unknown,branch,jump,call,load,store,prefetch,prefetchx,move,condmove,xfer,hilo,const,arith,darith,imul,imadd,idiv,icmp,fadd,fmul,fmadd,fdiv,fabs,fneg,fcmp,fcvt,fsqrt,frsqrt,multi,nop"
-+  "unknown,branch,jump,call,load,store,prefetch,prefetchx,move,condmove,xfer,hilo,const,arith,darith,shift,imul,imadd,idiv,icmp,fadd,fmul,fmadd,fdiv,fabs,fneg,fcmp,fcvt,fsqrt,frsqrt,multi,nop"
-   (cond [(eq_attr "jal" "!unset") (const_string "call")
-        (eq_attr "got" "load") (const_string "load")]
-       (const_string "unknown")))
-@@ -214,7 +215,7 @@
- ;; Attribute describing the processor.  This attribute must match exactly
- ;; with the processor_type enumeration in mips.h.
- (define_attr "cpu"
--  "default,4kc,5kc,20kc,m4k,r3000,r3900,r6000,r4000,r4100,r4111,r4120,r4300,r4600,r4650,r5000,r5400,r5500,r7000,r8000,r9000,sb1,sr71000"
-+  "default,4kc,5kc,20kc,m4k,r3000,r3900,r6000,r4000,r4100,r4111,r4120,r4300,r4600,r4650,r5000,r5400,r5500,r7000,r8000,r9000,r10000,sb1,sr71000"
-   (const (symbol_ref "mips_tune")))
- 
- ;; The type of hardware hazard associated with this instruction.
-@@ -305,12 +306,12 @@
- 
- (define_function_unit "memory" 1 0
-   (and (eq_attr "type" "load")
--       (eq_attr "cpu" "!r3000,r3900,r4600,r4650,r4100,r4120,r4300,r5000"))
-+       (eq_attr "cpu" "!r3000,r3900,r4600,r4650,r4100,r4120,r4300,r5000,r10000"))
-   3 0)
- 
- (define_function_unit "memory" 1 0
-   (and (eq_attr "type" "load")
--       (eq_attr "cpu" "r3000,r3900,r4600,r4650,r4100,r4120,r4300,r5000"))
-+       (eq_attr "cpu" "r3000,r3900,r4600,r4650,r4100,r4120,r4300,r5000,r10000"))
-   2 0)
- 
- (define_function_unit "memory"   1 0 (eq_attr "type" "store") 1 0)
-@@ -323,7 +324,7 @@
- 
- (define_function_unit "imuldiv"  1 0
-   (and (eq_attr "type" "imul,imadd")
--       (eq_attr "cpu" "!r3000,r3900,r4000,r4600,r4650,r4100,r4120,r4300,r5000"))
-+       (eq_attr "cpu" "!r3000,r3900,r4000,r4600,r4650,r4100,r4120,r4300,r5000,r10000"))
-   17 17)
- 
- ;; On them mips16, we want to stronly discourage a mult from appearing
-@@ -375,7 +376,7 @@
- 
- (define_function_unit "imuldiv"  1 0
-   (and (eq_attr "type" "idiv")
--       (eq_attr "cpu" "!r3000,r3900,r4000,r4600,r4650,r4100,r4120,r4300,r5000"))
-+       (eq_attr "cpu" "!r3000,r3900,r4000,r4600,r4650,r4100,r4120,r4300,r5000,r10000"))
-   38 38)
- 
- (define_function_unit "imuldiv"  1 0
-@@ -424,6 +425,40 @@
-        (and (eq_attr "mode" "DI") (eq_attr "cpu" "r5000")))
-   68 68)
- 
-+;; R10000 has 2 integer ALUs
-+(define_function_unit "alu" 2 0
-+  (and (eq_attr "type" "arith,darith,shift")
-+       (eq_attr "cpu" "r10000"))
-+  1 0)
-+
-+;; Only ALU1 can do shifts.  We model shifts as an additional unit
-+(define_function_unit "alu1" 1 0
-+  (and (eq_attr "type" "shift")
-+       (eq_attr "cpu" "r10000"))
-+  1 0)
-+
-+;; only ALU2 does multiplications and divisions
-+(define_function_unit "alu2"  1 0
-+  (and (eq_attr "type" "imul")
-+       (and (eq_attr "mode" "SI") (eq_attr "cpu" "r10000")))
-+  6 6)
-+
-+(define_function_unit "alu2"  1 0
-+  (and (eq_attr "type" "imul")
-+       (and (eq_attr "mode" "DI") (eq_attr "cpu" "r10000")))
-+  10 10)
-+
-+(define_function_unit "alu2"  1 0
-+  (and (eq_attr "type" "idiv")
-+       (and (eq_attr "mode" "SI") (eq_attr "cpu" "r10000")))
-+  35 35)
-+
-+(define_function_unit "alu2"  1 0
-+  (and (eq_attr "type" "idiv")
-+       (and (eq_attr "mode" "DI") (eq_attr "cpu" "r10000")))
-+  67 67)
-+
-+
- ;; The R4300 does *NOT* have a separate Floating Point Unit, instead
- ;; the FP hardware is part of the normal ALU circuitry.  This means FP
- ;; instructions affect the pipe-line, and no functional unit
-@@ -432,11 +467,11 @@
- ;; instructions to be processed in the "imuldiv" unit.
- 
- (define_function_unit "adder" 1 1
--  (and (eq_attr "type" "fcmp") (eq_attr "cpu" "!r3000,r3900,r6000,r4300,r5000"))
-+  (and (eq_attr "type" "fcmp") (eq_attr "cpu" "!r3000,r3900,r6000,r4300,r5000,r10000"))
-   3 0)
- 
- (define_function_unit "adder" 1 1
--  (and (eq_attr "type" "fcmp") (eq_attr "cpu" "r3000,r3900,r6000"))
-+  (and (eq_attr "type" "fcmp") (eq_attr "cpu" "r3000,r3900,r6000,r10000"))
-   2 0)
- 
- (define_function_unit "adder" 1 1
-@@ -444,7 +479,7 @@
-   1 0)
- 
- (define_function_unit "adder" 1 1
--  (and (eq_attr "type" "fadd") (eq_attr "cpu" "!r3000,r3900,r6000,r4300"))
-+  (and (eq_attr "type" "fadd") (eq_attr "cpu" "!r3000,r3900,r6000,r4300,r10000"))
-   4 0)
- 
- (define_function_unit "adder" 1 1
-@@ -456,6 +491,10 @@
-   3 0)
- 
- (define_function_unit "adder" 1 1
-+  (and (eq_attr "type" "fadd,fmadd") (eq_attr "cpu" "r10000"))
-+  2 0)
-+
-+(define_function_unit "adder" 1 1
-   (and (eq_attr "type" "fabs,fneg")
-        (eq_attr "cpu" "!r3000,r3900,r4600,r4650,r4300,r5000"))
-   2 0)
-@@ -467,7 +506,7 @@
- (define_function_unit "mult" 1 1
-   (and (eq_attr "type" "fmul")
-        (and (eq_attr "mode" "SF")
--          (eq_attr "cpu" "!r3000,r3900,r6000,r4600,r4650,r4300,r5000")))
-+          (eq_attr "cpu" "!r3000,r3900,r6000,r4600,r4650,r4300,r5000,r10000")))
-   7 0)
- 
- (define_function_unit "mult" 1 1
-@@ -487,7 +526,7 @@
- 
- (define_function_unit "mult" 1 1
-   (and (eq_attr "type" "fmul")
--       (and (eq_attr "mode" "DF") (eq_attr "cpu" "!r3000,r3900,r6000,r4300,r5000")))
-+       (and (eq_attr "mode" "DF") (eq_attr "cpu" "!r3000,r3900,r6000,r4300,r5000,r10000")))
-   8 0)
- 
- (define_function_unit "mult" 1 1
-@@ -500,10 +539,14 @@
-        (and (eq_attr "mode" "DF") (eq_attr "cpu" "r6000")))
-   6 0)
- 
-+(define_function_unit "mult" 1 1
-+  (and (eq_attr "type" "fmul,fmadd") (eq_attr "cpu" "r10000"))
-+  2 0)
-+
- (define_function_unit "divide" 1 1
-   (and (eq_attr "type" "fdiv")
-        (and (eq_attr "mode" "SF")
--          (eq_attr "cpu" "!r3000,r3900,r6000,r4600,r4650,r4300,r5000")))
-+          (eq_attr "cpu" "!r3000,r3900,r6000,r4600,r4650,r4300,r5000,r10000")))
-   23 0)
- 
- (define_function_unit "divide" 1 1
-@@ -529,7 +572,7 @@
- (define_function_unit "divide" 1 1
-   (and (eq_attr "type" "fdiv")
-        (and (eq_attr "mode" "DF")
--          (eq_attr "cpu" "!r3000,r3900,r6000,r4600,r4650,r4300")))
-+          (eq_attr "cpu" "!r3000,r3900,r6000,r4600,r4650,r4300,r10000")))
-   36 0)
- 
- (define_function_unit "divide" 1 1
-@@ -547,10 +590,21 @@
-        (and (eq_attr "mode" "DF") (eq_attr "cpu" "r4600,r4650")))
-   61 0)
- 
-+;; divisions keep multiplier busy on R10000
-+(define_function_unit "mult" 1 1
-+  (and (eq_attr "type" "fdiv") 
-+       (and (eq_attr "mode" "SF") (eq_attr "cpu" "r10000")))
-+  12 14)
-+
-+(define_function_unit "mult" 1 1
-+  (and (eq_attr "type" "fdiv") 
-+       (and (eq_attr "mode" "DF") (eq_attr "cpu" "r10000")))
-+  19 21)
-+
- ;;; ??? Is this number right?
- (define_function_unit "divide" 1 1
-   (and (eq_attr "type" "fsqrt,frsqrt")
--       (and (eq_attr "mode" "SF") (eq_attr "cpu" "!r4600,r4650,r4300,r5000")))
-+       (and (eq_attr "mode" "SF") (eq_attr "cpu" "!r4600,r4650,r4300,r5000,r10000")))
-   54 0)
- 
- (define_function_unit "divide" 1 1
-@@ -566,7 +620,7 @@
- ;;; ??? Is this number right?
- (define_function_unit "divide" 1 1
-   (and (eq_attr "type" "fsqrt,frsqrt")
--       (and (eq_attr "mode" "DF") (eq_attr "cpu" "!r4600,r4650,r4300,r5000")))
-+       (and (eq_attr "mode" "DF") (eq_attr "cpu" "!r4600,r4650,r4300,r5000,r10000")))
-   112 0)
- 
- (define_function_unit "divide" 1 1
-@@ -579,6 +633,17 @@
-        (and (eq_attr "mode" "DF") (eq_attr "cpu" "r5000")))
-   36 0)
- 
-+;; sqrt is executed by multiplier on R10000
-+(define_function_unit "mult" 1 1
-+  (and (eq_attr "type" "fsqrt")
-+       (and (eq_attr "mode" "SF") (eq_attr "cpu" "r10000")))
-+  18 20)
-+
-+(define_function_unit "mult" 1 1
-+  (and (eq_attr "type" "fsqrt")
-+       (and (eq_attr "mode" "DF") (eq_attr "cpu" "r10000")))
-+  33 35)
-+
- ;; R4300 FP instruction classes treated as part of the "imuldiv"
- ;; functional unit:
- 
-@@ -3157,7 +3222,7 @@ dsrl\t%3,%3,1\n\
-   "@
-     sll\t%0,%1,0
-     sw\t%1,%0"
--  [(set_attr "type" "darith,store")
-+  [(set_attr "type" "shift,store")
-    (set_attr "mode" "SI")
-    (set_attr "extended_mips16" "yes,*")])
- 
-@@ -3191,7 +3256,7 @@ dsrl\t%3,%3,1\n\
-                                   (match_operand:DI 2 "small_int" "I"))))]
-   "TARGET_64BIT && !TARGET_MIPS16 && INTVAL (operands[2]) >= 32"
-   "dsra\t%0,%1,%2"
--  [(set_attr "type" "darith")
-+  [(set_attr "type" "shift")
-    (set_attr "mode" "SI")])
- 
- (define_insn ""
-@@ -3200,7 +3265,7 @@ dsrl\t%3,%3,1\n\
-                                   (const_int 32))))]
-   "TARGET_64BIT && !TARGET_MIPS16"
-   "dsra\t%0,%1,32"
--  [(set_attr "type" "darith")
-+  [(set_attr "type" "shift")
-    (set_attr "mode" "SI")])
- 
- 
-@@ -5241,7 +5306,7 @@ dsrl\t%3,%3,1\n\
- 
-   return "sll\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "SI")])
- 
- (define_insn "ashlsi3_internal1_extend"
-@@ -5255,7 +5320,7 @@ dsrl\t%3,%3,1\n\
- 
-   return "sll\t%0,%1,%2";
- }
--  [(set_attr "type"    "arith")
-+  [(set_attr "type"    "shift")
-    (set_attr "mode"    "DI")])
- 
- 
-@@ -5273,7 +5338,7 @@ dsrl\t%3,%3,1\n\
- 
-   return "sll\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "SI")
-    (set_attr_alternative "length"
-               [(const_int 4)
-@@ -5374,7 +5439,7 @@ sll\t%L0,%L1,%2\n\
-   operands[2] = GEN_INT (INTVAL (operands[2]) & 0x1f);
-   return "sll\t%M0,%L1,%2\;move\t%L0,%.";
- }
--  [(set_attr "type"   "darith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr "length" "8")])
- 
-@@ -5429,7 +5494,7 @@ sll\t%L0,%L1,%2\n\
- 
-   return "sll\t%M0,%M1,%2\;srl\t%3,%L1,%4\;or\t%M0,%M0,%3\;sll\t%L0,%L1,%2";
- }
--  [(set_attr "type"   "darith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr "length" "16")])
- 
-@@ -5513,7 +5578,7 @@ sll\t%L0,%L1,%2\n\
- 
-   return "dsll\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")])
- 
- (define_insn ""
-@@ -5530,7 +5595,7 @@ sll\t%L0,%L1,%2\n\
- 
-   return "dsll\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr_alternative "length"
-               [(const_int 4)
-@@ -5591,7 +5656,7 @@ sll\t%L0,%L1,%2\n\
- 
-   return "sra\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "SI")])
- 
- (define_insn "ashrsi3_internal2"
-@@ -5608,7 +5673,7 @@ sll\t%L0,%L1,%2\n\
- 
-   return "sra\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "SI")
-    (set_attr_alternative "length"
-               [(const_int 4)
-@@ -5705,7 +5770,7 @@ sra\t%M0,%M1,%2\n\
-   operands[2] = GEN_INT (INTVAL (operands[2]) & 0x1f);
-   return "sra\t%L0,%M1,%2\;sra\t%M0,%M1,31";
- }
--  [(set_attr "type"   "darith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr "length" "8")])
- 
-@@ -5760,7 +5825,7 @@ sra\t%M0,%M1,%2\n\
- 
-   return "srl\t%L0,%L1,%2\;sll\t%3,%M1,%4\;or\t%L0,%L0,%3\;sra\t%M0,%M1,%2";
- }
--  [(set_attr "type"   "darith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr "length" "16")])
- 
-@@ -5844,7 +5909,7 @@ sra\t%M0,%M1,%2\n\
- 
-   return "dsra\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")])
- 
- (define_insn ""
-@@ -5858,7 +5923,7 @@ sra\t%M0,%M1,%2\n\
- 
-   return "dsra\t%0,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr_alternative "length"
-               [(const_int 4)
-@@ -5918,7 +5983,7 @@ sra\t%M0,%M1,%2\n\
- 
-   return "srl\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "SI")])
- 
- (define_insn "lshrsi3_internal2"
-@@ -5935,7 +6000,7 @@ sra\t%M0,%M1,%2\n\
- 
-   return "srl\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "SI")
-    (set_attr_alternative "length"
-               [(const_int 4)
-@@ -6056,7 +6121,7 @@ srl\t%M0,%M1,%2\n\
-   operands[2] = GEN_INT (INTVAL (operands[2]) & 0x1f);
-   return "srl\t%L0,%M1,%2\;move\t%M0,%.";
- }
--  [(set_attr "type"   "darith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr "length" "8")])
- 
-@@ -6111,7 +6176,7 @@ srl\t%M0,%M1,%2\n\
- 
-   return "srl\t%L0,%L1,%2\;sll\t%3,%M1,%4\;or\t%L0,%L0,%3\;srl\t%M0,%M1,%2";
- }
--  [(set_attr "type"   "darith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr "length" "16")])
- 
-@@ -6195,7 +6260,7 @@ srl\t%M0,%M1,%2\n\
- 
-   return "dsrl\t%0,%1,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")])
- 
- (define_insn ""
-@@ -6209,7 +6274,7 @@ srl\t%M0,%M1,%2\n\
- 
-   return "dsrl\t%0,%2";
- }
--  [(set_attr "type"   "arith")
-+  [(set_attr "type"   "shift")
-    (set_attr "mode"   "DI")
-    (set_attr_alternative "length"
-               [(const_int 4)
index 238d27d282fd2909334eb96fb300b3e5c9aaf122..100cf0795e28761d1cb1c46f0e964afb6d84d5c1 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.6-r2.ebuild,v 1.38 2014/10/23 23:48:17 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.6-r2.ebuild,v 1.39 2015/03/29 19:24:26 vapier Exp $
 
 EAPI="2"
 
@@ -14,7 +14,6 @@ D_VER="0.24"
 inherit eutils toolchain
 
 KEYWORDS="-* alpha amd64 arm ~ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
-IUSE="ip28 ip32r10k n32 n64"
 
 # we need a proper glibc version for the Scrt1.o provided to the pie-ssp specs
 # NOTE: we SHOULD be using at least binutils 2.15.90.0.1 everywhere for proper
@@ -41,34 +40,6 @@ src_prepare() {
 
        # Arch stuff
        case $(tc-arch) in
-               mips)
-                       # If mips, and we DON'T want multilib, then rig gcc to only use n32 OR n64
-                       if ! is_multilib; 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 to DFA in gcc-4.0 - Any Volunteers? :)
-                       epatch "${FILESDIR}"/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch
-
-                       # This is a very special patch -- it allows us to build semi-usable kernels
-                       # on SGI IP28 (Indigo2 Impact R10000) systems.  The patch is henceforth
-                       # regarded as a kludge by upstream, and thus, it will never get accepted upstream,
-                       # but for our purposes of building a kernel, it works.
-                       # Unless you're building an IP28 kernel, you really don't need care about what
-                       # this patch does, because if you are, you are probably already aware of what
-                       # it does.
-                       # All that said, the abilities of this patch are disabled by default and need
-                       # to be enabled by passing -mip28-cache-barrier.  Only used to build kernels,
-                       # There is the possibility it may be used for very specific userland apps too.
-                       if use ip28 || use ip32r10k; then
-                               epatch "${FILESDIR}"/3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch
-                       fi
-                       ;;
                amd64)
                        if is_multilib ; then
                                sed -i -e '/GLIBCXX_IS_NATIVE=/s:false:true:' libstdc++-v3/configure || die
index c5639e793ed0abdb259d360efe06093c6960a343..a181266b55e06bfd1904b69023f10bd61ef55896 100644 (file)
     <flag name="go">Build the GCC Go language frontend.</flag>
     <flag name="graphite">Add support for the framework for loop
       optimizations based on a polyhedral intermediate representation</flag>
-    <flag name="ip28">Enable building a compiler capable of building a kernel
-      for SGI Indigo2 Impact R10000 (IP28)</flag>
-    <flag name="ip32r10k">Enable building a compiler capable of building an
-      experimental kernel for SGI O2 w/ R1x000 CPUs (IP32)</flag>
     <flag name="libssp">Build SSP support into a dedicated library rather than use the
       code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag>
     <flag name="mudflap">Add support for mudflap, a pointer use checking library</flag>
     <flag name="multislot">Allow for SLOTs to include minor version (3.3.4
       instead of just 3.3)</flag>
-    <flag name="n32">Enable n32 ABI support on mips</flag>
-    <flag name="n64">Enable n64 ABI support on mips</flag>
     <flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag>
     <flag name="nossp">Disable SSP support (NOT FOR GENERAL USE)</flag>
     <flag name="objc">Build support for the Objective C code language</flag>