[Glibc-bsd-commits] r4418 - in trunk/glibc-ports/kfreebsd/i386: . linuxthreads
Petr Salinger
ps-guest at alioth.debian.org
Wed May 8 14:40:32 UTC 2013
Author: ps-guest
Date: 2013-05-08 14:40:32 +0000 (Wed, 08 May 2013)
New Revision: 4418
Modified:
trunk/glibc-ports/kfreebsd/i386/linuxthreads/vfork.S
trunk/glibc-ports/kfreebsd/i386/sysdep.h
Log:
get_pc_thunk support for gcc-4.7
Modified: trunk/glibc-ports/kfreebsd/i386/linuxthreads/vfork.S
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/linuxthreads/vfork.S 2013-05-08 12:38:00 UTC (rev 4417)
+++ trunk/glibc-ports/kfreebsd/i386/linuxthreads/vfork.S 2013-05-08 14:40:32 UTC (rev 4418)
@@ -26,7 +26,7 @@
ENTRY (__vfork)
# ifdef SHARED
- call __i686.get_pc_thunk.cx
+ call GET_PC_THUNK(cx)
addl $_GLOBAL_OFFSET_TABLE_, %ecx
cmpl $0, __libc_pthread_functions at GOTOFF(%ecx)
# else
Modified: trunk/glibc-ports/kfreebsd/i386/sysdep.h
===================================================================
--- trunk/glibc-ports/kfreebsd/i386/sysdep.h 2013-05-08 12:38:00 UTC (rev 4417)
+++ trunk/glibc-ports/kfreebsd/i386/sysdep.h 2013-05-08 14:40:32 UTC (rev 4418)
@@ -34,6 +34,20 @@
#define __i686 __i686
#endif
+#ifdef __ASSEMBLER__
+# if __GNUC_PREREQ (4, 7)
+# define GET_PC_THUNK(reg) __x86.get_pc_thunk.reg
+# else
+# define GET_PC_THUNK(reg) __i686.get_pc_thunk.reg
+# endif
+#else
+# if __GNUC_PREREQ (4, 7)
+# define GET_PC_THUNK_STR(reg) "__x86.get_pc_thunk." #reg
+# else
+# define GET_PC_THUNK_STR(reg) "__i686.get_pc_thunk." #reg
+# endif
+#endif
+
#ifdef __ASSEMBLER__
/* We don't want the label for the error handle to be global when we define
More information about the Glibc-bsd-commits
mailing list