rs6000.h (CONSTANT_ALIGNMENT): Don't overalign strings when optimizing for size...

* config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
	strings when optimizing for size, unless the target cares about
	alignment.

From-SVN: r132566
This commit is contained in:
Nathan Froyd 2008-02-23 00:35:20 +00:00 committed by Nathan Froyd
parent e5572ab073
commit 2165fd3855
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
* config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
strings when optimizing for size, unless the target cares about
alignment.
2008-02-22 Tom Tromey <tromey@redhat.com>
* regclass.c (current_pass): Remove declaration.

View File

@ -596,6 +596,7 @@ extern enum rs6000_nop_insertion rs6000_sched_insert_nops;
Make vector constants quadword aligned. */
#define CONSTANT_ALIGNMENT(EXP, ALIGN) \
(TREE_CODE (EXP) == STRING_CST \
&& (TARGET_STRICT_ALIGN || !optimize_size) \
&& (ALIGN) < BITS_PER_WORD \
? BITS_PER_WORD \
: (ALIGN))