sim: testsuite: unify basic C compiler checks
authorMike Frysinger <vapier@gentoo.org>
Thu, 11 Nov 2021 05:36:52 +0000 (00:36 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 27 Nov 2021 00:51:15 +0000 (19:51 -0500)
commit264dcc17cc4d2252d58bda347dfd78c1b78517da
tree31da57f3638243a7ff8c24c940dcd21e5842d6db
parentc0d6a6e5828882040bbb55bafea6b188a18fc000
sim: testsuite: unify basic C compiler checks

Both bfin & cris ports test the C compiler to see if it works, but in
their own way.  Unify the checks in the common code so we can leverage
them in more ports in the future, and collapse the bfin & cris code.
sim/testsuite/bfin/allinsn.exp
sim/testsuite/cris/c/c.exp
sim/testsuite/lib/compilercheck.c [new file with mode: 0644]
sim/testsuite/lib/sim-defs.exp