binutils-gdb/sim/testsuite
Hans-Peter Nilsson 56ba3848dc sim/testsuite/cris/c: Use -sim3 but only for newlib targets
Commit a39487c668 "sim: cris: use -sim with C tests for cris-elf
targets" caused " -sim" to be appended to CFLAGS_FOR_TARGET for
cris*-*-elf, where testing had until then relied on
"RUNTESTFLAGS=--target_board=cris-sim" being passed when running "make
check-sim", adding the right options.  While "-sim" happens to work,
the baseboard-file cris-sim.exp uses "-sim3" so for consistency use
that instead.

Then commit b42f20d2ac "sim: testsuite: drop most specific istarget
checks" caused " -sim" to be appended for *all* targets, which just
doesn't work.  For example, for crisv32-linux-gnu, that's not a
recognized option and will cause a dejagnu error and further testing
in c.exp will be aborted.

While cris-sim.exp appends "-static" for *-linux-gnu, further changes
in the test-suite have caused "linux"-specific tests to break, so that
part will be tended to separately.

But, save and restore CFLAGS_FOR_TARGET around the modification and
use where needed, to not have the CRIS-specific modification affect a
continuing test-run (possibly for other targets).

sim/testsuite/cris:
	* c/c.exp (CFLAGS_FOR_TARGET): Replace appended option " -sim"
	with " -sim3", but do it conditionally for newlib targets.  Save
	and restore CFLAGS_FOR_TARGET in saved_CFLAGS_FOR_TARGET such
	that it doesn't affect the value of CFLAGS_FOR_TARGET outside
	c.exp.
2022-02-14 23:50:36 +01:00
..
aarch64
arm
avr
bfin
bpf
common sim: testsuite: migrate to standard uintXX_t types 2022-01-06 01:17:38 -05:00
config
cr16
cris sim/testsuite/cris/c: Use -sim3 but only for newlib targets 2022-02-14 23:50:36 +01:00
d10v
example-synacor
frv
ft32
h8300
iq2000
lib sim/testsuite: Set global_cc_os also when no compiler is found 2022-02-14 23:50:29 +01:00
lm32
m32c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
m32r
m68hc11
mcore
microblaze
mips sim: mips: Add simulator support for mips32r6/mips64r6 2022-02-04 19:37:26 -05:00
mn10300
moxie
msp430
or1k Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
pru Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
riscv
sh
v850
.gitignore
ChangeLog-2021
local.mk Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00