author | Alberto Bertogli
<albertito@blitiri.com.ar> 2025-09-06 11:54:59 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2025-09-06 11:54:59 UTC |
parent | c1ffbbca6640e5e877a3fdd3b3da13361028bba7 |
tests/generated/Makefile | +6 | -0 |
diff --git a/tests/generated/Makefile b/tests/generated/Makefile index 05e7498..7018801 100644 --- a/tests/generated/Makefile +++ b/tests/generated/Makefile @@ -11,6 +11,12 @@ ifdef PROFILE ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage endif +# Note we pass -O0 (after $CFLAGS) to explicitly disable optimizations; +# otherwise, the compiler may inline or optimize away some of the functions +# under test, causing false positives. +# See https://bugs.debian.org/1097184 for an example. +ALL_CFLAGS += -O0 + ifneq ($(V), 1) NICE_CC = @echo " CC $@"; $(CC) NICE_RUN = @echo " RUN $<"; \