Commit 510d1e80 by Kazu Hirata Committed by Kazu Hirata

system.h (ASM_OUTPUT_SECTION_NAME): Poison.

	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.

From-SVN: r75995
parent fb2c2608
2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
* 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 <ro@TechFak.Uni-Bielefeld.DE> 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* fixinc/inclhack.def (alpha___extern_prefix): Renamed to ... * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
......
2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
* 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 <aj@suse.de> 2004-01-16 Andreas Jaeger <aj@suse.de>
* Makefile.in: Add $(DESTDIR). * Makefile.in: Add $(DESTDIR).
......
...@@ -1213,7 +1213,7 @@ ada/utils.o : ada/utils.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ ...@@ -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 \ $(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/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 \ 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) \ 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 \ $(TREE_H) flags.h ada/ada.h ada/types.h ada/atree.h ada/nlists.h \
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "ggc.h" #include "ggc.h"
#include "debug.h" #include "debug.h"
#include "convert.h" #include "convert.h"
#include "target.h"
#include "ada.h" #include "ada.h"
#include "types.h" #include "types.h"
...@@ -1566,15 +1567,16 @@ process_attributes (tree decl, struct attrib *attr_list) ...@@ -1566,15 +1567,16 @@ process_attributes (tree decl, struct attrib *attr_list)
break; break;
case ATTR_LINK_SECTION: case ATTR_LINK_SECTION:
#ifdef ASM_OUTPUT_SECTION_NAME if (targetm.have_named_sections)
{
DECL_SECTION_NAME (decl) DECL_SECTION_NAME (decl)
= build_string (IDENTIFIER_LENGTH (attr_list->name), = build_string (IDENTIFIER_LENGTH (attr_list->name),
IDENTIFIER_POINTER (attr_list->name)); IDENTIFIER_POINTER (attr_list->name));
DECL_COMMON (decl) = 0; DECL_COMMON (decl) = 0;
#else }
else
post_error ("?section attributes are not supported for this target", post_error ("?section attributes are not supported for this target",
attr_list->error_point); attr_list->error_point);
#endif
break; break;
} }
} }
......
...@@ -460,11 +460,6 @@ ssib_section (void) \ ...@@ -460,11 +460,6 @@ ssib_section (void) \
} \ } \
} while(0) } while(0)
/*
#define ASM_OUTPUT_SECTION_NAME(STREAM, DECL, NAME, RELOC) \
unicosmk_output_section_name ((STREAM), (DECL), (NAME), (RELOC))
*/
/* Switch into a generic section. */ /* Switch into a generic section. */
#define TARGET_ASM_NAMED_SECTION unicosmk_asm_named_section #define TARGET_ASM_NAMED_SECTION unicosmk_asm_named_section
......
...@@ -675,18 +675,6 @@ do { \ ...@@ -675,18 +675,6 @@ do { \
#define ASM_APP_OFF "#NO_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. */ /* Output of Data. */
#define IS_ASM_LOGICAL_LINE_SEPARATOR(C) ((C) == '|') #define IS_ASM_LOGICAL_LINE_SEPARATOR(C) ((C) == '|')
......
...@@ -595,7 +595,8 @@ typedef char _Bool; ...@@ -595,7 +595,8 @@ typedef char _Bool;
INIT_GOFAST_OPTABS MULSI3_LIBCALL MULDI3_LIBCALL DIVSI3_LIBCALL \ INIT_GOFAST_OPTABS MULSI3_LIBCALL MULDI3_LIBCALL DIVSI3_LIBCALL \
DIVDI3_LIBCALL UDIVSI3_LIBCALL UDIVDI3_LIBCALL MODSI3_LIBCALL \ DIVDI3_LIBCALL UDIVSI3_LIBCALL UDIVDI3_LIBCALL MODSI3_LIBCALL \
MODDI3_LIBCALL UMODSI3_LIBCALL UMODDI3_LIBCALL BUILD_VA_LIST_TYPE \ 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 /* 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 headers and were not used, and may be obsolete or may never have
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment