[Ada] Fix segfault in NRV on pathological case
Eric Botcazou
ebotcazou@adacore.com
Fri Feb 24 10:49:00 GMT 2017
This is a regression present on all active branches where the NRV pass
implemented in gigi segfaults on a pathological case.
Tested on x86_64-suse-linux, applied on all active branches.
2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (return_value_ok_for_nrv_p): Add sanity check
2017-02-24 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt63.adb: New test.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 665 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170224/4f1870e0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opt63.adb
Type: text/x-adasrc
Size: 471 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170224/4f1870e0/attachment-0001.bin>
More information about the Gcc-patches
mailing list