diff options
| author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-06 17:10:52 +0000 |
|---|---|---|
| committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-06 17:10:52 +0000 |
| commit | 6e5bc2c65edf9573912837fc9a1ed34ece003ed6 (patch) | |
| tree | 8720a33770a18fc19865846a2f4da64d2589f425 /gcc/cp/decl.c | |
| parent | e0f05f0c5ad1b91acad546de391927c6c187167b (diff) | |
| download | ppe42-gcc-6e5bc2c65edf9573912837fc9a1ed34ece003ed6.tar.gz ppe42-gcc-6e5bc2c65edf9573912837fc9a1ed34ece003ed6.zip | |
* call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
(build_over_call): Likewise.
* decl.c (grokparms): Likewise.
* pt.c (tsubst_decl): Likewise.
* typeck.c (convert_arguments): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
| -rw-r--r-- | gcc/cp/decl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 8bb6c7a7cca..ed5686c501f 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11970,8 +11970,7 @@ grokparms (first_parm) DECL_ARG_TYPE (decl) = TREE_TYPE (decl); if (PROMOTE_PROTOTYPES - && (TREE_CODE (type) == INTEGER_TYPE - || TREE_CODE (type) == ENUMERAL_TYPE) + && INTEGRAL_TYPE_P (type) && TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node)) DECL_ARG_TYPE (decl) = integer_type_node; if (!any_error && init) |

