diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/arm.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0619a65..3f94517 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-11-16 Richard Earnshaw <rearnsha@arm.com> + + * arm.h (CONSTANT_ALIGNMENT): Don't over-align strings when + optimizing for size. + 2006-11-16 Mike Stump <mrs@apple.com> * Makefile.in (targhooks.o): Add $(OPTABS_H). diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 5570924..468b5b3 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -479,6 +479,7 @@ extern int arm_cpp_interwork; #define CONSTANT_ALIGNMENT(EXP, ALIGN) \ ((TREE_CODE (EXP) == STRING_CST \ + && !optimize_size \ && (ALIGN) < BITS_PER_WORD * CONSTANT_ALIGNMENT_FACTOR) \ ? BITS_PER_WORD * CONSTANT_ALIGNMENT_FACTOR : (ALIGN)) |