testsuite: Tweak check_fork_available for CRIS
commit020255eb52ec215703f4ffc90a3a916c21fb36fc
authorHans-Peter Nilsson <hp@axis.com>
Fri, 10 Mar 2023 18:08:53 +0000 (10 19:08 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 10 Mar 2023 22:48:22 +0000 (10 23:48 +0100)
treefde54ef200db2073d76b1b80ca9e85cdf4bf54ee
parent88bcd4e5678260bfd60c6cbc7ecb63b8aeafd20e
testsuite: Tweak check_fork_available for CRIS

This takes care of the failing gcc.dg/torture/ftrapv-1.c and
-ftrapv-2.c for cris-elf.

For simplicity, assume simulators are the GNU simulator (in the gdb
repo).  But cris-elf is newlib, so a newlib target forking?  Yes: the
I/O, etc. interface to the simulator uses the Linux/CRIS ABI.

* lib/target-supports.exp (check_fork_available): Don't signal
true for CRIS running on a simulator.
gcc/testsuite/lib/target-supports.exp