Skip to content

Simplify C/C++ compiler flags

Ian Rogers bpf linux-perf-users lkml llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6perf bpf-loader: Remove unneeded diagnostic pragmatools/perf/util/bpf-loader.c+0 -31 reply
2/6perf build: Don't always set -funwind-tables and -ggdb3tools/perf/Makefile.config+3 -41 reply
3/6perf build: Add Wextra for C++ compilationtools/perf/Makefile.config tools/perf/util/c++/Build+4 -11 reply
4/6perf build: Disable fewer flex warningstools/perf/util/Build+3 -78 replies
5/6perf build: Disable fewer bison warningstools/perf/util/Build tools/perf/util/bpf-filter.y tools/perf/util/expr.y +2 more+12 -40 replies
6/6perf build: Remove -Wno-redundant-decls in 2 casestools/perf/util/Build tools/perf/util/parse-events.c+0 -30 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchJames Clark
1/6A-b
2/6A-b
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/6] Simplify C/C++ compiler flags

Some compiler flags have been brought forward in the perf build but without any explicit need, for example -ggdb3. Some warnings were disabled but the underlying warning could be addressed. Try to reduce the number of compiler options used in the perf build, to enable Wextra for C++, and to disable fewer compiler warnings.

Ian Rogers (6):
perf bpf-loader: Remove unneeded diagnostic pragma perf build: Don't always set -funwind-tables and -ggdb3 perf build: Add Wextra for C++ compilation perf build: Disable fewer flex warnings
perf build: Disable fewer bison warnings
perf build: Remove -Wno-redundant-decls in 2 cases

 tools/perf/Makefile.config     |  9 ++++-----
 tools/perf/util/Build          | 18 ++++++------------
 tools/perf/util/bpf-filter.y   |  2 ++
 tools/perf/util/bpf-loader.c   |  3 ---
 tools/perf/util/c++/Build      |  3 +++
 tools/perf/util/expr.y         |  4 +++-
 tools/perf/util/parse-events.c |  1 -
 tools/perf/util/parse-events.y |  1 +
 tools/perf/util/pmu.y          |  3 +++
 9 files changed, 22 insertions(+), 22 deletions(-)
Signature · 1 line
2.41.0.487.g6d72f3e995-goog