linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fix evaluation of __sync_{bool,val}_compare_and_swap()
@ 2020-08-07 20:45 Luc Van Oostenryck
  2020-08-07 20:45 ` [PATCH 1/3] add testcases for __sync_{bool,val}_compare_and_swap() Luc Van Oostenryck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luc Van Oostenryck @ 2020-08-07 20:45 UTC (permalink / raw)
  To: linux-sparse; +Cc: Luc Van Oostenryck

The builtins __sync_{bool,val}_compare_and_swap() were known
to sparse but the type of the arguments were not checked, and
more importantly, the return type was always 'int'.

This series adds real support for these polymorphic builtins.


Luc Van Oostenryck (3):
  add testcases for __sync_{bool,val}_compare_and_swap()
  export evaluate_arguments()
  add builtin support for __sync_{bool,val}_compare_and_swap()

 builtin.c                     | 60 +++++++++++++++++++++++++++++++++--
 evaluate.c                    |  7 ++--
 evaluate.h                    |  7 ++++
 validation/builtin-sync-cas.c | 25 +++++++++++++++
 4 files changed, 93 insertions(+), 6 deletions(-)
 create mode 100644 validation/builtin-sync-cas.c


base-commit: e1578773182e8f69c3a0cd8add8dfbe7561a8240
-- 
2.28.0


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

end of thread, other threads:[~2020-08-07 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-07 20:45 [PATCH 0/3] fix evaluation of __sync_{bool,val}_compare_and_swap() Luc Van Oostenryck
2020-08-07 20:45 ` [PATCH 1/3] add testcases for __sync_{bool,val}_compare_and_swap() Luc Van Oostenryck
2020-08-07 20:45 ` [PATCH 2/3] export evaluate_arguments() Luc Van Oostenryck
2020-08-07 20:45 ` [PATCH 3/3] add builtin support for __sync_{bool,val}_compare_and_swap() 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).