[Fortran, Patch, pr70524, v1] [5/6/7 Regression] ICE when using -frepack-arrays -Warray-temporaries
Andre Vehreschild
vehre@gmx.de
Mon Jul 25 10:55:00 GMT 2016
Hi all,
the attached patch fixes the ICE when the options in the title are
used. Two issues caused this ICE:
1. the error-printing routines relied on the locus.nextc which was not
set by the gfc_set_backend_locus() and is now set by the patch
(locally, not in gfc_set_backend_locus()).
2. the locus of the function whose result triggered the warning (and
with it the ICE) was set too late.
Both issues are addressed by the patch. Albeit I am not quite sure,
whether my solution to 1. (the first chunk in the patch) is ok this
way.
Bootstraps and regtests ok on x86_64-linux-gnu/F23.
Ok for trunk? And with one week delay for gcc-5- and -6-branch?
Regards,
Andre
--
Andre Vehreschild * Email: vehre ad gmx dot de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr70524_1.clog
Type: application/octet-stream
Size: 430 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160725/f603ab11/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr70524_1.patch
Type: text/x-patch
Size: 2335 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160725/f603ab11/attachment.bin>
More information about the Gcc-patches
mailing list