builtins expansion
Status from this message: Applied in sparse-next.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 1 replyApplied
- v13 patches 8 repliesSuperseded
Changes in v2 from the cover letter
- simpler and more generic way to share the eval/expand ops thanks to Christopher Li
- small changes in the log messages
- change the variable name in the bswap expansion method.
- small reorganization of the test files
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | move evaluation & expansion of builtins in a separate fileMakefile builtin.c expand.c +3 more | +248 | 0 replies | |
| 2/3 | let identical symbols share their evaluate/expand methodsparse.c | +3 | 0 replies | |
| 3/3 | expand __builtin_bswap*() with constant argsbuiltin.c lib.c lib.h +3 more | +116 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Christopher Li |
|---|---|
| 1/3 | |
| 2/3 | Originally-by |
| 3/3 | Based-on-patch-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] builtins expansion
This serie solves the problem of the expansion of some builtins like __builtin_bswap16() which gcc consider as an integer constant expression when the arg is itself an integer constant. Such builtins are used as such in the kernel and their non-expansion create undesirable warnings from sparse.
This serie needs to be applied on top of Johannes Berg's patch concerning the same problem and the tests depend on the testsuite extensions posted previously.
Change since v1:
- simpler and more generic way to share the eval/expand ops thanks to Christopher Li
- small changes in the log messages
- change the variable name in the bswap expansion method.
- small reorganization of the test files
Luc Van Oostenryck (3):
move evaluation & expansion of builtins in a separate file let identical symbols share their evaluate/expand methods expand __builtin_bswap*() with constant args
Makefile | 1 +
builtin.c | 240 +++++++++++++++++++++
expand.c | 24 +--
expand.h | 34 +++
lib.c | 35 +--
lib.h | 5 +
parse.c | 4 +-
symbol.c | 160 +-------------
symbol.h | 3 +-
validation/builtin-args-checking.c | 45 ++++
...in-constant-eval.c => builtin-bswap-constant.c} | 2 +-
validation/builtin-bswap-variable.c | 32 +++
12 files changed, 367 insertions(+), 218 deletions(-)
create mode 100644 builtin.c
create mode 100644 expand.h
create mode 100644 validation/builtin-args-checking.c
rename validation/{builtin-constant-eval.c => builtin-bswap-constant.c} (93%)
create mode 100644 validation/builtin-bswap-variable.cSignature · 1 line
2.11.0