Do unset_currtarget_info ldscript for all simulator testsuites.

sim/testsuite:
	* sim-defs.exp (sim_init): Unset target ldscript here.

sim/testsuite/sim/mips:
	* basic.exp: Don't unset target ldscript here.
This commit is contained in:
Hans-Peter Nilsson 2015-04-13 01:54:43 +02:00
parent e787f858a4
commit a9d9677441
4 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2015-04-13 Hans-Peter Nilsson <hp@axis.com>
* sim-defs.exp (sim_init): Unset target ldscript here.
2015-03-30 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Add d10v-*-elf.

View File

@ -12,6 +12,16 @@ proc sim_init { args } {
global sim_path
set sim_path [board_info target sim]
# Need to return an empty string (copied from GAS).
# As gross as it is, we unset the linker script specified by the target
# board. The simulator board file mips-sim.exp, sets ldscript to the
# MIPS libgloss linker scripts which include libgcc (and possibly other
# libraries), which the linker (used to link these tests rather than the
# compiler) can't necessarily find. Similarly iq2000-sim.exp and
# m68hc11-sim.exp. So, we make it a common rule to clear the slate for
# all simulators.
unset_currtarget_info ldscript
return ""
}

View File

@ -1,3 +1,7 @@
2015-04-13 Hans-Peter Nilsson <hp@axis.com>
* basic.exp: Don't unset target ldscript here.
2011-01-06 Hans-Peter Nilsson <hp@axis.com>
* testutils.inc: Correct comment syntax fallout from

View File

@ -1,11 +1,5 @@
# MIPS simulator instruction tests
# As gross as it is, we unset the linker script specified by the target
# board. The MIPS libgloss linker scripts include libgcc (and possibly
# other libraries), which the linker (used to link these tests rather
# than the compiler) can't necessarily find.
unset_currtarget_info ldscript
# Do "run_sim_test TESTFILE MODELS" for each combination of the
# mf{lo,hi} -> mult/div/mt{lo,hi} hazard described in mips.igen.
# Insert NOPS nops after the mflo or mfhi.