On 4/24/25 12:22 PM, Dimitar Dimitrov wrote:
Testcases for musttail call optimization fail on pru-unknown-elf:
   FAIL: c-c++-common/musttail14.c  -std=gnu++17 (test for excess errors)
   Excess errors:
   .../gcc/gcc/testsuite/c-c++-common/musttail14.c:37:14: error: cannot 
tail-call: caller uses sjlj exceptions

Silence these errors by disabling the tests if target uses SJLJ for
implementing exceptions.  Use a new effective target check for this.

Ensured that test results with and without this patch for
x86_64-pc-linux-gnu are the same.

Ok for trunk?

gcc/testsuite/ChangeLog:

        * c-c++-common/musttail14.c: Disable test if effective target
        using_sjlj_exceptions.
        * c-c++-common/musttail22.c: Ditto.
        * g++.dg/musttail8.C: Ditto.
        * g++.dg/musttail9.C: Ditto.
        * g++.dg/opt/musttail3.C: Ditto.
        * g++.dg/opt/musttail4.C: Ditto.
        * g++.dg/opt/musttail5.C: Ditto.
        * g++.dg/opt/pr119613.C: Ditto.
        * lib/target-supports.exp
        (check_effective_target_using_sjlj_exceptions): New check.
OK, but please make sure to document the new dejagnu target test.

Jeff

Reply via email to