diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-15 05:43:56 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-15 05:43:56 +0000 |
commit | 6f8a28875d01388c90ed96652e0f99c191f8547c (patch) | |
tree | 6cece628e71c04ff9e27b7ef90ee01ffb2ef5922 /gcc/testsuite | |
parent | c3bec18a4a3fc6046418c25969cc6c5f290788c6 (diff) | |
download | gcc-6f8a28875d01388c90ed96652e0f99c191f8547c.tar.gz |
PR tree-optimization/21004
* convert.c (convert_to_integer): Convert ceilf, ceill, floorf
and floorl in c99 mode only.
* builtins.c (expand_builtin_int_roundingfn): Assert that
fallback_fndecl is not NULL_TREE.
testsuite:
PR tree-optimization/21004
* gcc.dg/builtins-53.c: Include builtins-config.h.
Check floorf, ceilf, floorl and ceill transformations
only when HAVE_C99_RUNTIME is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98174 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/builtins-53.c | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5d78e17783d..b2b8e9798e1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2005-04-15 Uros Bizjak <uros@kss-loka.si> + + PR tree-optimization/21004 + * gcc.dg/builtins-53.c: Include builtins-config.h. + Check floorf, ceilf, floorl and ceill transformations + only when HAVE_C99_RUNTIME is defined. + 2005-04-15 Alexandre Oliva <aoliva@redhat.com> PR middle-end/20739 diff --git a/gcc/testsuite/gcc.dg/builtins-53.c b/gcc/testsuite/gcc.dg/builtins-53.c index 0a080704fb3..e01908c26a7 100644 --- a/gcc/testsuite/gcc.dg/builtins-53.c +++ b/gcc/testsuite/gcc.dg/builtins-53.c @@ -11,6 +11,8 @@ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math" } */ +#include "builtins-config.h" + extern double floor(double); extern double ceil(double); extern double trunc(double); @@ -54,6 +56,7 @@ long long int test6(double x) return trunc(x); } +#ifdef HAVE_C99_RUNTIME long int test1f(float x) { return floorf(x); @@ -73,6 +76,7 @@ long long int test4f(float x) { return ceilf(x); } +#endif long int test5f(float x) { @@ -84,6 +88,7 @@ long long int test6f(float x) return truncf(x); } +#ifdef HAVE_C99_RUNTIME long int test1l(long double x) { return floorl(x); @@ -103,6 +108,7 @@ long long int test4l(long double x) { return ceill(x); } +#endif long int test5l(long double x) { |