From 988b8879e52c2ada26e0b9aa228e21bded71bea4 Mon Sep 17 00:00:00 2001 From: kazu Date: Fri, 16 Jan 2004 21:19:07 +0000 Subject: gcc/ * system.h (ASM_OUTPUT_SECTION_NAME): Poison. * config/alpha/unicosmk.h: Remove a commented-out definition of ASM_OUTPUT_SECTION_NAME. * config/stormy16/stormy16.h: Likewise. gcc/ada/ * Make-lang.in (utils.o): Depend on target.h. * utils.c: Include target.h. (process_attributes): Use targetm.have_named_sections instead of ASM_OUTPUT_SECTION_NAME. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75995 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/ada/ChangeLog | 7 +++++++ gcc/ada/Make-lang.in | 2 +- gcc/ada/utils.c | 20 +++++++++++--------- gcc/config/alpha/unicosmk.h | 5 ----- gcc/config/stormy16/stormy16.h | 12 ------------ gcc/system.h | 3 ++- 7 files changed, 28 insertions(+), 28 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc08858da27..d7afc1937c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-01-16 Kazu Hirata + + * system.h (ASM_OUTPUT_SECTION_NAME): Poison. + * config/alpha/unicosmk.h: Remove a commented-out definition + of ASM_OUTPUT_SECTION_NAME. + * config/stormy16/stormy16.h: Likewise. + 2004-01-16 Rainer Orth * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ... diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index d8abacbdb45..fc3b66d629e 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,10 @@ +2004-01-16 Kazu Hirata + + * Make-lang.in (utils.o): Depend on target.h. + * utils.c: Include target.h. + (process_attributes): Use targetm.have_named_sections instead + of ASM_OUTPUT_SECTION_NAME. + 2004-01-16 Andreas Jaeger * Makefile.in: Add $(DESTDIR). diff --git a/gcc/ada/Make-lang.in b/gcc/ada/Make-lang.in index 99d21149590..3c242547e56 100644 --- a/gcc/ada/Make-lang.in +++ b/gcc/ada/Make-lang.in @@ -1213,7 +1213,7 @@ ada/utils.o : ada/utils.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ $(TREE_H) flags.h expr.h convert.h defaults.h ada/ada.h ada/types.h \ ada/atree.h ada/nlists.h ada/elists.h ada/sinfo.h ada/einfo.h ada/namet.h \ ada/stringt.h ada/uintp.h ada/fe.h $(ADA_TREE_H) ada/gigi.h gt-ada-utils.h \ - gtype-ada.h + gtype-ada.h target.h ada/utils2.o : ada/utils2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ $(TREE_H) flags.h ada/ada.h ada/types.h ada/atree.h ada/nlists.h \ diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c index 423634ea64d..579fa116397 100644 --- a/gcc/ada/utils.c +++ b/gcc/ada/utils.c @@ -36,6 +36,7 @@ #include "ggc.h" #include "debug.h" #include "convert.h" +#include "target.h" #include "ada.h" #include "types.h" @@ -1566,15 +1567,16 @@ process_attributes (tree decl, struct attrib *attr_list) break; case ATTR_LINK_SECTION: -#ifdef ASM_OUTPUT_SECTION_NAME - DECL_SECTION_NAME (decl) - = build_string (IDENTIFIER_LENGTH (attr_list->name), - IDENTIFIER_POINTER (attr_list->name)); - DECL_COMMON (decl) = 0; -#else - post_error ("?section attributes are not supported for this target", - attr_list->error_point); -#endif + if (targetm.have_named_sections) + { + DECL_SECTION_NAME (decl) + = build_string (IDENTIFIER_LENGTH (attr_list->name), + IDENTIFIER_POINTER (attr_list->name)); + DECL_COMMON (decl) = 0; + } + else + post_error ("?section attributes are not supported for this target", + attr_list->error_point); break; } } diff --git a/gcc/config/alpha/unicosmk.h b/gcc/config/alpha/unicosmk.h index 5f75bbb87af..2c344d3a039 100644 --- a/gcc/config/alpha/unicosmk.h +++ b/gcc/config/alpha/unicosmk.h @@ -460,11 +460,6 @@ ssib_section (void) \ } \ } while(0) -/* -#define ASM_OUTPUT_SECTION_NAME(STREAM, DECL, NAME, RELOC) \ - unicosmk_output_section_name ((STREAM), (DECL), (NAME), (RELOC)) -*/ - /* Switch into a generic section. */ #define TARGET_ASM_NAMED_SECTION unicosmk_asm_named_section diff --git a/gcc/config/stormy16/stormy16.h b/gcc/config/stormy16/stormy16.h index a8c619e77a8..fb47644cada 100644 --- a/gcc/config/stormy16/stormy16.h +++ b/gcc/config/stormy16/stormy16.h @@ -674,18 +674,6 @@ do { \ #define ASM_APP_ON "#APP\n" #define ASM_APP_OFF "#NO_APP\n" - -/* A C statement to output something to the assembler file to switch to section - NAME for object DECL which is either a `FUNCTION_DECL', a `VAR_DECL' or - `NULL_TREE'. Some target formats do not support arbitrary sections. Do not - define this macro in such cases. - - At present this macro is only used to support section attributes. When this - macro is undefined, section attributes are disabled. - - Defined in svr4.h. */ -/* #define ASM_OUTPUT_SECTION_NAME(STREAM, DECL, NAME) */ - /* Output of Data. */ diff --git a/gcc/system.h b/gcc/system.h index f402c99e84a..3d4474aa217 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -595,7 +595,8 @@ typedef char _Bool; INIT_GOFAST_OPTABS MULSI3_LIBCALL MULDI3_LIBCALL DIVSI3_LIBCALL \ DIVDI3_LIBCALL UDIVSI3_LIBCALL UDIVDI3_LIBCALL MODSI3_LIBCALL \ MODDI3_LIBCALL UMODSI3_LIBCALL UMODDI3_LIBCALL BUILD_VA_LIST_TYPE \ - PRETEND_OUTGOING_VARARGS_NAMED STRUCT_VALUE_INCOMING_REGNUM + PRETEND_OUTGOING_VARARGS_NAMED STRUCT_VALUE_INCOMING_REGNUM \ + ASM_OUTPUT_SECTION_NAME /* Other obsolete target macros, or macros that used to be in target headers and were not used, and may be obsolete or may never have -- cgit v1.2.1