https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
--- Comment #30 from Bijan Chokoufe <bijan at chokoufe dot com> --- > Could you maybe do the following: > > - Use your normal sources > > - Change the compilation options to add -fdump-tree-all to the relevant > file > > - Copy all the generated xxx.f90.whatever files (the tree dumps) > to a different directory > > - Change intent(in) to volatile > > - Rerun the compilation > > and then run diff on the tree dump files to the original ones? > If you see anything suspicious in the diffs, that might point > to something. Maybe you could also attach the diffs, so somebody > else could take a look at it. Did that, specifically I configured with FCFLAGS='-fdump-tree-all -O2 -g'. Then I copied `.libs` to `with_volatile` (our trunk currently has the volatile workaround per default), removed the `volatile` attribute and compiled again. Here is the diff between `.libs` and `with_volatile` (unpack with `bzip2 -d diff.bz2`) as I have no idea what to look for: https://cloud.bijancn.de/index.php/s/ta2XMIVWhTUGAvX