PR middle-end/27134
* builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
to expand fallback builtin function call.
testsuite/ChangeLog:
PR middle-end/27134
* gcc.dg/pr27314.c: New test.
From-SVN: r112949
+2005-04-13 Uros Bizjak <uros@kss-loka.si>
+
+ PR middle-end/27134
+ * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
+ to expand fallback builtin function call.
+
2006-04-14 Alan Modra <amodra@bigpond.net.au>
PR middle-end/27095
gcc_assert (fallback_fndecl != NULL_TREE);
exp = build_function_call_expr (fallback_fndecl, arglist);
- tmp = expand_builtin_mathfn (exp, NULL_RTX, NULL_RTX);
+ tmp = expand_normal (exp);
/* Truncate the result of floating point optab to integer
via expand_fix (). */
+2006-04-13 Uros Bizjak <uros@kss-loka.si>
+
+ PR middle-end/27134
+ * gcc.dg/pr27314.c: New test.
+
2006-04-13 Richard Henderson <rth@redhat.com>
* g++.dg/gomp/block-0.C: Update expected matches.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O1 -ffast-math" } */
+
+extern double floor (double);
+
+inline int bar (double x)
+{
+ return (int) floor (x);
+}
+
+int foo (int i)
+{
+ return bar (i);
+}