c-pragma.c (handle_pragma_token): Test for null tree before dereferencing TREE_CODE.
authorRobert Lipe <robertl@dgii.com>
Wed, 14 Oct 1998 23:39:38 +0000 (23:39 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Wed, 14 Oct 1998 23:39:38 +0000 (23:39 +0000)
* c-pragma.c (handle_pragma_token): Test for null tree before
dereferencing TREE_CODE.

From-SVN: r23104

gcc/ChangeLog
gcc/c-pragma.c

index a78adfbccc0cbadad052715570cf44793538b0dd..b120cc4fbf73a4882aa3d2fe40fe77492cedabc0 100644 (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.
index 5856d058b30869edbe00c7a36980c6d504a76821..f9bfbe7987bf8667c368b7c8948badd29f160824 100644 (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);