]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
system.h (ASM_OUTPUT_SECTION_NAME): Poison.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 16 Jan 2004 21:19:07 +0000 (21:19 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 16 Jan 2004 21:19:07 +0000 (21:19 +0000)
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

gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/Make-lang.in
gcc/ada/utils.c
gcc/config/alpha/unicosmk.h
gcc/config/stormy16/stormy16.h
gcc/system.h

index dc08858da27cf5223e24de4c2854c66e0f0aec7b..d7afc1937c2db4ace8100f2120409c5097799629 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
index d8abacbdb450c267c5de2f66e06e9d2555f45277..fc3b66d629e3bfc0f31996ea1882a0c6066e1f2f 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        * Makefile.in: Add $(DESTDIR).
index 99d211495902e3366c412b2d373b44c3b3333c3c..3c242547e562f3e856788b42bc127eea9d3956ed 100644 (file)
@@ -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 \
index 423634ea64d05c92d2fcd1ff283d1019ddba47da..579fa1163974977143181868b94e0462476037cf 100644 (file)
@@ -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;
       }
 }
index 5f75bbb87af13dbecc4a4b53936cecfbf6a68f64..2c344d3a039b1d1f6fa2dcc192795a24c2d5287a 100644 (file)
@@ -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
 
index a8c619e77a89a0d6ba1230f58e60df8765d55caf..fb47644cada865f7ba1b584cc753e0138b878430 100644 (file)
@@ -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) */
-
 \f
 /* Output of Data.  */
 
index f402c99e84a7ed439daff1d9c7dbb60267ff61dd..3d4474aa217ec29763882796e9a8d77a5949a571 100644 (file)
@@ -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