c-pragma.c (handle_pragma_pack): Initialize align to -1.
authorMike Coleman <mcoleman2@kc.rr.com>
Sat, 28 Oct 2000 00:04:11 +0000 (00:04 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 28 Oct 2000 00:04:11 +0000 (00:04 +0000)
commit63eb1269483a23914c535d12afd5b5e0f4e02391
tree72e1c2ef417dd127c4cd13c98dac0385b812a71e
parentae2eceaad2f95f7228e69ab5513f355e868ab787
c-pragma.c (handle_pragma_pack): Initialize align to -1.

2000-10-21  Mike Coleman  <mcoleman2@kc.rr.com>

* c-pragma.c (handle_pragma_pack): Initialize align to -1.
Improve error messages.  Correct parsing of
#pragma pack(pop [,id]).  Do not check the user-supplied
alignment if we're popping.

* gcc.dg/pack-test-1.c: New test case.
* gcc.dg/pack-test-2.c: New test case.
* gcc.dg/pack-test-1.h: New file.

From-SVN: r37095
gcc/ChangeLog
gcc/c-pragma.c
gcc/testsuite/gcc.dg/pack-test-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pack-test-1.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/pack-test-2.c [new file with mode: 0644]