projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
078fb2a
)
*** empty log message ***
author
Tom Wood
<wood@gnu.org>
Wed, 22 Apr 1992 10:20:05 +0000
(10:20 +0000)
committer
Tom Wood
<wood@gnu.org>
Wed, 22 Apr 1992 10:20:05 +0000
(10:20 +0000)
From-SVN: r815
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index 80e329a37e18043e9fc05a7a34369ea565d1754a..c620a220f831a8f311630b161e32862b90f92662 100644
(file)
--- a/
gcc/fold-const.c
+++ b/
gcc/fold-const.c
@@
-3486,7
+3486,7
@@
fold (expr)
{
case 0:
/* Always false. */
- return
convert (type, integer_zero_node
);
+ return
omit_one_operand (type, integer_zero_node, arg0
);
case 1:
code = LT_EXPR;
break;
@@
-3507,10
+3507,12
@@
fold (expr)
break;
case 7:
/* Always true. */
- return
convert (type, integer_one_node
);
+ return
omit_one_operand (type, integer_one_node, arg0
);
}
- return fold (build (code, type, cval1, cval2));
+ return omit_one_operand (type,
+ fold (build (code, type, cval1, cval2)),
+ arg0);
}
}
}