Fix alpha and ia64 non-vms build.
authorRichard Henderson <rth@redhat.com>
Mon, 27 Jun 2011 19:57:09 +0000 (12:57 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 27 Jun 2011 19:57:09 +0000 (12:57 -0700)
        * 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
gcc/config/alpha/alpha.c
gcc/config/ia64/ia64.c

index 241a1f4b14939a77cdad26c3d2dc378be0e6463e..2bc4210354feedfce6e55a4174ccb6cdd73c947d 100644 (file)
@@ -1,3 +1,9 @@
+2011-06-27  Richard Henderson  <rth@redhat.com>
+
+       * 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  <jakub@redhat.com>
 
        * c-decl.c (union lang_tree_node): Use it in chain_next expression.
index 5d656f1296330ab82d11599be9c327f67587837a..962f0203a9a3fdb1f7902bcaa1347930a8585a28 100644 (file)
@@ -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
 \f
 #ifdef TARGET_ALTERNATE_LONG_DOUBLE_MANGLING
index b0d9dc8a74691f2ddc5f6b6a25183d672d4d3ff8..c06903d869f95911ab897711c97fe61a4a5ac8fc 100644 (file)
@@ -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,   \