Commit 39b1ec97 by Uros Bizjak Committed by Uros Bizjak

re PR middle-end/27134 (ICE with floor and -ffast-math)

	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
parent 880864cf
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
......
......@@ -2312,7 +2312,7 @@ expand_builtin_int_roundingfn (tree exp, rtx target, rtx subtarget)
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.
/* { 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);
}
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