summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/builtins.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2012-06-13 20:21:08 +0000
committerpfg <pfg@FreeBSD.org>2012-06-13 20:21:08 +0000
commit15cbdc9790a226adc9ef5684e3a09a9ddef8597b (patch)
tree654bf94d13f16fd7984cb98a5c7cebcda5c97479 /contrib/gcc/builtins.c
parent58789340208c1a299e7230e33a8b438c23b37e40 (diff)
downloadFreeBSD-src-15cbdc9790a226adc9ef5684e3a09a9ddef8597b.zip
FreeBSD-src-15cbdc9790a226adc9ef5684e3a09a9ddef8597b.tar.gz
Revert r236962 - Experimental amdfam10/barcelona support.
The patches are unexpectedly causing gcc to fail while building ports/graphics/ImageMagick even when the cpu flags are not used. Reported by: Andreas Tobler
Diffstat (limited to 'contrib/gcc/builtins.c')
-rw-r--r--contrib/gcc/builtins.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/contrib/gcc/builtins.c b/contrib/gcc/builtins.c
index 3321821..a65d725 100644
--- a/contrib/gcc/builtins.c
+++ b/contrib/gcc/builtins.c
@@ -7355,12 +7355,6 @@ fold_builtin_ceil (tree fndecl, tree arglist)
}
}
- /* Fold floor (x) where x is nonnegative to trunc (x). */
- if (tree_expr_nonnegative_p (arg))
- return build_function_call_expr (mathfn_built_in (TREE_TYPE (arg),
- BUILT_IN_TRUNC),
- arglist);
-
return fold_trunc_transparent_mathfn (fndecl, arglist);
}
@@ -7448,18 +7442,6 @@ fold_builtin_int_roundingfn (tree fndecl, tree arglist)
}
}
- switch (DECL_FUNCTION_CODE (fndecl))
- {
- CASE_FLT_FN (BUILT_IN_LFLOOR):
- CASE_FLT_FN (BUILT_IN_LLFLOOR):
- /* Fold lfloor (x) where x is nonnegative to FIX_TRUNC (x). */
- if (tree_expr_nonnegative_p (arg))
- return fold_build1 (FIX_TRUNC_EXPR, TREE_TYPE (TREE_TYPE (fndecl)),
- arg);
- break;
- default:;
- }
-
return fold_fixed_mathfn (fndecl, arglist);
}
OpenPOWER on IntegriCloud