------- Comment #2 from jvdelisle at gcc dot gnu dot org 2010-07-25 15:04 ------- This patchlet at least works for the reduce test case. Assuming there is nothing left to translate. I am not sure this is the right approach, bu the -fdump-tree-original matches for with and without -fno-whole-file.
Index: trans-io.c =================================================================== --- trans-io.c (revision 162507) +++ trans-io.c (working copy) @@ -1499,6 +1499,9 @@ gcc_assert (sym || c); + if (base_addr == NULL) + return; + /* Build the namelist object name. */ string = gfc_build_cstring_const (var_name); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45066