From 951ed923931bb375fc97b3fd2d7bcec106071593 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 28 Sep 2015 14:44:57 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b9af395919..707f2531733 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-28 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place + SECTION_EXCLUDE in XO mapping class. + 2015-09-28 Oleg Endo PR target/54236 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 34b1d32f8f8..ae456ff3199 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; -- 2.30.2