diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-19 19:15:31 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-19 19:15:31 +0000 |
| commit | b74c835aee6994d0d183e5571749b357d95c71c8 (patch) | |
| tree | 120874cab702e913711f046a33141bc1abbf8736 | |
| parent | e0428e0bd02053b25fc2cf31ed399972f7a78631 (diff) | |
| download | ppe42-gcc-b74c835aee6994d0d183e5571749b357d95c71c8.tar.gz ppe42-gcc-b74c835aee6994d0d183e5571749b357d95c71c8.zip | |
PR 17962
* stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89284 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/stor-layout.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e9587a73a23..c7616e12600 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2004-10-19 Richard Hendeson <rth@redhat.com> + PR 17962 + * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors. + +2004-10-19 Richard Hendeson <rth@redhat.com> + * builtins.c (expand_builtin_memmove): If fold_builtin_memmove succeeds, only expand the result. diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index c86dd549700..10496b875ee 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1576,6 +1576,10 @@ layout_type (tree type) nunits_tree, 0); TYPE_SIZE (type) = int_const_binop (MULT_EXPR, TYPE_SIZE (innertype), nunits_tree, 0); + + /* Always natually align vectors. This prevents ABI changes + depending on whether or not native vector modes are supported. */ + TYPE_ALIGN (type) = tree_low_cst (TYPE_SIZE (type), 0); break; } |

