[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] [PATCH] tests/Makefile: Add support for -D_FORTIFY_SOURCE

From: Yichun Zhang (agentzh)
Subject: [Tinycc-devel] [PATCH] tests/Makefile: Add support for -D_FORTIFY_SOURCE=N
Date: Wed, 5 Dec 2018 22:58:28 -0800

The test scaffold originally filters out the optimization options (-On),
which would break gcc's -D_FORTIFY_SOURCE=N. Now we let them pass

This is useful in detecting memory issues when running the official test
 tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Makefile b/tests/Makefile
index 5f6777d..9911f7e 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -5,7 +5,7 @@
 TOP = ..
 include $(TOP)/Makefile
 VPATH = $(TOPSRC)/tests $(TOPSRC) $(TOP)
-CFLAGS := $(filter-out -W% -g% -O%,$(CFLAGS)) -I$(TOPSRC) $(LDFLAGS)
+CFLAGS := $(filter-out -W% -g%,$(CFLAGS)) -I$(TOPSRC) $(LDFLAGS)
 # what tests to run
 TESTS = \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]