Commit 1f4f60fc by Andrew Pinski Committed by Andrew Pinski

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
parent 01036503
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):
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment