diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-20 22:57:27 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-20 22:57:27 +0000 |
| commit | 65ae88e6b5ffd25adbcd649b221fe66a884115b0 (patch) | |
| tree | 4cd2ef773656a50da103f632bac5f1d1d5c131a5 | |
| parent | 6d9e68e3a78675b0dd43804e4d568a2ba76033aa (diff) | |
| download | ppe42-gcc-65ae88e6b5ffd25adbcd649b221fe66a884115b0.tar.gz ppe42-gcc-65ae88e6b5ffd25adbcd649b221fe66a884115b0.zip | |
* gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from
INTEGER_CSTs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141251 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/gimplify.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce553c6bf83..c55ccfaae0b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-10-21 Jakub Jelinek <jakub@redhat.com> + + * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from + INTEGER_CSTs. + 2008-10-20 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant diff --git a/gcc/gimplify.c b/gcc/gimplify.c index c6a79fbe8b7..d2625a7f715 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -6441,6 +6441,16 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, /* Constants need not be gimplified. */ case INTEGER_CST: + /* Don't preserve TREE_OVERFLOW flags, it only inhibits + many optimizations and FEs should have taken care of + reporting all the required diagnostics. */ + if (TREE_OVERFLOW (*expr_p)) + *expr_p = build_int_cst_wide (TREE_TYPE (*expr_p), + TREE_INT_CST_LOW (*expr_p), + TREE_INT_CST_HIGH (*expr_p)); + ret = GS_ALL_DONE; + break; + case REAL_CST: case FIXED_CST: case STRING_CST: |

