summaryrefslogtreecommitdiff
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-06-12 12:15:46 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-06-12 12:15:46 +0000
commit2c1a24210c495aa26a6e2cf90bd2260b2ba18afe (patch)
treebfe239499189c6a61ac5e0b1e233ec9b6e2e2770 /gcc/c-typeck.c
parent0ea834c1156305a0a2a64598ac610f4d0a232431 (diff)
downloadgcc-2c1a24210c495aa26a6e2cf90bd2260b2ba18afe.tar.gz
c-decl.c (grokdeclarator): Use INTEGRAL_TYPE_P.
* c-decl.c (grokdeclarator): Use INTEGRAL_TYPE_P. * c-typeck.c (c_start_case): Likewise. testsuite: * gcc.c-torture/compile/20010610-1.c: New test. From-SVN: r43257
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r--gcc/c-typeck.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 5653ae59b68..cf995334b9a 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -7077,8 +7077,7 @@ c_start_case (exp)
code = TREE_CODE (TREE_TYPE (exp));
type = TREE_TYPE (exp);
- if (code != INTEGER_TYPE
- && code != ENUMERAL_TYPE
+ if (! INTEGRAL_TYPE_P (type)
&& code != ERROR_MARK)
{
error ("switch quantity not an integer");