diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-10-21 00:57:27 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-10-21 00:57:27 +0200 |
commit | 8df67f4fe595411dfc28a71118fc8c74e65e700e (patch) | |
tree | 4cd2ef773656a50da103f632bac5f1d1d5c131a5 /gcc/gimplify.c | |
parent | 15d5fe337ee87efb5aaa8b65aeb44cb672d4be5a (diff) | |
download | gcc-8df67f4fe595411dfc28a71118fc8c74e65e700e.zip gcc-8df67f4fe595411dfc28a71118fc8c74e65e700e.tar.gz gcc-8df67f4fe595411dfc28a71118fc8c74e65e700e.tar.bz2 |
gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
* gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from
INTEGER_CSTs.
From-SVN: r141251
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index c6a79fb..d2625a7 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: |