From 730c3efceb4fcbb234a0fcdb0c0d299b8670fec6 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 14 Oct 2009 13:30:44 -0700 Subject: [PATCH] PR10750 cont'd: Build with -Wframe-larger-than=512 * buildrun.cxx (compile_pass): Add the warning to limit the frame size even lower than the Kbuild default (only works for gcc 4.4+). --- buildrun.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildrun.cxx b/buildrun.cxx index c5c44f13a..bbf678acf 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -201,6 +201,9 @@ compile_pass (systemtap_session& s) // o << "CFLAGS += -fno-unit-at-a-time" << endl; + // 512 bytes should be enough for anybody + o << "EXTRA_CFLAGS += $(call cc-option,-Wframe-larger-than=512)" << endl; + // Assumes linux 2.6 kbuild o << "EXTRA_CFLAGS += -Wno-unused -Werror" << endl; #if CHECK_POINTER_ARITH_PR5947 -- 2.43.5