aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-01-16 08:42:19 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-01-16 08:42:19 -0500
commit36102b210e815f60c40aa39f00bac65b80158b33 (patch)
tree95728652b6596c388b346cb38fdd914fd2c7298f /gcc/fold-const.c
parent43e046cbc1dbcc553365d1e807016a135b97008f (diff)
downloadgcc-36102b210e815f60c40aa39f00bac65b80158b33.zip
gcc-36102b210e815f60c40aa39f00bac65b80158b33.tar.gz
gcc-36102b210e815f60c40aa39f00bac65b80158b33.tar.bz2
(const_binop): Strip NOPS from both args.
From-SVN: r11019
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 14e11d0..1c51ba8 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -1,5 +1,5 @@
/* 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.
@@ -966,6 +966,8 @@ const_binop (code, arg1, arg2, notrunc)
register tree arg1, arg2;
int notrunc;
{
+ STRIP_NOPS (arg1); STRIP_NOPS (arg2);
+
if (TREE_CODE (arg1) == INTEGER_CST)
{
register HOST_WIDE_INT int1l = TREE_INT_CST_LOW (arg1);