summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-10 13:18:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-04-10 13:18:45 +0000
commitac007ff48201607c10897a14ead7f3c2024eec85 (patch)
tree26f6a45f68f5bb036b29c898046fa25045d18a25
parentcc5b3e683ee091b29f6994cc42b2db4c9b90da3d (diff)
downloadmtk-20170518-ac007ff48201607c10897a14ead7f3c2024eec85.zip
mtk-20170518-ac007ff48201607c10897a14ead7f3c2024eec85.tar.gz
mtk-20170518-ac007ff48201607c10897a14ead7f3c2024eec85.tar.bz2
sdcc: compiling SDCCicode.c with -O2 sends gcc 4.6.x into an infinite loop, workaround it See references: http://sourceforge.net/tracker/?func=detail&aid=3285611&group_id=599&atid=300599 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52653
SVN-Revision: 31236
-rw-r--r--tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch b/tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch
new file mode 100644
index 0000000..71db14f
--- /dev/null
+++ b/tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch
@@ -0,0 +1,20 @@
+--- a/src/SDCCicode.c
++++ b/src/SDCCicode.c
+@@ -1130,6 +1130,9 @@ iCode *getBuiltinParms (iCode *ic, int *
+ return ic;
+ }
+
++#pragma GCC push_options
++#pragma GCC optimize ("O0")
++
+ /*-----------------------------------------------------------------*/
+ /* operandOperation - performs operations on operands */
+ /*-----------------------------------------------------------------*/
+@@ -1405,6 +1408,7 @@ operandOperation (operand * left, operan
+
+ return retval;
+ }
++#pragma GCC pop_options
+
+
+ /*-----------------------------------------------------------------*/