From 1f4f60fc3f9c131d74d60b66d77b23faeed8526c Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sun, 27 Jun 2004 20:47:14 +0000 Subject: [PATCH] re PR c/14963 (Unknown types cause ICE in function declarations) 2004-06-27 Andrew Pinski PR c/14963 * c-decl.c (start_decl): Check for null types. From-SVN: r83744 --- gcc/ChangeLog | 5 +++++ gcc/c-decl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1fe1b439e31..8ea4cd76853 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-27 Andrew Pinski + + PR c/14963 + * c-decl.c (start_decl): Check for null types. + 2004-06-27 David Edelsohn * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 4591ec95d7a..7a68adbd0ed 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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; } -- 2.30.2