mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-03 21:09:42 +02:00
[tools] 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31236 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
338bcc51d7
commit
fd3229e755
20
tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch
Normal file
20
tools/sdcc/patches/100-workaround-gcc-4.6.2-hang.patch
Normal file
@ -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
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------*/
|
Loading…
Reference in New Issue
Block a user