Commit 3cc0b551 by Mumit Khan Committed by Jeff Law

c-pragma.c (handle_pragma_token): Handle `#pragma pack()' correctly.

        * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
        correctly.

From-SVN: r27432
parent ef890d35
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment