diff options
author | pfg <pfg@FreeBSD.org> | 2012-06-12 15:04:18 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2012-06-12 15:04:18 +0000 |
commit | a6eb26cf6f3dbbb726fd6e5e9f02f222df40cdf8 (patch) | |
tree | b2fbef554d2610927edad3f5917fcc94f901f6c1 /contrib/gcc/tree-ssa-ccp.c | |
parent | 33675cab555bc824f32778ba0fed56733a19ef6e (diff) | |
download | FreeBSD-src-a6eb26cf6f3dbbb726fd6e5e9f02f222df40cdf8.zip FreeBSD-src-a6eb26cf6f3dbbb726fd6e5e9f02f222df40cdf8.tar.gz |
Add experimental support for amdfam10/barcelona from the GCC 4.3 branch.
Initial support for the AMD barcelona chipsets has been available in the
gcc43 branch under GPLv2 but was not included when the Core 2 support
was brought to the system gcc.
AMD and some linux distributions (OpenSUSE) did a backport of the amdfam10
support and made them available. Unfortunately this is still experimental
and while it can improve performance, enabling the CPUTYPE may break some
C++ ports (like clang).
Special care was taken to make sure that the patches predate the GPLv3
switch upstream.
Tested by: Vladimir Kushnir
Reviewed by: mm
Approved by: jhb (mentor)
MFC after: 2 weeks
Diffstat (limited to 'contrib/gcc/tree-ssa-ccp.c')
-rw-r--r-- | contrib/gcc/tree-ssa-ccp.c | 4 |
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); } |