OSDN Git Service

PR target/25477
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Feb 2008 17:29:58 +0000 (17:29 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Feb 2008 17:29:58 +0000 (17:29 +0000)
        * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
        (BUILT_IN_NEXTTOWARD): Remove.
        (BUILT_IN_NEXTTOWARDF): Ditto.
        * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
        alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132723 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/darwin-ppc-ldouble-patch.def
gcc/config/darwin.c

index 4eb013e..b589293 100644 (file)
@@ -1,3 +1,12 @@
+2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/25477
+       * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
+       (BUILT_IN_NEXTTOWARD): Remove.
+       (BUILT_IN_NEXTTOWARDF): Ditto.
+       * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
+       alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
+
 2008-02-27  Tom Tromey  <tromey@redhat.com>
 
        * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
 
 2008-02-25  Jan Beulich  <jbeulich@novell.com>
 
-       * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with
-       $(T).
+       * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
        * config/i386/netware-libgcc.exp: Add __bswap?i2,
        __emultls_get_address, __emultls_register_common,
        __floatundi?f, and _Unwind_GetIPInfo.
index 0d09221..b532328 100644 (file)
@@ -59,10 +59,9 @@ PATCH_BUILTIN (BUILT_IN_LOGL)
 PATCH_BUILTIN (BUILT_IN_LRINTL)
 PATCH_BUILTIN (BUILT_IN_LROUNDL)
 PATCH_BUILTIN (BUILT_IN_MODFL)
+PATCH_BUILTIN (BUILT_IN_NANL)
 PATCH_BUILTIN (BUILT_IN_NEARBYINTL)
 PATCH_BUILTIN (BUILT_IN_NEXTAFTERL)
-PATCH_BUILTIN (BUILT_IN_NEXTTOWARD)
-PATCH_BUILTIN (BUILT_IN_NEXTTOWARDF)
 PATCH_BUILTIN (BUILT_IN_NEXTTOWARDL)
 PATCH_BUILTIN (BUILT_IN_POWL)
 PATCH_BUILTIN (BUILT_IN_REMAINDERL)
@@ -78,6 +77,7 @@ PATCH_BUILTIN (BUILT_IN_TANHL)
 PATCH_BUILTIN (BUILT_IN_TANL)
 PATCH_BUILTIN (BUILT_IN_TGAMMAL)
 PATCH_BUILTIN (BUILT_IN_TRUNCL)
+
 PATCH_BUILTIN_NO64 (BUILT_IN_VFPRINTF)
 PATCH_BUILTIN_NO64 (BUILT_IN_VFSCANF)
 PATCH_BUILTIN_NO64 (BUILT_IN_VPRINTF)
index 13aa021..6c2de25 100644 (file)
@@ -1748,18 +1748,13 @@ darwin_patch_builtin (int fncode)
     return;
 
   sym = DECL_ASSEMBLER_NAME (fn);
-  newname = alloca (IDENTIFIER_LENGTH (sym) + 10);
-  strcpy (newname, "_");
-  strcat (newname, IDENTIFIER_POINTER (sym));
-  strcat (newname, "$LDBL128");
+  newname = ACONCAT (("_", IDENTIFIER_POINTER (sym), "$LDBL128", NULL));
+
   set_user_assembler_name (fn, newname);
-  /*sym = get_identifier (newname);
-  SET_DECL_ASSEMBLER_NAME (fn, sym);*/
 
   fn = implicit_built_in_decls[fncode];
   if (fn)
     set_user_assembler_name (fn, newname);
-    /*SET_DECL_ASSEMBLER_NAME (fn, sym);*/
 }
 
 void
@@ -1769,11 +1764,11 @@ darwin_patch_builtins (void)
     return;
 
 #define PATCH_BUILTIN(fncode) darwin_patch_builtin (fncode);
-#define PATCH_BUILTIN_NO64(fncode) \
-  if (!TARGET_64BIT) \
+#define PATCH_BUILTIN_NO64(fncode)             \
+  if (!TARGET_64BIT)                           \
     darwin_patch_builtin (fncode);
-#define PATCH_BUILTIN_VARIADIC(fncode) \
-  if (!TARGET_64BIT \
+#define PATCH_BUILTIN_VARIADIC(fncode)                           \
+  if (!TARGET_64BIT                                              \
       && (strverscmp (darwin_macosx_version_min, "10.3.9") >= 0)) \
     darwin_patch_builtin (fncode);
 #include "darwin-ppc-ldouble-patch.def"