Do not allow -fdata-sections to override the section attribute of a DECL.
authorNick Clifton <nickc@redhat.com>
Wed, 1 Nov 2000 01:23:56 +0000 (01:23 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 1 Nov 2000 01:23:56 +0000 (01:23 +0000)
From-SVN: r37176

gcc/ChangeLog
gcc/config/arm/unknown-elf.h

index cbb327e..b689ad9 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-31  Nick Clifton  <nickc@redhat.com>
+
+       * 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  <cgd@sibyte.com>
 
        * libgcc2.c (__shtab): Remove __shtab variable.
index d053629..9b883d0 100644 (file)
@@ -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                                                                   \