From 6de9d3c75f227a29d062a3a39bf23843428bfc87 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 25 Jan 2023 18:53:39 -0600 Subject: [PATCH] Update: Add fanalyzer build mode. I keep forgetting to run the GCC fanalyzer sanity checks to help catch problems before making a release. Add a formal mode in all of the build settings to make this processor easier and therefore easier to remember. Add missing -Wall to some of the files for the test mode. --- build/level_0/settings | 5 +++-- build/level_1/settings | 5 +++-- build/level_2/settings | 5 +++-- build/monolithic/settings | 5 +++-- level_3/byte_dump/data/build/settings | 3 ++- level_3/control/data/build/settings | 3 ++- level_3/controller/data/build/settings | 3 ++- level_3/fake/data/build/settings | 3 ++- level_3/firewall/data/build/settings | 3 ++- level_3/fss_basic_list_read/data/build/settings | 3 ++- level_3/fss_basic_read/data/build/settings | 3 ++- level_3/fss_embedded_list_read/data/build/settings | 3 ++- level_3/fss_extended_list_read/data/build/settings | 3 ++- level_3/fss_extended_read/data/build/settings | 3 ++- level_3/fss_identify/data/build/settings | 3 ++- level_3/fss_payload_read/data/build/settings | 3 ++- level_3/fss_write/data/build/settings | 3 ++- level_3/iki_read/data/build/settings | 3 ++- level_3/iki_write/data/build/settings | 3 ++- level_3/status_code/data/build/settings | 3 ++- level_3/utf8/data/build/settings | 3 ++- 21 files changed, 46 insertions(+), 25 deletions(-) diff --git a/build/level_0/settings b/build/level_0/settings index 1e00ef1..b4766b3 100644 --- a/build/level_0/settings +++ b/build/level_0/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes level level_threadless clang test +modes level level_threadless clang test fanalyzer modes_default level build_compiler gcc @@ -112,7 +112,8 @@ defines-level_threadless -D_di_pthread_support_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses flags-clang -Wno-logical-op-parentheses -flags-test -fstack-protector +flags-test -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-level -pthread flags_library -fPIC diff --git a/build/level_1/settings b/build/level_1/settings index a8f3210..8eb3033 100644 --- a/build/level_1/settings +++ b/build/level_1/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes level level_threadless clang test +modes level level_threadless clang test fanalyzer modes_default level build_compiler gcc @@ -76,7 +76,8 @@ defines-level_threadless -D_di_pthread_support_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses flags-clang -Wno-logical-op-parentheses -flags-test -fstack-protector +flags-test -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-level -pthread flags_library -fPIC diff --git a/build/level_2/settings b/build/level_2/settings index 39869bc..cd1eacd 100644 --- a/build/level_2/settings +++ b/build/level_2/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes level level_threadless clang test +modes level level_threadless clang test fanalyzer modes_default level build_compiler gcc @@ -75,7 +75,8 @@ defines-level_threadless -D_di_pthread_support_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses flags-clang -Wno-logical-op-parentheses -flags-test -fstack-protector +flags-test -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-level -pthread flags_library -fPIC diff --git a/build/monolithic/settings b/build/monolithic/settings index 533dc9e..dd01a5d 100644 --- a/build/monolithic/settings +++ b/build/monolithic/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes monolithic monolithic_threadless clang test +modes monolithic monolithic_threadless clang test fanalyzer modes_default monolithic build_compiler gcc @@ -161,7 +161,8 @@ defines-monolithic_threadless -D_di_pthread_support_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses flags-clang -Wno-logical-op-parentheses -flags-test -fstack-protector +flags-test -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-monolithic -pthread flags_library -fPIC diff --git a/level_3/byte_dump/data/build/settings b/level_3/byte_dump/data/build/settings index 8629a2a..efecc3d 100644 --- a/level_3/byte_dump/data/build/settings +++ b/level_3/byte_dump/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/control/data/build/settings b/level_3/control/data/build/settings index 197f7bb..16ce80c 100644 --- a/level_3/control/data/build/settings +++ b/level_3/control/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/controller/data/build/settings b/level_3/controller/data/build/settings index 0c09b9d..5b6702d 100644 --- a/level_3/controller/data/build/settings +++ b/level_3/controller/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test as_init +modes individual level monolithic clang test fanalyzer as_init modes_default monolithic build_compiler gcc @@ -73,6 +73,7 @@ defines-as_init -D_controller_as_init_ flags -O2 -z now -g -pthread -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fake/data/build/settings b/level_3/fake/data/build/settings index 8278641..dd65955 100644 --- a/level_3/fake/data/build/settings +++ b/level_3/fake/data/build/settings @@ -11,7 +11,7 @@ version_target minor process_pre process_pre.sh process_post process_post.sh -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -70,6 +70,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -pthread -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/firewall/data/build/settings b/level_3/firewall/data/build/settings index 595d314..9d779d3 100644 --- a/level_3/firewall/data/build/settings +++ b/level_3/firewall/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -62,6 +62,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -pthread -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_basic_list_read/data/build/settings b/level_3/fss_basic_list_read/data/build/settings index 78de68c..e1ae7ba 100644 --- a/level_3/fss_basic_list_read/data/build/settings +++ b/level_3/fss_basic_list_read/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_basic_read/data/build/settings b/level_3/fss_basic_read/data/build/settings index af74896..b1e1c6e 100644 --- a/level_3/fss_basic_read/data/build/settings +++ b/level_3/fss_basic_read/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_embedded_list_read/data/build/settings b/level_3/fss_embedded_list_read/data/build/settings index 411a309..9221107 100644 --- a/level_3/fss_embedded_list_read/data/build/settings +++ b/level_3/fss_embedded_list_read/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -51,6 +51,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_extended_list_read/data/build/settings b/level_3/fss_extended_list_read/data/build/settings index cf22274..536dfe6 100644 --- a/level_3/fss_extended_list_read/data/build/settings +++ b/level_3/fss_extended_list_read/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -51,6 +51,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_extended_read/data/build/settings b/level_3/fss_extended_read/data/build/settings index f47eae7..f93619d 100644 --- a/level_3/fss_extended_read/data/build/settings +++ b/level_3/fss_extended_read/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_identify/data/build/settings b/level_3/fss_identify/data/build/settings index 1528cb4..ea53a89 100644 --- a/level_3/fss_identify/data/build/settings +++ b/level_3/fss_identify/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_payload_read/data/build/settings b/level_3/fss_payload_read/data/build/settings index 1fdb710..ae17552 100644 --- a/level_3/fss_payload_read/data/build/settings +++ b/level_3/fss_payload_read/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/fss_write/data/build/settings b/level_3/fss_write/data/build/settings index 302010f..f7a0569 100644 --- a/level_3/fss_write/data/build/settings +++ b/level_3/fss_write/data/build/settings @@ -11,7 +11,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -62,6 +62,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/iki_read/data/build/settings b/level_3/iki_read/data/build/settings index dad8a18..017142c 100644 --- a/level_3/iki_read/data/build/settings +++ b/level_3/iki_read/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -60,6 +60,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/iki_write/data/build/settings b/level_3/iki_write/data/build/settings index 7cb04b6..2a723dd 100644 --- a/level_3/iki_write/data/build/settings +++ b/level_3/iki_write/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -59,6 +59,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC flags_object -fPIC diff --git a/level_3/status_code/data/build/settings b/level_3/status_code/data/build/settings index 819de0b..0b9dc9e 100644 --- a/level_3/status_code/data/build/settings +++ b/level_3/status_code/data/build/settings @@ -11,7 +11,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -63,6 +63,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC diff --git a/level_3/utf8/data/build/settings b/level_3/utf8/data/build/settings index 8d0ae5e..96b8471 100644 --- a/level_3/utf8/data/build/settings +++ b/level_3/utf8/data/build/settings @@ -8,7 +8,7 @@ version_micro 0 version_file micro version_target minor -modes individual level monolithic clang test +modes individual level monolithic clang test fanalyzer modes_default monolithic build_compiler gcc @@ -61,6 +61,7 @@ defines -D_libcap_legacy_only_ -D_pthread_attr_unsupported_ -D_pthread_sigqueue_ flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags-clang -Wno-logical-op-parentheses flags-test -O0 -fstack-protector -Wall +flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ flags_library -fPIC -- 1.8.3.1