re PR middle-end/7847 (pragma pack / attribute(packed): unaligned access to packed...
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 1 Dec 2003 07:15:31 +0000 (08:15 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 1 Dec 2003 07:15:31 +0000 (07:15 +0000)
commite82407b5bb381e6940f8d4f1a4c218146acc1524
tree43fd149070ddd68f998f0fbe7e3aa7ebea4728aa
parenta668c6adec09839b44d2ae6c1046a2e100e10936
re PR middle-end/7847 (pragma pack / attribute(packed): unaligned access to packed structure)

PR middle-end/7847
* expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
do not recheck that 'op0' is a MEM.  Move comment.  When testing for
unaligned objects, take also into account the alignment of 'op0' and
'mode1' if 'op0' is a MEM.

From-SVN: r74092
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/unaligned-1.c [new file with mode: 0644]