]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: Support clobbering of ASSOCIATE variables [PR41453]
authorMikael Morin <mikael@gcc.gnu.org>
Wed, 31 Aug 2022 09:58:08 +0000 (11:58 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 25 Sep 2022 12:44:54 +0000 (14:44 +0200)
commitd5e1935b09fa05093e31d7ce5e21b7e71957c103
treeb69a1c41a04aa3c65212d4367dd33b711728c865
parent467ef2c40dbaf9d1219d9642e90df77dc61f4fae
fortran: Support clobbering of ASSOCIATE variables [PR41453]

This is in spirit a revert of:
r9-3051-gc109362313623d83fe0a5194bceaf994cf0c6ce0

That commit added a condition to avoid generating ICE with clobbers
of ASSOCIATE variables.
The test added at that point continues to pass if we remove that
condition now.

PR fortran/41453
PR fortran/87401

gcc/fortran/ChangeLog:

* trans-expr.cc (gfc_conv_procedure_call): Remove condition
disabling clobber generation for ASSOCIATE variables.

gcc/testsuite/ChangeLog:

* gfortran.dg/intent_optimize_8.f90: New test.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/intent_optimize_8.f90 [new file with mode: 0644]