summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/gimplify.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2012-06-12 15:04:18 +0000
committerpfg <pfg@FreeBSD.org>2012-06-12 15:04:18 +0000
commita6eb26cf6f3dbbb726fd6e5e9f02f222df40cdf8 (patch)
treeb2fbef554d2610927edad3f5917fcc94f901f6c1 /contrib/gcc/gimplify.c
parent33675cab555bc824f32778ba0fed56733a19ef6e (diff)
downloadFreeBSD-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/gimplify.c')
-rw-r--r--contrib/gcc/gimplify.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/gcc/gimplify.c b/contrib/gcc/gimplify.c
index 80dcd1a..7efae38 100644
--- a/contrib/gcc/gimplify.c
+++ b/contrib/gcc/gimplify.c
@@ -1600,9 +1600,7 @@ canonicalize_addr_expr (tree *expr_p)
/* All checks succeeded. Build a new node to merge the cast. */
*expr_p = build4 (ARRAY_REF, dctype, obj_expr,
TYPE_MIN_VALUE (TYPE_DOMAIN (datype)),
- TYPE_MIN_VALUE (TYPE_DOMAIN (datype)),
- size_binop (EXACT_DIV_EXPR, TYPE_SIZE_UNIT (dctype),
- size_int (TYPE_ALIGN_UNIT (dctype))));
+ NULL_TREE, NULL_TREE);
*expr_p = build1 (ADDR_EXPR, ctype, *expr_p);
}
OpenPOWER on IntegriCloud