Commit 053da6b5 by Richard Kenner

(convert_arguments): Truncate and reextend for PROMOTE_PROTOTYPES so

we can give error on overflow.

From-SVN: r7004
parent d5757bb4
...@@ -1567,16 +1567,6 @@ convert_arguments (typelist, values, name, fundecl) ...@@ -1567,16 +1567,6 @@ convert_arguments (typelist, values, name, fundecl)
} }
else else
{ {
#ifdef PROMOTE_PROTOTYPES
/* Rather than truncating and then reextending,
convert directly to int, if that's the type we will want. */
if (! flag_traditional
&& (TREE_CODE (type) == INTEGER_TYPE
|| TREE_CODE (type) == ENUMERAL_TYPE)
&& (TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node)))
type = integer_type_node;
#endif
#if 0 /* This turns out not to win--there's no way to write a prototype #if 0 /* This turns out not to win--there's no way to write a prototype
for a function whose arg type is a union with no tag. */ for a function whose arg type is a union with no tag. */
/* Nameless union automatically casts the types it contains. */ /* Nameless union automatically casts the types it contains. */
......
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