From 171da07afca69d2d89e0fd4e645f3fa6e49bf530 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 27 Jun 2011 12:57:09 -0700 Subject: [PATCH] Fix alpha and ia64 non-vms build. * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition. * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins inside ifdef. From-SVN: r175554 --- gcc/ChangeLog | 6 ++++++ gcc/config/alpha/alpha.c | 2 ++ gcc/config/ia64/ia64.c | 7 +++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 241a1f4b149..2bc4210354f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-27 Richard Henderson + + * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition. + * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins + inside ifdef. + 2011-06-27 Jakub Jelinek * c-decl.c (union lang_tree_node): Use it in chain_next expression. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 5d656f12963..962f0203a9a 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -198,6 +198,8 @@ static rtx alpha_emit_xfloating_compare (enum rtx_code *, rtx, rtx); #if TARGET_ABI_OPEN_VMS static void alpha_write_linkage (FILE *, const char *, tree); static bool vms_valid_pointer_mode (enum machine_mode); +#else +#define vms_patch_builtins() gcc_unreachable() #endif #ifdef TARGET_ALTERNATE_LONG_DOUBLE_MANGLING diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index b0d9dc8a746..c06903d869f 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -10131,10 +10131,9 @@ ia64_init_builtins (void) "__float128"); /* Fwrite on VMS is non-standard. */ - if (TARGET_ABI_OPEN_VMS) - { - vms_patch_builtins (); - } +#if TARGET_ABI_OPEN_VMS + vms_patch_builtins (); +#endif #define def_builtin(name, type, code) \ add_builtin_function ((name), (type), (code), BUILT_IN_MD, \ -- 2.30.2