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

--- Comment #1 from Andi Kleen <andi-gcc at firstfloor dot org> ---
Yes it is known that powerpc (or some flavors of it) has poor tail call support
due to ABI limitations.

Just need to figure out how to skip the test. I guess it needs a better test in
check_effective_target_tail_call



Maybe this patch will help. The drawback is that it will disable any tail call
testing on these targets however.

diff --git a/gcc/testsuite/lib/target-supports.exp
b/gcc/testsuite/lib/target-supports.exp
index d368251ef9a4..eaa9d1642194 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -12739,7 +12739,8 @@ 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 {
-       __attribute__((__noipa__)) void foo (void) { }
+       // C++
+       extern __attribute__((__noipa__)) void foo (void);
        __attribute__((__noipa__)) void bar (void) { foo(); }
     } {-O2 -fdump-rtl-expand-all}] ;# The "SIBCALL" note requires a detailed
dump.
 }

Reply via email to