summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-10 01:06:49 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-10 01:06:49 +0000
commit916b643b70926f2afb5dbff921253a94fa0e56a1 (patch)
treeed3a68d4a1dfebd13840f02ab890d9c6cd74e803 /gcc/config/rs6000/rs6000.c
parent6345d24bd2c913fe6a8662ec219c002cdfa5f71a (diff)
downloadgcc-916b643b70926f2afb5dbff921253a94fa0e56a1.tar.gz
PR target/55033
* varasm.c (default_elf_select_section): Move !DECL_P check.. (get_named_section): ..to here before calling get_section_name. Adjust assertion. (default_section_type_flags): Add DECL_P check. * config/i386/winnt.c (i386_pe_section_type_flags): Likewise. * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000.c')
-rw-r--r--gcc/config/rs6000/rs6000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index b30d47db00a..e82b24e22ce 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -26029,7 +26029,7 @@ rs6000_xcoff_section_type_flags (tree decl, const char *name, int reloc)
unsigned int flags = default_section_type_flags (decl, name, reloc);
/* Align to at least UNIT size. */
- if (flags & SECTION_CODE || !decl)
+ if ((flags & SECTION_CODE) != 0 || !decl || !DECL_P (decl))
align = MIN_UNITS_PER_WORD;
else
/* Increase alignment of large objects if not already stricter. */