summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-27 17:29:58 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-27 17:29:58 +0000
commitd243d9c968dafa0de7b012e1281c13ce45c61366 (patch)
treeec78261e34e333fcc51cf441a827cbcd2bbe14ab /gcc/config/darwin.c
parentde9ebaea83568ecb27f946aaaf84df8366b3088a (diff)
downloadgcc-d243d9c968dafa0de7b012e1281c13ce45c61366.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c17
1 files changed, 6 insertions, 11 deletions
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"