testsuite: Add support for Rust and Modula-2 effective target tests
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Dec 2022 12:57:43 +0000 (13:57 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 15 Dec 2022 12:57:43 +0000 (13:57 +0100)
commit9cf9f3c7629d768d940d9f87cddcd616bb0449e0
treea05e20b308db44b7aae40d4b71af21e1f961027b
parent32582c190b91287a0d1239162333f5ad0ac81e72
testsuite: Add support for Rust and Modula-2 effective target tests

This patch allows magic comments also for Rust and Modula-2
for effective target tests etc. and fixes up the Assembly entry
- it is a glob, so /* Assembly can match /whatever Assembly and
not just /* Assembly.

Tested on x86_64-linux with
make check-g++ RUNTESTFLAGS=i386.exp=pr35513*
and verifying it still uses *.S extension for the property_1_needed
effective target test.

2022-12-15  Jakub Jelinek  <jakub@redhat.com>

* lib/target-supports.exp (check_compile): Add support for
Rust and Modula-2.  Use \* rather than * for /* comment for
Assembly.
gcc/testsuite/lib/target-supports.exp