testsuite: Add tail_call effective target
commit7dde02e9efc9d7ecd87814f4c8ee803ef005a7fd
authorHans-Peter Nilsson <hp@axis.com>
Mon, 6 Mar 2023 17:00:47 +0000 (6 18:00 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Tue, 7 Mar 2023 01:21:47 +0000 (7 02:21 +0100)
treef04d98687ef2c6952cc5b43b371868e53ebe5915
parent3dd4ada43704115b91e496de2dfbd925443450bc
testsuite: Add tail_call effective target

The RTL "expand" dump is the first RTL dump, and it also appears to be
the earliest trace of the target having implemented sibcalls.
Including the "," in the pattern searched for, to try and avoid
possible false matches, but there doesn't appear to be any identifiers
or target names nearby so this is just belts and suspenders.  Using
"tail_call" as a shorter and more commonly used term than a derivative
of "sibling calls", and expecting only gcc folks to have heard of
"sibcalls".

* lib/target-supports.exp (check_effective_target_tail_call): New.
gcc/testsuite/lib/target-supports.exp