https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39239

Nicolas Koenig <koenigni at student dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #40962|0                           |1
        is obsolete|                            |

--- Comment #8 from Nicolas Koenig <koenigni at student dot ethz.ch> ---
Created attachment 40964
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40964&action=edit
Proposed patch for EQUIVALENCE / VOLATILE 2

I'm sorry, I misread the standard (not really experienced in reading official
things :)), it reads:
    " All members of an EQUIVALENCE group should have the VOLATILE attribute if
any member has the VOLATILE attribute." (5.3.19).
This patch leads to an error being thrown if this not the case (instead of
giving them the volatile attribute as in the patch before).

This breaks the gfortran.dg/volatile11.f90 test case, but the optimizations
tested for in it can no longer be legally performed anyway. I would suggest
replacing it with something in line with the standard.

Reply via email to