aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2005-09-26 01:28:50 +0000
committerKazu Hirata <kazu@codesourcery.com>2005-09-26 01:28:50 +0000
commitf7229be52ea791fff10705637a51d28e3de904f0 (patch)
tree5cefb37b1e429e55e7dde5f0eb3774ca89ad2077 /gcc/fold-const.c
parentaf603587898f14d9ffe16d84f6c826ff04775c18 (diff)
gcc/
PR tree-optimization/23960 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0 and arg1 if we are passing them to fold_build2. gcc/testsuite/ PR tree-optimization/23960 * gcc.c-torture/compile/pr23960.c: New. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@104634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 4b41adfc59f..0190c322dc5 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -9285,7 +9285,7 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1)
return omit_one_operand (type, integer_one_node, arg0);
case GT_EXPR:
- return fold_build2 (NE_EXPR, type, arg0, arg1);
+ return fold_build2 (NE_EXPR, type, op0, op1);
default:
break;