diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-04-09 09:39:42 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-04-09 09:39:42 -0400 |
commit | 053da6b50d1ec77d71297ba9ef41e8fc4c18362d (patch) | |
tree | 6b87a17a9ca0721635a5cb7715d9c9fe1f3c9057 /gcc | |
parent | d5757bb45ffb48347f0ae275a7034740a3698bfd (diff) | |
download | gcc-053da6b50d1ec77d71297ba9ef41e8fc4c18362d.zip gcc-053da6b50d1ec77d71297ba9ef41e8fc4c18362d.tar.gz gcc-053da6b50d1ec77d71297ba9ef41e8fc4c18362d.tar.bz2 |
(convert_arguments): Truncate and reextend for PROMOTE_PROTOTYPES so
we can give error on overflow.
From-SVN: r7004
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-typeck.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 462a6aa..b1cb70b 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -1567,16 +1567,6 @@ convert_arguments (typelist, values, name, fundecl) } 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 for a function whose arg type is a union with no tag. */ /* Nameless union automatically casts the types it contains. */ |