Commit 36102b21 by Richard Kenner

(const_binop): Strip NOPS from both args.

From-SVN: r11019
parent 43e046cb
/* Fold a constant sub-tree into a single node for C-compiler /* Fold a constant sub-tree into a single node for C-compiler
Copyright (C) 1987, 88, 92, 93, 94, 1995 Free Software Foundation, Inc. Copyright (C) 1987, 88, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -966,6 +966,8 @@ const_binop (code, arg1, arg2, notrunc) ...@@ -966,6 +966,8 @@ const_binop (code, arg1, arg2, notrunc)
register tree arg1, arg2; register tree arg1, arg2;
int notrunc; int notrunc;
{ {
STRIP_NOPS (arg1); STRIP_NOPS (arg2);
if (TREE_CODE (arg1) == INTEGER_CST) if (TREE_CODE (arg1) == INTEGER_CST)
{ {
register HOST_WIDE_INT int1l = TREE_INT_CST_LOW (arg1); register HOST_WIDE_INT int1l = TREE_INT_CST_LOW (arg1);
......
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