aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2015-09-28 14:44:57 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2015-09-28 10:44:57 -0400
commit951ed923931bb375fc97b3fd2d7bcec106071593 (patch)
treea2e47221477558ef1e56f574fcd068fa6b67a46c
parent6fb917d907f8ae1708f3aea9805957e27992624c (diff)
downloadgcc-951ed923931bb375fc97b3fd2d7bcec106071593.zip
gcc-951ed923931bb375fc97b3fd2d7bcec106071593.tar.gz
gcc-951ed923931bb375fc97b3fd2d7bcec106071593.tar.bz2
rs6000.c (rs6000_xcoff_asm_named_section): Place SECTION_EXCLUDE in XO mapping class.
* config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place SECTION_EXCLUDE in XO mapping class. From-SVN: r228203
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6b9af39..707f253 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 34b1d32..ae456ff 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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;