[Bug tree-optimization/39643] [4.5 Regression]: cris-elf gcc.dg/torture/builtin-math-3.c -O1 and -Os sincos one

hp at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Apr 5 22:05:00 GMT 2009



------- Comment #3 from hp at gcc dot gnu dot org  2009-04-05 22:05 -------
Created an attachment (id=17591)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17591&action=view)
Reduced gcc.dg/torture/builtin-math-3.c

The two lines causing link_error() to be called as in the linker error messages
are cut out and the condition is reduced such that the emitted assembly-code is
still identical.  Compile with e.g. -O1.  Observe libcalls for "<=" and ">="
being called for constants, while in the pre-regression code, everything is
optimized out to the effect of "return 0;"


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39643



More information about the Gcc-bugs mailing list