rs6000.c (rs6000_xcoff_asm_named_section): Place SECTION_EXCLUDE in XO mapping class.
authorDavid Edelsohn <dje.gcc@gmail.com>
Mon, 28 Sep 2015 14:44:57 +0000 (14:44 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 28 Sep 2015 14:44:57 +0000 (10:44 -0400)
* config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
SECTION_EXCLUDE in XO mapping class.

From-SVN: r228203

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 6b9af395919c2a00981399023bace8ad80c52326..707f25317338e04305f1e8f24a8b2e189e8f119e 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
+
+       * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
+       SECTION_EXCLUDE in XO mapping class.
+
 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
 
        PR target/54236
index 34b1d32f8f86feeaeccf8583a876b38efc22d6de..ae456ff3199240121eeb40b2d2145e38d0012f03 100644 (file)
@@ -30845,14 +30845,16 @@ rs6000_xcoff_asm_named_section (const char *name, unsigned int flags,
                                tree decl ATTRIBUTE_UNUSED)
 {
   int smclass;
-  static const char * const suffix[4] = { "PR", "RO", "RW", "TL" };
+  static const char * const suffix[5] = { "PR", "RO", "RW", "TL", "XO" };
 
-  if (flags & SECTION_DEBUG)
+  if (flags & SECTION_EXCLUDE)
+    smclass = 4;
+  else if (flags & SECTION_DEBUG)
     {
       fprintf (asm_out_file, "\t.dwsect %s\n", name);
       return;
     }
-  if (flags & SECTION_CODE)
+  else if (flags & SECTION_CODE)
     smclass = 0;
   else if (flags & SECTION_TLS)
     smclass = 3;