Commit 874a7be1 by Richard Stallman

(build_enumerator): Use STRIP_TYPE_NOPS.

From-SVN: r1550
parent 8493738b
...@@ -3749,7 +3749,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) ...@@ -3749,7 +3749,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
if (size) if (size)
{ {
/* Strip NON_LVALUE_EXPRs since we aren't using as an lvalue. */ /* 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 if (TREE_CODE (TREE_TYPE (size)) != INTEGER_TYPE
&& TREE_CODE (TREE_TYPE (size)) != ENUMERAL_TYPE) && TREE_CODE (TREE_TYPE (size)) != ENUMERAL_TYPE)
...@@ -5050,7 +5050,7 @@ build_enumerator (name, value) ...@@ -5050,7 +5050,7 @@ build_enumerator (name, value)
/* Remove no-op casts from the value. */ /* Remove no-op casts from the value. */
if (value) if (value)
STRIP_NOPS (value); STRIP_TYPE_NOPS (value);
if (value != 0 && TREE_CODE (value) != INTEGER_CST) if (value != 0 && TREE_CODE (value) != INTEGER_CST)
{ {
......
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