This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR40011 - Problems with -fwhole-file
Dear Tobias and Richi,
> Thanks for the check - I expected something like that. Presumably 4.4
> did not optimize away the store to j and thus it worked.
4.4 takes the inlined
base%this => j !have the variables point
j%this => base !to one another
if (.not.associated(base%this%this,base)) call abort
if (.not.associated(base%this%this)) call abort
if (.not.associated(base%this)) call abort
and, correctly I suppose, optimizes it away completely; ie there
remain no assignments, conditions or possible calls to abort.
Something has changed downstream from gfortran or we have changed some
flag that prevents this from happening.
Cheers
Paul