summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2012-06-21 16:49:20 +0000
committerpfg <pfg@FreeBSD.org>2012-06-21 16:49:20 +0000
commit8c84995be2f385f8e9a19b071c5297940a91c4dc (patch)
tree061d41c370879adcdbc7178c01ee3106fafc9a4b /contrib/gcc/tree-ssa-ccp.c
parentdd83f274ed4c8fa3cdb0fd69be2f4df1e1ac398e (diff)
downloadFreeBSD-src-8c84995be2f385f8e9a19b071c5297940a91c4dc.zip
FreeBSD-src-8c84995be2f385f8e9a19b071c5297940a91c4dc.tar.gz
Bring a couple of fixes for gcc optimizations.
The GCC4.3 branch contains some optimization fixes that were not considered regressions and therefore were never backported. We are bringing a couple of them that are under GPLv2 since they were made before the license switch upstream. While here, add the GCC revision numbers in the log. Discussed with: jkim MFC after: 1 week
Diffstat (limited to 'contrib/gcc/tree-ssa-ccp.c')
-rw-r--r--contrib/gcc/tree-ssa-ccp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/gcc/tree-ssa-ccp.c b/contrib/gcc/tree-ssa-ccp.c
index 6e74f35..e64d80b 100644
--- a/contrib/gcc/tree-ssa-ccp.c
+++ b/contrib/gcc/tree-ssa-ccp.c
@@ -1621,9 +1621,7 @@ maybe_fold_offset_to_array_ref (tree base, tree offset, tree orig_type)
if (!integer_zerop (elt_offset))
idx = int_const_binop (PLUS_EXPR, idx, elt_offset, 0);
- return build4 (ARRAY_REF, orig_type, base, idx, min_idx,
- size_int (tree_low_cst (elt_size, 1)
- / (TYPE_ALIGN_UNIT (elt_type))));
+ return build4 (ARRAY_REF, orig_type, base, idx, NULL_TREE, NULL_TREE);
}
OpenPOWER on IntegriCloud