[pypy-commit] pypy default: Add a workaround for GCC 4.8.

arigo noreply at buildbot.pypy.org
Mon Apr 15 16:14:46 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r63367:7b4d1048f5c9
Date: 2013-04-15 16:17 +0200
http://bitbucket.org/pypy/pypy/changeset/7b4d1048f5c9/

Log:	Add a workaround for GCC 4.8.

diff --git a/rpython/translator/c/src/support.h b/rpython/translator/c/src/support.h
--- a/rpython/translator/c/src/support.h
+++ b/rpython/translator/c/src/support.h
@@ -2,6 +2,16 @@
 /************************************************************/
  /***  C header subsection: support functions              ***/
 
+/* a temporary(?) workaround for GCC 4.8.  See:
+    http://stackoverflow.com/questions/16016627/
+*/
+#ifdef __GNUC__
+# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
+#  pragma GCC optimize("no-aggressive-loop-optimizations")
+# endif
+#endif
+
+
 #define RUNNING_ON_LLINTERP	0
 #define OP_JIT_RECORD_KNOWN_CLASS(i, c, r)  /* nothing */
 


More information about the pypy-commit mailing list