Skip to content
Snippets Groups Projects
Commit ac007ff4 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

sdcc: compiling SDCCicode.c with -O2 sends gcc 4.6.x into an infinite loop,...

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
parent cc5b3e68
No related branches found
No related tags found
No related merge requests found
--- 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
/*-----------------------------------------------------------------*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment