diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-07 15:36:50 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-09-07 15:36:50 +0000 |
commit | 950474d6971a94f444b64b83f6b9ac05da1449c4 (patch) | |
tree | b9105416a869b71596a9e2ee6d943229805350dd /gcc/stor-layout.c | |
parent | 2cd48372e30de18391912fb632e3699045ea4e56 (diff) | |
download | linaro-gcc-950474d6971a94f444b64b83f6b9ac05da1449c4.tar.gz linaro-gcc-950474d6971a94f444b64b83f6b9ac05da1449c4.tar.bz2 linaro-gcc-950474d6971a94f444b64b83f6b9ac05da1449c4.zip |
2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/28862
* stor-layout.c (relayout_decl): Don't zero the alignment if it
was set by the user.
2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/28862
* gcc.c-torture/compile/vector-align-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116751 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 415f7c1168e..d1e18a243d0 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -489,7 +489,8 @@ relayout_decl (tree decl) { DECL_SIZE (decl) = DECL_SIZE_UNIT (decl) = 0; DECL_MODE (decl) = VOIDmode; - DECL_ALIGN (decl) = 0; + if (!DECL_USER_ALIGN (decl)) + DECL_ALIGN (decl) = 0; SET_DECL_RTL (decl, 0); layout_decl (decl, 0); |