]> git.ipfire.org Git - thirdparty/gcc.git/commit
2018-11-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
authorjozefl <jozefl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Nov 2018 22:06:26 +0000 (22:06 +0000)
committerjozefl <jozefl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Nov 2018 22:06:26 +0000 (22:06 +0000)
commit9c3798ce55b6294353a389524f6e3a4dcbd2c4e9
tree1ca8080d96fb6d191045c84771064ac19c0dd628
parent1323f5b016de8d0d7eebb866d7284d01eac97170
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265894 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/msp430/pr87691.c [new file with mode: 0644]