summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-17 03:03:32 +0000
committerphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-17 03:03:32 +0000
commitb7f352d5acb5c7213d80719f1b42188b3588ffeb (patch)
treecae8b9e211250aefd713e4f6af5fa1e726e33794 /gcc
parenta223bc5381f5b1269dd8d762687d5af27d96227e (diff)
downloadgcc-b7f352d5acb5c7213d80719f1b42188b3588ffeb.tar.gz
2005-02-16 James A. Morrison <phython@gcc.gnu.org>
* fold-const.c (invert_truthvalue): <INTEGER_CST>: Call constant_boolean_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95146 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/fold-const.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 658a342cdf8..50c9b83b428 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-16 James A. Morrison <phython@gcc.gnu.org>
+
+ * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
+ constant_boolean_node.
+
2005-02-16 David Edelsohn <edelsohn@gnu.org>
PR target/19019
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 5e2a8682c09..27e16ae95cf 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -2936,8 +2936,7 @@ invert_truthvalue (tree arg)
switch (code)
{
case INTEGER_CST:
- return fold_convert (type,
- build_int_cst (NULL_TREE, integer_zerop (arg)));
+ return constant_boolean_node (integer_zerop (arg), type);
case TRUTH_AND_EXPR:
return build2 (TRUTH_OR_EXPR, type,