Re: lto testsuite may erase mathlib variable

2014-01-13 Thread Richard Biener
On Fri, Jan 3, 2014 at 11:18 AM, BELBACHIR Selim 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 properl

lto testsuite may erase mathlib variable

2014-01-03 Thread BELBACHIR Selim
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