This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++.dg/lto/lto.exp bug
- From: BELBACHIR Selim <selim dot belbachir at fr dot thalesgroup dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 10 Jul 2014 10:33:09 +0200
- Subject: g++.dg/lto/lto.exp bug
- Authentication-results: sourceware.org; auth=none
Hi,
In gcc 4.7.3 I found a bug in the testsuite script g++.dg/lto/lto.exp when a target does not support LTO (ENABLE_LTO not defined)
The following lines :
if { ![check_effective_target_lto] } {
return
}
Should be called before :
g++_init
lto_init no-mathlib
(Like in gcc.dg/lto/lto.exp)
Otherwise 'lto_init' may hack board_info (removing the mathlib option) without being restored by 'lto_finish' because of the brutal return after 'check_effective_target_lto'
Selim