This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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.
Attachment:
changelog-pr60718.txt
Description: Text document
Attachment:
patch-pr60718.diff
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |