File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
platforms/Cross/plugins/IA32ABI Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export TOOLPREFIX
99# C compiler settings (gcc 4.x)
1010#
1111ifeq ($(COMPILER_TO_USE),)
12- COMPILER_TO_USE:=gcc
12+ COMPILER_TO_USE:=clang
1313endif
1414
1515ifeq ($(COMPILER_TO_USE),clang)
Original file line number Diff line number Diff line change @@ -147,16 +147,14 @@ getMostRecentCallbackContext() { return mostRecentCallbackContext; }
147147 * args would get copied into a struct on the stack. A pointer to the struct
148148 * is then passed as an element of the VMCallbackContext.
149149 *
150- * N.B. On gcc 7.4.x thunkEntry fails if optimized, for as yet not fully
150+ * N.B. On gcc, thunkEntry fails if optimized, for as yet not fully
151151 * diagnosed reasons. See
152152 * https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/353
153- * Hence the pragma below.
153+ * Hence the pragma below. Works fine for clang.
154154 */
155155long
156- #ifdef __GNUC__
157- # if __GNUC__ == 7 && __GNUC_MINOR__ >= 4
156+ #if defined(__GNUC__ ) && !defined(__clang__ )
158157__attribute__((optimize ("O0" )))
159- # endif
160158#endif
161159thunkEntry (void * thunkp , sqIntptr_t * stackp )
162160{
You can’t perform that action at this time.
0 commit comments