From 7d52200069f68d9e2ebd4ad4737c40505bfa0d9b Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Thu, 25 Jan 2007 17:06:55 +0000 Subject: [PATCH] re PR target/30182 (FAIL: gcc.dg/pr28796-2.c (test for excess errors)) PR other/30182 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines. * config/ia64/ia64.c (ia64_init_builtins): Ditto. From-SVN: r121178 --- gcc/ChangeLog | 6 ++++++ gcc/config/ia64/ia64.c | 13 +++++++++++++ gcc/config/pa/pa.c | 6 ++++++ 3 files changed, 25 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a8cde814b1d..ca84d3dbca20 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-01-25 Steve Ellcey + + PR other/30182 + * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines. + * config/ia64/ia64.c (ia64_init_builtins): Ditto. + 2007-01-25 Richard Guenther * doc/invoke.texi (-Wcoverage-mismatch): Document. diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 36c0d63e1ae4..dec82ae78005 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -9146,6 +9146,19 @@ ia64_init_builtins (void) IA64_BUILTIN_FLUSHRS); #undef def_builtin + + if (TARGET_HPUX) + { + if (built_in_decls [BUILT_IN_FINITE]) + set_user_assembler_name (built_in_decls [BUILT_IN_FINITE], + "_Isfinite"); + if (built_in_decls [BUILT_IN_FINITEF]) + set_user_assembler_name (built_in_decls [BUILT_IN_FINITEF], + "_Isfinitef"); + if (built_in_decls [BUILT_IN_FINITEL]) + set_user_assembler_name (built_in_decls [BUILT_IN_FINITEL], + "_Isfinitef128"); + } } rtx diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 0430853ab3eb..85c2c1fa28db 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -512,6 +512,12 @@ pa_init_builtins (void) implicit_built_in_decls[(int) BUILT_IN_FPUTC_UNLOCKED] = implicit_built_in_decls[(int) BUILT_IN_PUTC_UNLOCKED]; #endif +#if TARGET_HPUX + if (built_in_decls [BUILT_IN_FINITE]) + set_user_assembler_name (built_in_decls [BUILT_IN_FINITE], "_Isfinite"); + if (built_in_decls [BUILT_IN_FINITEF]) + set_user_assembler_name (built_in_decls [BUILT_IN_FINITEF], "_Isfinitef"); +#endif } /* Function to init struct machine_function.