[Bug fortran/79430] [7 Regression] action of statement incorrectly optimised away
bijan at chokoufe dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 18 13:25:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
--- Comment #37 from Bijan Chokoufe <bijan at chokoufe dot com> ---
(In reply to Thomas Koenig from comment #35)
> [tkoenig@gcc1-power7 shower]$ pwd
> /home/tkoenig/whizard-2.4.1/src/shower
> [tkoenig@gcc1-power7 shower]$ grep -i volatile *.f90
> [tkoenig@gcc1-power7 shower]$
>
> Did you run a diff on the generated assembly with and without
> the VOLATILE statement? You can use the -save-temps option for that.
I generated the .s files with -save-temps with and without volatile attributes.
The diff is attached. I can say the instructions are different but that's about
it.
Concerning your PowerPC compilation: Have you set FCLAGS yourself and if so
have you included -O2? That other tests are failing is not too suprising and
doesn't have to be a major problem as the test suite is not numerically
waterproof (and partly can't be). The issue with memcpy looks like a bug
though.
More information about the Gcc-bugs
mailing list