diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-29 12:35:04 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-29 12:35:04 +0000 |
commit | 211cafb294286074e1156e27a77f2d5d97c98852 (patch) | |
tree | d0969736c4a71863eb798df7de1d852409735ce7 /gcc/config | |
parent | 5b015bb17d3470ad3188557a80eb51296e989875 (diff) | |
download | gcc-211cafb294286074e1156e27a77f2d5d97c98852.tar.gz |
gcc/
2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
PR target/35771
* config/i386/i386.c (ix86_function_arg_boundary): Convert to
canonical type if needed.
gcc/testsuite/
2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
PR target/35771
* gcc.dg/torture/pr35771.h: New.
* gcc.dg/torture/pr35771-1.c: Likewise.
* gcc.dg/torture/pr35771-2.c: Likewise.
* gcc.dg/torture/pr35771-3.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136159 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index cbb122ab0dc..6640c62c9f7 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4639,10 +4639,11 @@ ix86_function_arg_boundary (enum machine_mode mode, tree type) int align; if (type) { - if (TYPE_STRUCTURAL_EQUALITY_P (type)) - align = TYPE_ALIGN (type); - else - align = TYPE_ALIGN (TYPE_CANONICAL (type)); + /* Since canonical type is used for call, we convert it to + canonical type if needed. */ + if (!TYPE_STRUCTURAL_EQUALITY_P (type)) + type = TYPE_CANONICAL (type); + align = TYPE_ALIGN (type); } else align = GET_MODE_ALIGNMENT (mode); |