------- 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