From 8289c43bde750557fca338318f39aaddca34d714 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 7 Jul 2001 06:52:34 +0000 Subject: [PATCH] alpha-protos.h (vms_valid_decl_attribute_p): Delete. * 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 | 9 +++++++++ gcc/config/alpha/alpha-protos.h | 1 - gcc/config/alpha/alpha.c | 17 ++++++++++------- gcc/config/alpha/vms.h | 3 --- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 933f4b8..c263e2f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2001-07-07 Neil Booth + + * 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 * target.h (targetm): Rename global from "target", so as not to diff --git a/gcc/config/alpha/alpha-protos.h b/gcc/config/alpha/alpha-protos.h index 06ecfa3..dfed787 100644 --- a/gcc/config/alpha/alpha-protos.h +++ b/gcc/config/alpha/alpha-protos.h @@ -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 */ diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index d90aec9..72767c0 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -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 /* 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; @@ -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 () { diff --git a/gcc/config/alpha/vms.h b/gcc/config/alpha/vms.h index 1b7c64e..34acc74 100644 --- a/gcc/config/alpha/vms.h +++ b/gcc/config/alpha/vms.h @@ -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 -- 2.7.4