From 8d8e52be8aeb3b679baac38d41cbc07448a44ac7 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 29 Jun 2001 18:21:16 +0100 Subject: target.h (struct gcc_target): Add comp_type_attributes and set_default_type_attributes. * target.h (struct gcc_target): Add comp_type_attributes and set_default_type_attributes. * target-def.h (TARGET_COMP_TYPE_ATTRIBUTES, TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Define. (TARGET_INITIALIZER): Update. * doc/tm.texi (COMP_TYPE_ATTRIBUTES, TARGET_COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES, TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Update documentation of old target macros to describe new target hooks. * tree.c (make_node): Use target.set_default_type_attributes. (default_comp_type_attributes, default_set_default_type_attributes): New functions. * tree.h (default_comp_type_attributes, default_set_default_type_attributes): Declare. * c-typeck.c (COMP_TYPE_ATTRIBUTES): Don't define. (comptypes): Use target.comp_type_attributes. * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h (arc_comp_type_attributes, arc_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Remove functions and macros with default behaviour. * config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h (m32r_comp_type_attributes, m32r_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h (m68hc11_comp_type_attributes, m68hc11_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h (ns32k_comp_type_attributes, COMP_TYPE_ATTRIBUTES): Likewise. * config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c, config/rs6000/rs6000.h (rs6000_comp_type_attributes, rs6000_set_default_type_attributes, COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/d30v/d30v.h (COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Remove commented out macro definitions. * config/i386/i386.h (SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/ns32k/ns32k.h (SET_DEFAULT_TYPE_ATTRIBUTES): Likewise. * config/arm/arm.c (arm_comp_type_attributes, arm_set_default_type_attributes): Make static. (TARGET_COMP_TYPE_ATTRIBUTES, TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Define. * config/arm/arm.h (COMP_TYPE_ATTRIBUTES, SET_DEFAULT_TYPE_ATTRIBUTES): Don't define. * config/arm/arm-protos.h (arm_comp_type_attributes, arm_set_default_type_attributes): Don't declare. * config/i386/i386.c (ix86_comp_type_attributes): Make static. (TARGET_COMP_TYPE_ATTRIBUTES): Define. * config/i386/i386.h (COMP_TYPE_ATTRIBUTES): Don't define. * config/i386/i386-protos.h (ix86_comp_type_attributes): Don't declare. cp: * typeck.c (COMP_TYPE_ATTRIBUTES): Don't define. (comptypes): Use target.comp_type_attributes. From-SVN: r43655 --- gcc/target-def.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/target-def.h') diff --git a/gcc/target-def.h b/gcc/target-def.h index 78fd30f..35c2ce8 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -30,6 +30,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes #define TARGET_VALID_DECL_ATTRIBUTE default_valid_attribute_p #define TARGET_VALID_TYPE_ATTRIBUTE default_valid_attribute_p +#define TARGET_COMP_TYPE_ATTRIBUTES default_comp_type_attributes +#define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES default_set_default_type_attributes /* The whole shebang. */ #define TARGET_INITIALIZER \ @@ -37,5 +39,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. TARGET_MERGE_DECL_ATTRIBUTES, \ TARGET_MERGE_TYPE_ATTRIBUTES, \ TARGET_VALID_DECL_ATTRIBUTE, \ - TARGET_VALID_TYPE_ATTRIBUTE \ + TARGET_VALID_TYPE_ATTRIBUTE, \ + TARGET_COMP_TYPE_ATTRIBUTES, \ + TARGET_SET_DEFAULT_TYPE_ATTRIBUTES \ } -- cgit v1.1