diff options
author | Tor Egge <Tor.Egge@yahooinc.com> | 2023-04-12 15:57:59 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@yahooinc.com> | 2023-04-12 15:57:59 +0200 |
commit | 46446033423c45016c5556665433b4f18bb986ec (patch) | |
tree | 36fa458eb099e9c3dcf54ef9c4e0a64305a52d83 /vespalib/src/tests/signalhandler | |
parent | 26f8880777051c8729c7032db2edff71b959a34b (diff) |
Don't convert a call to a jump when this breaks reporting of
stack frames.
Diffstat (limited to 'vespalib/src/tests/signalhandler')
-rw-r--r-- | vespalib/src/tests/signalhandler/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vespalib/src/tests/signalhandler/CMakeLists.txt b/vespalib/src/tests/signalhandler/CMakeLists.txt index 4f78eb2e82d..88be14f994f 100644 --- a/vespalib/src/tests/signalhandler/CMakeLists.txt +++ b/vespalib/src/tests/signalhandler/CMakeLists.txt @@ -5,6 +5,11 @@ vespa_add_library(vespalib_signalhandler_test_my_shared_library TEST DEPENDS vespalib ) + +# Don't convert call to jump when returning a value from a function with +# a compatible stack. +set_source_files_properties(my_shared_library.cpp PROPERTIES COMPILE_OPTIONS "-fno-optimize-sibling-calls") + vespa_add_executable(vespalib_signalhandler_test_app TEST SOURCES signalhandler_test.cpp |