From 124033357df74901f7bfce2d2c6e0483b19eddbd Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 17 May 2002 23:25:19 +0000 Subject: [PATCH] defaults.h (UNIQUE_SECTION): Remove. * defaults.h (UNIQUE_SECTION): Remove. * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison. From-SVN: r53573 --- gcc/ChangeLog | 5 +++++ gcc/defaults.h | 22 ---------------------- gcc/system.h | 2 +- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58d851bd092..ed51b5d2c16 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-18 Neil Booth + + * defaults.h (UNIQUE_SECTION): Remove. + * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison. + 2002-05-17 Richard Henderson * expr.c (init_expr_once): Don't use start/end_sequence. diff --git a/gcc/defaults.h b/gcc/defaults.h index 12f363a33d8..8ff73b160a0 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 0a4c0c6b203..01be4106641 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 -- 2.30.2