PR middle-end/17112
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Sep 2004 14:58:34 +0000 (14:58 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Sep 2004 14:58:34 +0000 (14:58 +0000)
commitaedd07a7130263ca331092f00ae6248017b69f2a
treeaa76381885409572a4b6e89bce34c27e9ce000c8
parent011ea7b8e3578f64304596a5bdf4ddba44534e86
PR middle-end/17112
* stor-layout.c (compute_record_mode): For records with a single
field, only use the field's mode if its size matches what we'd
have choosen for the record ourselves.  This forces the use of
BLKmode for packed records that don't completely fill a mode.

* gcc.dg/pr17112-1.c: New test case.

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