rs6000.c (rs6000_xcoff_section_type_flags): Default to minimum alignment if decl is NULL.

* config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
        Default to minimum alignment if decl is NULL.

From-SVN: r181422
This commit is contained in:
David Edelsohn 2011-11-16 18:33:52 +00:00 committed by David Edelsohn
parent c05e32f58d
commit 27b0b3571e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-11-16 David Edelsohn <dje.gcc@gmail.com>
* config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
Default to minimum alignment if decl is NULL.
2011-11-16 Uros Bizjak <ubizjak@gmail.com>
* config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode

View File

@ -25782,7 +25782,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)
if (flags & SECTION_CODE || !decl)
align = MIN_UNITS_PER_WORD;
else
/* Increase alignment of large objects if not already stricter. */