From 27b0b3571e4b04643e8f3e32d3481eb4f544e853 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 16 Nov 2011 18:33:52 +0000 Subject: 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd03e1a..99449c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-11-16 David Edelsohn + + * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): + Default to minimum alignment if decl is NULL. + 2011-11-16 Uros Bizjak * config/i386/sse.md (round2_vec_pack_sfix): Optimize V2DFmode diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4436ed0..539a70a 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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. */ -- cgit v1.1