c-common.c (handle_packed_attribute): Don't pack a struct via a typedef.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 22 Jul 2003 09:26:01 +0000 (09:26 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 22 Jul 2003 09:26:01 +0000 (09:26 +0000)
commitc6e4cc53e53de0f671b715bfb83f37dbf73aaf2f
tree99496b3fc47148edf71566fe7c4b58da3579195c
parent55de4f08f41b19bc0a72c7e0676b53d9c4b0a9fd
c-common.c (handle_packed_attribute): Don't pack a struct via a typedef.

* c-common.c (handle_packed_attribute): Don't pack a struct via a
typedef. Propagate packedness from a main variant.
testsuite:
* gcc.dg/pack-test-3.c: New test.

From-SVN: r69668
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pack-test-3.c [new file with mode: 0644]