Commit 83e0724e by Eric Botcazou Committed by Eric Botcazou

* gcc.dg/builtins-67.c: Guard iround and irint with HAVE_C99_RUNTIME.

From-SVN: r179920
parent 2b3c0885
2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/builtins-67.c: Guard iround and irint with HAVE_C99_RUNTIME.
2011-10-13 Richard Guenther <rguenther@suse.de> 2011-10-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50712 PR tree-optimization/50712
......
...@@ -58,14 +58,14 @@ long long llceilf (float a) { return (long long) ceilf (a); } ...@@ -58,14 +58,14 @@ long long llceilf (float a) { return (long long) ceilf (a); }
long long llceill (long double a) { return (long long) ceill (a); } long long llceill (long double a) { return (long long) ceill (a); }
#endif #endif
int iround (double a) { return (int) round (a); }
#ifdef HAVE_C99_RUNTIME #ifdef HAVE_C99_RUNTIME
int iround (double a) { return (int) round (a); }
int iroundf (float a) { return (int) roundf (a); } int iroundf (float a) { return (int) roundf (a); }
int iroundl (long double a) { return (int) roundl (a); } int iroundl (long double a) { return (int) roundl (a); }
#endif #endif
int irint (double a) { return (int) rint (a); }
#ifdef HAVE_C99_RUNTIME #ifdef HAVE_C99_RUNTIME
int irint (double a) { return (int) rint (a); }
int irintf (float a) { return (int) rintf (a); } int irintf (float a) { return (int) rintf (a); }
int irintl (long double a) { return (int) rintl (a); } int irintl (long double a) { return (int) rintl (a); }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment