Re: AC_CHECK_FUNC not safe WRT link time optimizing compilers

2010-10-25 Thread Ralf Wildenhues
Hello Jan, * Jan Hubicka wrote on Mon, Oct 25, 2010 at 08:39:07PM CEST: > AC_CHECK_FUNC produce test like the following: > char pstat_getstatic (); > char (*f) () = pstat_getstatic; > int > main () > { > return f != pstat_getstatic; > } Not since Autoconf 2.60 or newer, see

AC_CHECK_FUNC not safe WRT link time optimizing compilers

2010-10-25 Thread Jan Hubicka
Hi, AC_CHECK_FUNC produce test like the following: char pstat_getstatic (); char (*f) () = pstat_getstatic; int main () { return f != pstat_getstatic; } New GCC with link time optimization is smart enough to ask the linker plugin and work out that variable F is used only by the LTO code. This