From: Nick Clifton Date: Wed, 1 Nov 2000 01:23:56 +0000 (+0000) Subject: Do not allow -fdata-sections to override the section attribute of a DECL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1426f761420d7726479d9a1174a6f97e3fb79acb;p=gcc.git Do not allow -fdata-sections to override the section attribute of a DECL. From-SVN: r37176 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbb327ec9c7..b689ad9967f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-10-31 Nick Clifton + + * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow + -fdata-sections to override the section attribute of a DECL. + 2000-10-31 Chris Demetriou * libgcc2.c (__shtab): Remove __shtab variable. diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h index d0536291bfe..9b883d0e061 100644 --- a/gcc/config/arm/unknown-elf.h +++ b/gcc/config/arm/unknown-elf.h @@ -139,7 +139,7 @@ rdata_section () \ #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) -#define UNIQUE_SECTION_P(DECL) (DECL_ONE_ONLY (DECL) || flag_data_sections) +#define UNIQUE_SECTION_P(DECL) (DECL_ONE_ONLY (DECL)) #define UNIQUE_SECTION(DECL, RELOC) \ do \