]> sourceware.org Git - systemtap.git/commitdiff
PR10750 cont'd: Build with -Wframe-larger-than=512
authorJosh Stone <jistone@redhat.com>
Wed, 14 Oct 2009 20:30:44 +0000 (13:30 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 21 Oct 2009 16:08:07 +0000 (09:08 -0700)
* 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

index c5c44f13aa79fd0773bbc8c2d30dfc6c6a5b156c..bbf678acf2df3b3455f78f55cb8ef48fcdf36753 100644 (file)
@@ -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
This page took 0.030569 seconds and 5 git commands to generate.