http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47981
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2011.03.04 10:43:17 Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-04 10:43:17 UTC --- The testcase relies on us folding cabs() to pow/sqrt late (at link time) /* We require a linker plugin because otherwise we'd need to link against libm which we are not sure here has cabs on all targets. This is because collect2 invokes ld on the -O0 object code which does not have folded cabs. */ can you try if using __builtin_cabs instead of cabs works for you? It might be solaris isnt a TARGET_C99_MATH target and thus cabs isn't detected as builtin?