summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/darwin-ppc-ldouble-patch.def4
-rw-r--r--gcc/config/darwin.c17
2 files changed, 8 insertions, 13 deletions
diff --git a/gcc/config/darwin-ppc-ldouble-patch.def b/gcc/config/darwin-ppc-ldouble-patch.def
index 0d09221e6a3..b532328408a 100644
--- a/gcc/config/darwin-ppc-ldouble-patch.def
+++ b/gcc/config/darwin-ppc-ldouble-patch.def
@@ -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)
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 13aa021f4c6..6c2de252fe3 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -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"