From: John David Anglin Date: Thu, 24 Jan 2008 17:18:54 +0000 (+0000) Subject: re PR middle-end/34931 (FAIL: gcc.dg/pr28796-[12].c (test for excess errors)) X-Git-Tag: prereleases/gcc-4.2.3-rc1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71e92a6c1431ce4aac4508d740266dac4da7ce2d;p=thirdparty%2Fgcc.git re PR middle-end/34931 (FAIL: gcc.dg/pr28796-[12].c (test for excess errors)) PR middle-end/34931 Backport: 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-26 Steve Ellcey PR other/30182 * config/pa/pa.h (TARGET_HPUX_11): New. * config/pa/pa-hpux11.h (TARGET_HPUX_11): New. * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11. From-SVN: r131797 --- diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 20412685316c..082a2315bedd 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -9174,6 +9174,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-hpux11.h b/gcc/config/pa/pa-hpux11.h index c3f7cb10f018..4c64447f4d2a 100644 --- a/gcc/config/pa/pa-hpux11.h +++ b/gcc/config/pa/pa-hpux11.h @@ -177,3 +177,6 @@ along with GCC; see the file COPYING3. If not see with secondary definition (weak) symbols. */ #undef TARGET_SOM_SDEF #define TARGET_SOM_SDEF 1 + +#undef TARGET_HPUX_11 +#define TARGET_HPUX_11 1 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 406ed51feacf..ffe96145754f 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -511,6 +511,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_11 + 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. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 889a65e06318..d814bc646fa2 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -83,6 +83,11 @@ extern int flag_pa_unix; #define TARGET_HPUX_10_10 0 #endif +/* HP-UX 11.* features (11.00, 11.11, 11.23, etc.) */ +#ifndef TARGET_HPUX_11 +#define TARGET_HPUX_11 0 +#endif + /* HP-UX 11i multibyte and UNIX 98 extensions. */ #ifndef TARGET_HPUX_11_11 #define TARGET_HPUX_11_11 0