This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g++.dg/lto/lto.exp bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]