diff options
author | Andrew Pinski <andrew_pinski@playstation.sony.com> | 2009-06-25 19:00:26 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2009-06-25 12:00:26 -0700 |
commit | 777a3a6a0c4e144f0a97fd807c0a16d8ab8541be (patch) | |
tree | b7b55e28ee3b3431a777a094ccc5d160db5f3e72 /gcc | |
parent | 1cb367ae15a5ddc4f97d64bb1c5f2863f284f106 (diff) | |
download | gcc-777a3a6a0c4e144f0a97fd807c0a16d8ab8541be.zip gcc-777a3a6a0c4e144f0a97fd807c0a16d8ab8541be.tar.gz gcc-777a3a6a0c4e144f0a97fd807c0a16d8ab8541be.tar.bz2 |
re PR target/38731 (Local strings on the stack not aligned)
2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR target/38731
* config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
DATA_ALIGNMENT instead.
From-SVN: r148948
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index adb14e3..7225a1f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com> + + PR target/38731 + * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use + DATA_ALIGNMENT instead. + 2009-06-25 Richard Guenther <rguenther@suse.de> * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 8cb26ea..712ca9b 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -704,14 +704,7 @@ extern unsigned rs6000_pointer_size; local store. TYPE is the data type, and ALIGN is the alignment that the object would ordinarily have. */ #define LOCAL_ALIGNMENT(TYPE, ALIGN) \ - (((TARGET_ALTIVEC || TARGET_VSX) \ - && TREE_CODE (TYPE) == VECTOR_TYPE) ? 128 : \ - (TARGET_E500_DOUBLE \ - && TYPE_MODE (TYPE) == DFmode) ? 64 : \ - ((TARGET_SPE && TREE_CODE (TYPE) == VECTOR_TYPE \ - && SPE_VECTOR_MODE (TYPE_MODE (TYPE))) || (TARGET_PAIRED_FLOAT \ - && TREE_CODE (TYPE) == VECTOR_TYPE \ - && PAIRED_VECTOR_MODE (TYPE_MODE (TYPE)))) ? 64 : ALIGN) + DATA_ALIGNMENT (TYPE, ALIGN) /* Alignment of field after `int : 0' in a structure. */ #define EMPTY_FIELD_BOUNDARY 32 |