re PR c/14963 (Unknown types cause ICE in function declarations)
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 27 Jun 2004 20:47:14 +0000 (20:47 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 27 Jun 2004 20:47:14 +0000 (13:47 -0700)
2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/14963
        * c-decl.c (start_decl): Check for null types.

From-SVN: r83744

gcc/ChangeLog
gcc/c-decl.c

index 1fe1b439e319e51ed6c1321d51370b71b4f307ba..8ea4cd768532d3be3d88929e52cc08961198daa0 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 4591ec95d7a954ba4be8136dfadb50987ec8b73b..7a68adbd0ed21c1762b6bfc61a17878e48de3c09 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;
            }