llvm-test-suite icon indicating copy to clipboard operation
llvm-test-suite copied to clipboard

Fix GCC frame-address Regression test failure on Linux with clang 18.1.8

Open violet73 opened this issue 6 months ago • 0 comments

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

violet73 avatar Jul 30 '24 08:07 violet73