Commit 2ad3ac2b authored by Simon Marlow's avatar Simon Marlow

don't steal %ebx for the GC on x86: it's also used by PIC

parent c6453def
......@@ -196,7 +196,9 @@ extern gc_thread **gc_threads;
#define GLOBAL_REG_DECL(type,name,reg) register type name REG(reg);
#if defined(REG_Base)
#if defined(REG_Base) && !defined(i386_HOST_ARCH)
// on i386, REG_Base is %ebx which is also used for PIC, so we don't
// want to steal it
GLOBAL_REG_DECL(gc_thread*, gct, REG_Base)
#define DECLARE_GCT /* nothing */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment