lto testsuite may erase mathlib variable

Richard Biener richard.guenther@gmail.com
Mon Jan 13 12:12:00 GMT 2014


On Fri, Jan 3, 2014 at 11:18 AM, BELBACHIR Selim
<selim.belbachir@fr.thalesgroup.com> wrote:
> Hi,
>
> I noticed a problem in gcc/testsuite/g++.dg/lto/lto.exp
>
> If the target does not support LTO (check_effective_target_lto) a brutal return is performed so the mathlib variable modified in lto_init will not be restored properly by lto_finish at the end of the script.
>
> Subsequent testsuites will found an empty mathlib.

Rather than this I modified it to match gcc.dg/lto/lto.exp which does
this init after the bailout.

Tested on x86_64-linux, applied.

Richard.

> Regards,
>
> Selim
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p
Type: application/octet-stream
Size: 2476 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20140113/a5bafbd6/attachment.obj>


More information about the Gcc mailing list