Do not x86 asm in PUSH_CONTENTS_HDR for NaCl
authorIvan Maidanski <ivmai@mail.ru>
Mon, 23 Jan 2017 23:10:16 +0000 (02:10 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 23 Jan 2017 23:10:26 +0000 (02:10 +0300)
* include/private/gc_pmark.h [I386 && __GNUC__] (LONG_MULT): Do not use
asm-based implementation ("mull") if NACL (i.e. fallback to plain C).

include/private/gc_pmark.h

index 796ed47..cab2a30 100644 (file)
@@ -200,7 +200,7 @@ GC_INNER mse * GC_signal_mark_stack_overflow(mse *msp);
 # define TRACE_TARGET(source, cmd)
 #endif
 
-#if defined(I386) && defined(__GNUC__)
+#if defined(I386) && defined(__GNUC__) && !defined(NACL)
 # define LONG_MULT(hprod, lprod, x, y) \
     do { \
         __asm__ __volatile__("mull %2" : "=a"(lprod), "=d"(hprod) \