From 79caa8c28d45303b85b0893ae60c08e860abcd7c Mon Sep 17 00:00:00 2001 From: sk4nz Date: Tue, 5 Apr 2022 12:45:31 +0200 Subject: [PATCH] Disable function inlining --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2c43baf..d0250e8 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.PHONY: clean build upload +.PHONY: clean build upload findfalses .SILENT: ifeq ($(shell uname),OpenBSD) @@ -42,6 +42,9 @@ CFLAGS+= -Werror -Wextra CFLAGS+= -Wno-unused-parameter CFLAGS+= -Wno-missing-field-initializers +# Fixes segfaults on clang's O2 O3 and gcc's O1 O2 +CFLAGS+= -fno-inline-functions + ### Octopus flags CCS= clang $(GCC) OPTIMIZATIONS= 0 1 2 3 fast s @@ -122,13 +125,14 @@ PROGS+= $(MPROGS) PROGS+= $(MSPROGS) PROGS+= $(LPROGS) PROGS+= $(LSPROGS) -PROGS+= $(MLPROGS) -PROGS+= $(MLSPROGS) +#PROGS+= $(MLPROGS) +#PROGS+= $(MLSPROGS) PROGS+= $(RCPROGS) PROGS+= $(RSCPROGS) PROGS+= $(RGROGS) PROGS+= $(RSGPROGS) + all: upload printf "\033[1mThank you for helping science today !\033[0m\n" @@ -139,6 +143,9 @@ upload: $(RESULTS_FILE) -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ octoupload@www.sk4.nz: +findfalses: $(RESULTS_FILE) + cat *.json | jq -c '.[].results[] | select(.[] == false)' | sort | uniq + build: $(PROGS) $(RESULTS_FILE): build