Skip to content

Commit

Permalink
gcov: Prevent pile insertion recursion
Browse files Browse the repository at this point in the history
Signed-off-by: wangmingrong1 <[email protected]>
  • Loading branch information
W-M-R authored and jerpelea committed Dec 19, 2024
1 parent 2ffe028 commit 1c0019c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/libbuiltin/libgcc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ endif()

if(CONFIG_COVERAGE_MINI AND CONFIG_ARCH_TOOLCHAIN_GCC)
nuttx_add_system_library(libcoverage)
target_compile_options(libcoverage PRIVATE -fno-profile-arcs
-fno-test-coverage)
target_sources(libcoverage PRIVATE gcov.c)
endif()
7 changes: 7 additions & 0 deletions libs/libbuiltin/libgcc/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ endif

ifeq ($(CONFIG_COVERAGE_MINI)$(CONFIG_ARCH_TOOLCHAIN_GCC),yy)
CSRCS += gcov.c

GCOV_CFLAGS += -fno-profile-arcs -fno-test-coverage
GCOV_CFLAGS += -fno-stack-protector

bin/gcov.o: CFLAGS += $(GCOV_CFLAGS)
kbin/gcov.o: CFLAGS += $(GCOV_CFLAGS)

endif

DEPPATH += --dep-path libgcc
Expand Down

0 comments on commit 1c0019c

Please sign in to comment.