[pypy-commit] stmgc use-gcc: improve error message on a non-patched gcc

arigo noreply at buildbot.pypy.org
Sun May 24 11:21:37 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: use-gcc
Changeset: r1768:a23e1117adb9
Date: 2015-05-24 11:16 +0200
http://bitbucket.org/pypy/stmgc/changeset/a23e1117adb9/

Log:	improve error message on a non-patched gcc

diff --git a/c7/stmgc.h b/c7/stmgc.h
--- a/c7/stmgc.h
+++ b/c7/stmgc.h
@@ -23,9 +23,11 @@
 #ifdef __SEG_GS     /* on a custom patched gcc */
 #  define TLPREFIX __seg_gs
 #  define _STM_RM_SUFFIX  :8
-#else
+#elif defined(__clang__)   /* on a clang, hopefully made bug-free */
 #  define TLPREFIX __attribute__((address_space(256)))
 #  define _STM_RM_SUFFIX  /* nothing */
+#else
+#  error "needs either a GCC with __seg_gs support, or a bug-freed clang"
 #endif
 
 typedef TLPREFIX struct object_s object_t;


More information about the pypy-commit mailing list