aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.2.1-5666.3/gcc/config/i386/lib1funcs.asm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.2.1-5666.3/gcc/config/i386/lib1funcs.asm')
-rw-r--r--gcc-4.2.1-5666.3/gcc/config/i386/lib1funcs.asm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc-4.2.1-5666.3/gcc/config/i386/lib1funcs.asm b/gcc-4.2.1-5666.3/gcc/config/i386/lib1funcs.asm
new file mode 100644
index 000000000..c672024bb
--- /dev/null
+++ b/gcc-4.2.1-5666.3/gcc/config/i386/lib1funcs.asm
@@ -0,0 +1,30 @@
+# APPLE LOCAL file 4099000
+#ifndef __x86_64__
+#define THUNK(REG) \
+.private_extern ___i686.get_pc_thunk.REG ;\
+___i686.get_pc_thunk.REG: ;\
+ movl (%esp,1),%REG ;\
+ ret ;
+
+#ifdef L_get_pc_thunk_ax
+THUNK(eax)
+#endif
+#ifdef L_get_pc_thunk_dx
+THUNK(edx)
+#endif
+#ifdef L_get_pc_thunk_cx
+THUNK(ecx)
+#endif
+#ifdef L_get_pc_thunk_bx
+THUNK(ebx)
+#endif
+#ifdef L_get_pc_thunk_si
+THUNK(esi)
+#endif
+#ifdef L_get_pc_thunk_di
+THUNK(edi)
+#endif
+#ifdef L_get_pc_thunk_bp
+THUNK(ebp)
+#endif
+#endif