[Bug fortran/54556] [4.8 Regression] Marking implicitly pure variables as DECL_PURE_P leads to wrong code

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Wed Sep 12 20:50:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54556

--- Comment #6 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-09-12 20:50:40 UTC ---
The testcase illustrates the issue, compiling as

gfortran -c -O1 test.f90 -fdump-tree-optimized

shows that rn32 is only called once from rn53, whereas the proper number would
be 2 or 3. So I guess rn32 is incorrectly marked as pure.



More information about the Gcc-bugs mailing list