c-pragma.c (handle_pragma_token): Test for null tree before dereferencing TREE_CODE.
* c-pragma.c (handle_pragma_token): Test for null tree before dereferencing TREE_CODE. From-SVN: r23104
This commit is contained in:
parent
e27f8c8a49
commit
2d9db28e7a
@ -1,3 +1,8 @@
|
||||
Thu Oct 15 00:57:55 1998 Robert Lipe <robertl@dgii.com>
|
||||
|
||||
* c-pragma.c (handle_pragma_token): Test for null tree before
|
||||
dereferencing TREE_CODE.
|
||||
|
||||
Thu Oct 15 17:36:48 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
|
||||
|
||||
* config/c4x/c4x.c: Convert to use GEN_INT.
|
||||
|
@ -385,7 +385,7 @@ handle_pragma_token (string, token)
|
||||
|
||||
case ps_left:
|
||||
|
||||
if (TREE_CODE(token) == INTEGER_CST)
|
||||
if (token && TREE_CODE(token) == INTEGER_CST)
|
||||
align = TREE_INT_CST_LOW(token);
|
||||
else
|
||||
align = atoi (string);
|
||||
|
Loading…
Reference in New Issue
Block a user