]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.c (rs6000_xcoff_section_type_flags): Default to minimum alignment if decl...
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 16 Nov 2011 18:33:52 +0000 (18:33 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 16 Nov 2011 18:33:52 +0000 (13:33 -0500)
        * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
        Default to minimum alignment if decl is NULL.

From-SVN: r181422

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index dd03e1aeb0e40c97d1a4b54e40f89e86b0a4e943..99449c8d4c9bfcb09c052d36de7a17f449b676d5 100644 (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
index 4436ed0e2055c4842e4dc8c0b029f77c2e6813f9..539a70a5451c154d79e8a287ee4713b10182e404 100644 (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.  */