defaults.h (UNIQUE_SECTION): Remove.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Fri, 17 May 2002 23:25:19 +0000 (23:25 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Fri, 17 May 2002 23:25:19 +0000 (23:25 +0000)
* defaults.h (UNIQUE_SECTION): Remove.
* system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.

From-SVN: r53573

gcc/ChangeLog
gcc/defaults.h
gcc/system.h

index 58d851bd092f1c67939f7367244e614916b53312..ed51b5d2c169816208ef805c427cdc0bc71f077e 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * defaults.h (UNIQUE_SECTION): Remove.
+       * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
+
 2002-05-17  Richard Henderson  <rth@redhat.com>
 
        * expr.c (init_expr_once): Don't use start/end_sequence.
index 12f363a33d8815375759286d98f3db4bd92a413a..8ff73b160a05f71c88facbd24980c88e4e6f218f 100644 (file)
@@ -238,28 +238,6 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNATE_NAME (INSN)); } while (0)
 #endif
 #endif
 
-/* If we have no definition for UNIQUE_SECTION, but do have the 
-   ability to generate arbitrary sections, construct something
-   reasonable.  */
-#ifndef UNIQUE_SECTION
-#define UNIQUE_SECTION(DECL,RELOC)                             \
-do {                                                           \
-  int len;                                                     \
-  const char *name;                                            \
-  char *string;                                                        \
-                                                               \
-  name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL));      \
-  /* Strip off any encoding in name.  */                       \
-  STRIP_NAME_ENCODING (name, name);                            \
-                                                               \
-  len = strlen (name) + 1;                                     \
-  string = alloca (len + 1);                                   \
-  sprintf (string, ".%s", name);                               \
-                                                               \
-  DECL_SECTION_NAME (DECL) = build_string (len, string);       \
-} while (0)
-#endif
-
 /* By default, we generate a label at the beginning and end of the
    text section, and compute the size of the text section by
    subtracting the two.  However, on some platforms that doesn't 
index 0a4c0c6b20383022edd40f3d7463b27fab02f242..01be4106641dec4114575915d8aa418cef2336b1 100644 (file)
@@ -595,7 +595,7 @@ typedef char _Bool;
        MERGE_MACHINE_TYPE_ATTRIBUTES MERGE_MACHINE_DECL_ATTRIBUTES     \
        MD_INIT_BUILTINS MD_EXPAND_BUILTIN ASM_OUTPUT_CONSTRUCTOR       \
        ASM_OUTPUT_DESTRUCTOR SIGNED_CHAR_SPEC MAX_CHAR_TYPE_SIZE       \
-       WCHAR_UNSIGNED
+       WCHAR_UNSIGNED UNIQUE_SECTION SELECT_SECTION
 
 /* And 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