diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2008-02-27 18:29:58 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2008-02-27 18:29:58 +0100 |
commit | c92712d17a180ab55c4f3cb75b44e4856f40ce9a (patch) | |
tree | ec78261e34e333fcc51cf441a827cbcd2bbe14ab /gcc/config/darwin.c | |
parent | a8bafc433ca3957e3388b51ad340c6dffdda68f5 (diff) | |
download | gcc-c92712d17a180ab55c4f3cb75b44e4856f40ce9a.zip gcc-c92712d17a180ab55c4f3cb75b44e4856f40ce9a.tar.gz gcc-c92712d17a180ab55c4f3cb75b44e4856f40ce9a.tar.bz2 |
re PR target/25477 (builtin functions should use $LDBL128 suffix on darwin when appropriate)
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.
From-SVN: r132723
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 13aa021..6c2de25 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" |