linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] predefine: fix multi-token predefine
@ 2020-07-05 13:11 Luc Van Oostenryck
  2020-07-05 13:11 ` [PATCH 1/2] predefine: add testcase for multi-token predefines Luc Van Oostenryck
  2020-07-05 13:11 ` [PATCH 2/2] predefine: fix multi-token predefine Luc Van Oostenryck
  0 siblings, 2 replies; 3+ messages in thread
From: Luc Van Oostenryck @ 2020-07-05 13:11 UTC (permalink / raw)
  To: linux-sparse; +Cc: Luc Van Oostenryck

The function predefine() and its variants are only valid
if they define a single-token value but predefine_min()
will produce a multi-token value if the type is signed.
    
This series contains a fix and a tescase for this.


Luc Van Oostenryck (2):
  predefine: add testcase for multi-token predefines
  predefine: fix multi-token predefine

 predefine.c                            | 2 +-
 validation/preprocessor/predef-token.c | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 validation/preprocessor/predef-token.c


base-commit: 88c90bb192663bfc2dc54782c316e39e6fe26e1d
-- 
2.27.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-05 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-05 13:11 [PATCH 0/2] predefine: fix multi-token predefine Luc Van Oostenryck
2020-07-05 13:11 ` [PATCH 1/2] predefine: add testcase for multi-token predefines Luc Van Oostenryck
2020-07-05 13:11 ` [PATCH 2/2] predefine: fix multi-token predefine Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).