https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080

--- Comment #17 from andi at firstfloor dot org ---
This patch should fix it. Please confirm.


diff --git a/gcc/testsuite/lib/target-supports.exp
b/gcc/testsuite/lib/target-supports.exp
index f92f7f1af9c6..f58aed462971 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -12883,6 +12883,7 @@ proc check_effective_target_frame_pointer_for_non_leaf
{ } {
 # most trivial type.
 proc check_effective_target_tail_call { } {
     return [check_no_messages_and_pattern tail_call ",SIBCALL" rtl-expand {
+       // C++
        __attribute__((__noipa__)) void foo (void) { }
        __attribute__((__noipa__)) void bar (void) { foo(); }
     } {-O2 -fdump-rtl-expand-all}] ;# The "SIBCALL" note requires a detailed
dump.
@@ -12893,6 +12894,7 @@ proc check_effective_target_tail_call { } {
 # is supported at -O0.
 proc check_effective_target_musttail { } {
     return [check_no_messages_and_pattern musttail ",SIBCALL" rtl-expand {
+       // C++
        __attribute__((__noipa__)) void foo (void) { }
        __attribute__((__noipa__)) void bar (void) { [[gnu::musttail]] return
foo(); }
     } {-fdump-rtl-expand-all}] ;# The "SIBCALL" note requires a detailed dump.
@@ -12901,6 +12903,7 @@ proc check_effective_target_musttail { } {
 # Return 1 if the target can perform musttail for externals
 proc check_effective_target_external_musttail { } {
     return [check_no_messages_and_pattern external_musttail ",SIBCALL"
rtl-expand {
+       // C++
        extern __attribute__((__noipa__)) void foo (void);
        __attribute__((__noipa__)) void bar (void) { [[gnu::musttail]] return
foo(); }
     } {-fdump-rtl-expand-all}] ;# The "SIBCALL" note requires a detailed dump.

Reply via email to