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:
Robert Lipe 1998-10-14 23:39:38 +00:00 committed by Robert Lipe
parent e27f8c8a49
commit 2d9db28e7a
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);