diff options
author | Jozef Lawrynowicz <jozefl@gcc.gnu.org> | 2018-11-07 22:06:26 +0000 |
---|---|---|
committer | Jozef Lawrynowicz <jozefl@gcc.gnu.org> | 2018-11-07 22:06:26 +0000 |
commit | c2ca29d5a35f8dd62f76df48e16bbac7320660c8 (patch) | |
tree | 1ca8080d96fb6d191045c84771064ac19c0dd628 /gcc/tree-ssa-phiopt.c | |
parent | e217792beda1ca48daea497c00694a3924f992c5 (diff) | |
download | gcc-c2ca29d5a35f8dd62f76df48e16bbac7320660c8.zip gcc-c2ca29d5a35f8dd62f76df48e16bbac7320660c8.tar.gz gcc-c2ca29d5a35f8dd62f76df48e16bbac7320660c8.tar.bz2 |
re PR c/87691 (transparent_union attribute does not work with MODE_PARTIAL_INT)
2018-11-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
PR c/87691
gcc/ChangeLog:
* stor-layout.c (compute_record_mode): Set TYPE_MODE of UNION_TYPE
to the mode of the widest field iff the widest field has mode class
MODE_INT, or MODE_PARTIAL_INT and the union would be passed by
reference.
gcc/testsuite/ChangeLog:
* gcc.target/msp430/pr87691.c: New test.
From-SVN: r265894
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions