[Bug middle-end/27134] [4.1/4.2 regression] ICE with floor and -ffast-math

2006-04-13 Thread uros at gcc dot gnu dot org
--- Comment #4 from uros at gcc dot gnu dot org 2006-04-14 05:01 --- Subject: Bug 27134 Author: uros Date: Fri Apr 14 05:01:18 2006 New Revision: 112949 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112949 Log: PR middle-end/27134 * builtins.c (expand_builtin_in

[Bug middle-end/27134] [4.1/4.2 regression] ICE with floor and -ffast-math

2006-04-12 Thread uros at kss-loka dot si
--- Comment #3 from uros at kss-loka dot si 2006-04-12 17:54 --- > There seems to be something wrong with -ffast-math and floor. I have done some analysis on this. Start from expand_builtin_int_roundingfn() in builtins.c source, where we fallback to FP rounding optab. fallback_fndecl f

[Bug middle-end/27134] [4.1/4.2 regression] ICE with floor and -ffast-math

2006-04-12 Thread reichelt at gcc dot gnu dot org
--- Comment #2 from reichelt at gcc dot gnu dot org 2006-04-12 14:59 --- Confirmed. Reduced testcase (compile with -O -ffast-math): == double floor(double); inline int bar(double x) { return (int)floor(x); } int foo(int i) { return