2004-06-27 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Jun 2004 20:47:14 +0000 (20:47 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Jun 2004 20:47:14 +0000 (20:47 +0000)
        PR c/14963
        * c-decl.c (start_decl): Check for null types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83744 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-decl.c

index 1fe1b43..8ea4cd7 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR c/14963
+       * c-decl.c (start_decl): Check for null types.
+
 2004-06-27  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
index 4591ec9..7a68adb 100644 (file)
@@ -2715,7 +2715,7 @@ start_decl (tree declarator, tree declspecs, int initialized, tree attributes)
          for (; args; args = TREE_CHAIN (args))
            {
              tree type = TREE_TYPE (args);
-             if (INTEGRAL_TYPE_P (type)
+             if (type && INTEGRAL_TYPE_P (type)
                  && TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node))
                DECL_ARG_TYPE (args) = integer_type_node;
            }