]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
testsuite: sframebt: Use -fno-optimize-sibling-calls
authorWeimin Pan <weimin.pan@oracle.com>
Sat, 11 Feb 2023 00:00:50 +0000 (16:00 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Thu, 25 Apr 2024 22:03:50 +0000 (15:03 -0700)
commited7b28948ee805dac7ba00eeab7e149a1f923970
tree9319cf71b17748f37899481d79d902db1ddf0cd4
parent6ec0a1f8f48fb8eceb6281d579ddd4bb083b2411
testsuite: sframebt: Use -fno-optimize-sibling-calls

With -O2 and above, the compiler performs a sibling call optimization as
main () and it's callee have compatible stack usage.  As for generating
stack traces though, there is nothing that any stack trace or unwind
format can do here.  Use -fno-optimize-sibling-calls to at least ensure
the testcase checkes for the complete stack trace.

ChangeLog:

* libsframe/testsuite/libsframe.unwind/backtrace-fp-attr-1.lk:
Use -fno-optimize-sibling-calls.
* libsframe/testsuite/libsframe.unwind/backtrace-fp-attr-2.lk:
Likewise.
libsframe/testsuite/libsframe.unwind/backtrace-fp-attr-1.lk
libsframe/testsuite/libsframe.unwind/backtrace-fp-attr-2.lk