alpha-protos.h (vms_valid_decl_attribute_p): Delete.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sat, 7 Jul 2001 06:52:34 +0000 (06:52 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 7 Jul 2001 06:52:34 +0000 (06:52 +0000)
* config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
* config/alpha/alpha.c (alpha_init_machine_status,
alpha_mark_machine_status, alpha_free_machine_status): Delete.
(TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
(vms_valid_decl_attribute_p): Make static, conditionally compile.
* config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.

From-SVN: r43832

gcc/ChangeLog
gcc/config/alpha/alpha-protos.h
gcc/config/alpha/alpha.c
gcc/config/alpha/vms.h

index 933f4b8..c263e2f 100644 (file)
@@ -1,3 +1,12 @@
+2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
+       * config/alpha/alpha.c (alpha_init_machine_status,
+       alpha_mark_machine_status, alpha_free_machine_status): Delete.
+       (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
+       (vms_valid_decl_attribute_p): Make static, conditionally compile.
+       * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
+
 2001-07-06  Stan Shebs  <shebs@apple.com>
 
        * target.h (targetm): Rename global from "target", so as not to
index 06ecfa3..dfed787 100644 (file)
@@ -136,7 +136,6 @@ extern rtx alpha_va_arg PARAMS ((tree, tree));
 extern rtx function_arg PARAMS ((CUMULATIVE_ARGS, enum machine_mode,
                                 tree, int));
 #endif
-extern int vms_valid_decl_attribute_p PARAMS ((tree, tree, tree, tree));
 extern void alpha_start_function PARAMS ((FILE *, const char *, tree));
 extern void alpha_end_function PARAMS ((FILE *, const char *, tree));
 #endif /* TREE CODE */
index d90aec9..72767c0 100644 (file)
@@ -117,12 +117,6 @@ static void alpha_sa_mask
   PARAMS ((unsigned long *imaskP, unsigned long *fmaskP));
 static int alpha_does_function_need_gp
   PARAMS ((void));
-static void alpha_init_machine_status
-  PARAMS ((struct function *p));
-static void alpha_mark_machine_status
-  PARAMS ((struct function *p));
-static void alpha_free_machine_status
-  PARAMS ((struct function *p));
 static int alpha_ra_ever_killed
   PARAMS ((void));
 static rtx set_frame_related_p
@@ -147,6 +141,11 @@ static rtx alpha_emit_xfloating_compare
 #define REG_RA 26
 \f
 /* Initialize the GCC target structure.  */
+#ifdef OPEN_VMS
+   static int vms_valid_decl_attribute_p PARAMS ((tree, tree, tree, tree));
+#  undef TARGET_VALID_DECL_ATTRIBUTE
+#  define TARGET_VALID_DECL_ATTRIBUTE vms_valid_decl_attribute_p
+#endif
 
 struct gcc_target targetm = TARGET_INITIALIZER;
 \f
@@ -4459,7 +4458,9 @@ alpha_using_fp ()
   return vms_unwind_regno == HARD_FRAME_POINTER_REGNUM;
 }
 
-int
+#ifdef OPEN_VMS
+
+static int
 vms_valid_decl_attribute_p (decl, attributes, identifier, args)
      tree decl ATTRIBUTE_UNUSED;
      tree attributes ATTRIBUTE_UNUSED;
@@ -4471,6 +4472,8 @@ vms_valid_decl_attribute_p (decl, attributes, identifier, args)
   return 0;
 }
 
+#endif
+
 static int
 alpha_does_function_need_gp ()
 {
index 1b7c64e..34acc74 100644 (file)
@@ -391,9 +391,6 @@ do {                                                                        \
     fprintf (FILE, "\n");                              \
   } while (0)
 
-#define VALID_MACHINE_DECL_ATTRIBUTE(DECL, ATTRIBUTES, NAME, ARGS) \
-  (vms_valid_decl_attribute_p (DECL, ATTRIBUTES, NAME, ARGS))
-
 #undef SDB_DEBUGGING_INFO
 #undef MIPS_DEBUGGING_INFO
 #undef DBX_DEBUGGING_INFO