diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a78adfbccc0..b120cc4fbf7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 15 00:57:55 1998 Robert Lipe + + * c-pragma.c (handle_pragma_token): Test for null tree before + dereferencing TREE_CODE. + Thu Oct 15 17:36:48 1998 Michael Hayes * config/c4x/c4x.c: Convert to use GEN_INT. diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 5856d058b30..f9bfbe7987b 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -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);