On Sat, Apr 16, 2011 at 12:30:01AM +0200, Tobias Burnus wrote: > > I have no idea why there should be a problem with inlining (cf. deleted > comment), but removing that part did not give any test suite failure > (check-gfortran + libgomp's check). Additionally, I have build and run > the Polyhedron testsuite with "-march=native -ffast-math -funroll-loops > -O3 -fno-protect-parens -finline-limit=400 -fwhole-program".
The comment comes from r170414, which suggest there is a problem if a procedure is in an argument list, and that procedure gets in-lined. laptop:kargl[205] svn log -r 170414 trans-decl.c |more ------------------------------------------------------------------------ r170414 | pault | 2011-02-22 12:33:45 -0800 (Tue, 22 Feb 2011) | 12 lines 2011-02-22 Paul Thomas <pa...@gcc.gnu.org> PR fortran/45743 * trans-decl.c (gfc_get_extern_function_decl): Don't use the gsymbol backend_decl if the procedure has a formal argument that is a procedure. 2011-02-22 Paul Thomas <pa...@gcc.gnu.org> PR fortran/45743 * gfortran.dg/whole_file_32.f90 : New test. Perhaps, looking at the -fdump-tree-original on whole_file_32.f90 may shed light on the situation. -- Steve