OSDN Git Service

PR target/47558
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / darwin.h
index a9a2da4..9cf51e3 100644 (file)
@@ -309,5 +309,14 @@ do {                                                                       \
 #define SUBTARGET_INIT_BUILTINS                                        \
 do {                                                           \
   darwin_init_cfstring_builtins ((unsigned) (IX86_BUILTIN_MAX));\
+  darwin_rename_builtins ();                                   \
 } while(0)
 
+/* The system ___divdc3 routine in libSystem on darwin10 is not
+   accurate to 1ulp, ours is, so we avoid ever using the system name
+   for this routine and instead install a non-conflicting name that is
+   accurate.  See darwin_rename_builtins.  */
+#ifdef L_divdc3
+#define DECLARE_LIBRARY_RENAMES \
+  asm(".text; ___divdc3: jmp ___ieee_divdc3 ; .globl ___divdc3");
+#endif