linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/12] fix and complete the evaluation of atomic builtins
@ 2020-10-19 16:12 Luc Van Oostenryck
  2020-10-19 16:12 ` [PATCH v2 01/12] builtin: add generic .args method Luc Van Oostenryck
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Luc Van Oostenryck @ 2020-10-19 16:12 UTC (permalink / raw)
  To: linux-sparse; +Cc: Ramsay Jones, Luc Van Oostenryck

Sparse knew about the __sync_*() builtin functions but without real
type checking and nothing about the more commonly used __atomic_*().

This series fixes this by adding the full type evaluation for both sets.

Changes since v1:
* fix comment about the first argument (patch 3)
* add a comment showng when the return type is set (patch 3).


Luc Van Oostenryck (12):
  builtin: add generic .args method
  builtin: add builtin type for volatile void *
  builtin: make eval_sync_compare_and_swap() more generic
  builtin: evaluate __sync_*_fetch*()
  builtin: fix evaluation of __sync_lock_release
  builtin: __sync_synchronize() too is variadic
  builtin: add predefines for __ATOMIC_RELAXED & friends
  builtin: add support for __atomic_add_fetch(), ...
  builtin: add support for others generic atomic builtins
  builtin: add builtin type: [volatile] pointer to bool
  builtin: add support for __atomic_clear()
  builtin: add support for remaining atomic builtins

 builtin.c                         | 114 +++++++++++++++++++++---------
 predefine.c                       |   7 ++
 symbol.c                          |   6 ++
 symbol.h                          |   2 +
 validation/builtin-atomic-clear.c |  15 ++++
 validation/builtin-sync-fetch.c   |  24 +++++++
 6 files changed, 136 insertions(+), 32 deletions(-)
 create mode 100644 validation/builtin-atomic-clear.c
 create mode 100644 validation/builtin-sync-fetch.c


base-commit: 5192dc1ff23dae8644480a89ada8ff420ebb674a
-- 
2.28.0


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

end of thread, other threads:[~2020-10-19 16:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-19 16:12 [PATCH v2 00/12] fix and complete the evaluation of atomic builtins Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 01/12] builtin: add generic .args method Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 02/12] builtin: add builtin type for volatile void * Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 03/12] builtin: make eval_sync_compare_and_swap() more generic Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 04/12] builtin: evaluate __sync_*_fetch*() Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 05/12] builtin: fix evaluation of __sync_lock_release Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 06/12] builtin: __sync_synchronize() too is variadic Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 07/12] builtin: add predefines for __ATOMIC_RELAXED & friends Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 08/12] builtin: add support for __atomic_add_fetch(), Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 09/12] builtin: add support for others generic atomic builtins Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 10/12] builtin: add builtin type: [volatile] pointer to bool Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 11/12] builtin: add support for __atomic_clear() Luc Van Oostenryck
2020-10-19 16:12 ` [PATCH v2 12/12] builtin: add support for remaining atomic builtins 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).