https://gcc.gnu.org/g:5258a4234dcf0009eef9d11ee4a3241cfcd60c8b

commit r16-8088-g5258a4234dcf0009eef9d11ee4a3241cfcd60c8b
Author: Andrew Pinski <[email protected]>
Date:   Fri Mar 13 17:09:49 2026 -0700

    testsuite: make the prevent tailcall in pr17377.c more robust
    
    With improvements (not actually implemented yet but shows up with LLVM),
    the call in pr17377.c to prevent a tail call does not work. So
    to make it more robust, we need to mark the variable x as being volatile.
    
    Pushed as obvious after testing on x86_64-linux-gnu.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.c-torture/execute/pr17377.c: Mark global variable x
            as volatile.
    
    Signed-off-by: Andrew Pinski <[email protected]>

Diff:
---
 gcc/testsuite/gcc.c-torture/execute/pr17377.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.c-torture/execute/pr17377.c 
b/gcc/testsuite/gcc.c-torture/execute/pr17377.c
index 9b2ce078e01a..408077770509 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr17377.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr17377.c
@@ -28,7 +28,7 @@ f (int i)
   return 0;
 }
 
-int x;
+volatile int x;
 
 void *y (int i) __attribute__ ((__noinline__,__noclone__));
 void *

Reply via email to