Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions emulation/rocjitsu/fuzz/execution/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ target_link_libraries(
)
rj_configure_target(rj_execution_fuzz_core GENERATED PRIVATE_INCLUDES WARNINGS)

# GCC 14 on ppc64le emits a false-positive -Wfree-nonheap-object inside
# std::vector<uint8_t>::push_back / _M_realloc_append when inlining
# random_input() at -O3 (GCC PR 115016). The warning fires in
# new_allocator.h on a pointer the compiler loses track of after
# reserve() + push_back(). Recheck: remove this block and build
# execution_fuzz_core.cpp on ppc64le at -O3 with the next GCC upgrade.
if(
CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "14"
AND CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64"
)
set_property(
SOURCE execution_fuzz_core.cpp
APPEND
PROPERTY COMPILE_OPTIONS -Wno-error=free-nonheap-object
)
endif()

add_executable(rj_execution_fuzz execution_fuzz_main.cpp)
target_link_libraries(
rj_execution_fuzz
Expand Down
Loading