diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-06-27 20:47:14 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-06-27 13:47:14 -0700 |
commit | 1f4f60fc3f9c131d74d60b66d77b23faeed8526c (patch) | |
tree | 2b3d14269d5c5a94deec0e880de6e0fc394c5e66 /gcc/c-decl.c | |
parent | 01036503d173b294661f06aff8146b0e10c673b1 (diff) | |
download | gcc-1f4f60fc3f9c131d74d60b66d77b23faeed8526c.zip gcc-1f4f60fc3f9c131d74d60b66d77b23faeed8526c.tar.gz gcc-1f4f60fc3f9c131d74d60b66d77b23faeed8526c.tar.bz2 |
re PR c/14963 (Unknown types cause ICE in function declarations)
2004-06-27 Andrew Pinski <pinskia@physics.uc.edu>
PR c/14963
* c-decl.c (start_decl): Check for null types.
From-SVN: r83744
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 4591ec95..7a68adb 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; } |