From 874a7be13c472436c30bdddfeeb83a8a00ffc71c Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 10 Jul 1992 01:50:35 +0000 Subject: [PATCH] (build_enumerator): Use STRIP_TYPE_NOPS. From-SVN: r1550 --- gcc/c-decl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 4faddf68a60..58bde16ed77 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3749,7 +3749,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) if (size) { /* Strip NON_LVALUE_EXPRs since we aren't using as an lvalue. */ - STRIP_NOPS (size); + STRIP_TYPE_NOPS (size); if (TREE_CODE (TREE_TYPE (size)) != INTEGER_TYPE && TREE_CODE (TREE_TYPE (size)) != ENUMERAL_TYPE) @@ -5050,7 +5050,7 @@ build_enumerator (name, value) /* Remove no-op casts from the value. */ if (value) - STRIP_NOPS (value); + STRIP_TYPE_NOPS (value); if (value != 0 && TREE_CODE (value) != INTEGER_CST) { -- 2.30.2