diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/defaults.h | 22 | ||||
-rw-r--r-- | gcc/system.h | 2 |
3 files changed, 6 insertions, 23 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58d851b..ed51b5d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/defaults.h b/gcc/defaults.h index 12f363a..8ff73b1 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -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 diff --git a/gcc/system.h b/gcc/system.h index 0a4c0c6..01be410 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -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 |