diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-20 13:35:25 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-20 13:35:25 +0000 |
commit | 322f4e4ea02cab7fe218849df997833130d62ed7 (patch) | |
tree | 09b6a491ac6c8bc5e85ff3de5e1c18c7a9b099af /gcc | |
parent | 3b6c5510689920ba5e69c1910aa4797a6875203d (diff) | |
download | ppe42-gcc-322f4e4ea02cab7fe218849df997833130d62ed7.tar.gz ppe42-gcc-322f4e4ea02cab7fe218849df997833130d62ed7.zip |
2004-12-20 Andrew Haley <aph@redhat.com>
* typeck.c: Use fold_convert for ints and booleans.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92419 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/typeck.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index fba18330945..61f0a6fdf8d 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2004-12-20 Andrew Haley <aph@redhat.com> + + * typeck.c: Use fold_convert for ints and booleans. + 2004-12-17 Andrew Haley <aph@redhat.com> PR java/18931 diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c index 2b85e475d95..dcd201de777 100644 --- a/gcc/java/typeck.c +++ b/gcc/java/typeck.c @@ -130,7 +130,7 @@ convert (tree type, tree expr) if (code == VOID_TYPE) return build1 (CONVERT_EXPR, type, expr); if (code == BOOLEAN_TYPE || code == CHAR_TYPE) - return fold (build1 (CONVERT_EXPR, type, expr)); + return fold_convert (type, expr); if (code == INTEGER_TYPE) { if ((really_constant_p (expr) |