c-pragma.c (handle_pragma_token): Handle `#pragma pack()' correctly.
* c-pragma.c (handle_pragma_token): Handle `#pragma pack()' correctly. From-SVN: r27432
This commit is contained in:
parent
ef890d35d4
commit
3cc0b5517a
@ -1,3 +1,8 @@
|
||||
Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
|
||||
|
||||
* c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
|
||||
correctly.
|
||||
|
||||
Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
|
||||
|
||||
* configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
|
||||
|
@ -383,8 +383,17 @@ handle_pragma_token (string, token)
|
||||
case ps_left:
|
||||
|
||||
if (token == NULL_TREE)
|
||||
state = (strcmp (string, ")") ? ps_bad : ps_right);
|
||||
|
||||
{
|
||||
/* #pragma pack () resets packing rules to their
|
||||
defaults. */
|
||||
if (strcmp (string, ")") == 0)
|
||||
{
|
||||
align = 0;
|
||||
state = ps_right;
|
||||
}
|
||||
else
|
||||
state = ps_bad;
|
||||
}
|
||||
else if (TREE_CODE (token) == INTEGER_CST)
|
||||
goto handle_align;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user