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
This commit is contained in:
David Edelsohn 2015-09-28 14:44:57 +00:00 committed by David Edelsohn
parent 6fb917d907
commit 951ed92393
2 changed files with 10 additions and 3 deletions

View 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

View 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;