diff options
| author | Mark Wielaard <[email protected]> | 2015-05-23 17:50:09 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-05-27 23:04:31 +0200 |
| commit | 712f3c8930a372345b94270ede67233f94a7263b (patch) | |
| tree | 1f7596b047dbb02dbfa99acd7651fc7d8f6a2089 /config | |
| parent | e69f59c6710c8861c2be95699e6e7806b1de2941 (diff) | |
config: Add -Wstack-usage=262144 (256K) warning check.
All library code now builds with this warning and -Werror enabled.
Add exceptions for most of the src tools (ldgeneric, readelf, nm, size,
strip, elflint, findtextrel, elfcmp objdump, ranlib, ar and unstrip).
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'config')
| -rw-r--r-- | config/ChangeLog | 4 | ||||
| -rw-r--r-- | config/eu.am | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index bff3b6dd..74379d4f 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2015-05-23 Mark Wielaard <[email protected]> + + * eu.am (AM_CFLAGS): Add -Wstack-usage=262144. + 2015-04-23 Max Filippov <[email protected]> * eu.am (DEFS.os): New variable. diff --git a/config/eu.am b/config/eu.am index 6103a3ef..e935335a 100644 --- a/config/eu.am +++ b/config/eu.am @@ -31,9 +31,12 @@ DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. + +# Warn about stack usage of more than 256K = 262144 bytes. AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \ $(if $($(*F)_no_Werror),,-Werror) \ $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ + $(if $($(*F)_no_Wstack_usage),,-Wstack-usage=262144) \ $($(*F)_CFLAGS) COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE)) |
