llvm-test-suite
llvm-test-suite copied to clipboard
Fix GCC frame-address Regression test failure on Linux with clang 18.1.8
SingleSource/Regression/C/gcc-c-torture/execute/frame-address.c fails on Linux/X86_64 with the following error: Abort
Even though the code in frame-address.c tries to prevent tail call optimizations, clang still elides stack frames when O3 is enabled.
This patch uses volatile function pointers to prevent the stack frame elision in frame-address.c