[PATCH, FORTRAN] Fix PR fortran/60718
Bernd Edlinger
bernd.edlinger@hotmail.de
Fri Apr 11 06:40:00 GMT 2014
Hi,
this patch fixes the last failed fortran test case on arm-linux-gnueabihf:
select_type_4.f90, which did always fail at -O2 and above.
It was caused by a strict aliasing violation, when passing a value of the type
"class(x),pointer" to a formal procedure parameter of the type "class(x),target".
The patch resolves this, by creating a temporary value of type "class(x),target"
which can be passed to the procedure without violating the strict aliasing rules.
Boot-strapped and regression-tested without any regressions
on x86_64-unknown-linux-gnu and arm-linux-gnueabihf.
OK for trunk?
Thanks
Bernd.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changelog-pr60718.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140411/c2c4323a/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-pr60718.diff
Type: application/octet-stream
Size: 898 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140411/c2c4323a/attachment.obj>
More information about the Gcc-patches
mailing list