]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR116080: Fix tail call dejagnu checks
authorAndi Kleen <ak@gcc.gnu.org>
Thu, 25 Jul 2024 03:18:56 +0000 (20:18 -0700)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 Jul 2024 17:06:00 +0000 (19:06 +0200)
commita2b05b0db407865d8970f1b329ab1f0cb9c529ea
tree9d72f10017093c65dec420c43bd26ba5a6a0b34f
parentc7197b5cd774f575f10b98e31264634d368b1aaf
PR116080: Fix tail call dejagnu checks

- Run the target_effective tail_call checks without optimization to
match the actual test cases.
- Add an extra check for external tail calls to handle targets like
powerpc that cannot tail call between different object files.
This one will also cover templates.

gcc/testsuite/ChangeLog:

PR testsuite/116080
* g++.dg/musttail10.C: Use external tail call target check.
* g++.dg/musttail6.C: Dito.
* lib/target-supports.exp: Add external_tail_call. Disable
optimization for tail call checks.
gcc/testsuite/g++.dg/musttail10.C
gcc/testsuite/g++.dg/musttail6.C
gcc/testsuite/lib/target-supports.exp