Commit 2d9db28e by Robert Lipe Committed by Robert Lipe

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
parent e27f8c8a
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);
......
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