linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] fix function or array address in conditionals
@ 2017-03-22 17:32 Luc Van Oostenryck
  2017-03-22 17:32 ` [PATCH 1/7] teach sparse about -Waddress Luc Van Oostenryck
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Luc Van Oostenryck @ 2017-03-22 17:32 UTC (permalink / raw)
  To: linux-sparse; +Cc: Luc Van Oostenryck, Christopher Li

This serie fixes the evaluation of function or array used
in conditionals which were not degenerated as pointers.
It also teaches sparse to now give some warnings for such uses
as it's a probable sign of an error.

This serie can also be found on github as:
	https://github.com/lucvoo/sparse fix-cond-address


Luc Van Oostenryck (7):
  teach sparse about -Waddress
  add is_func_type()
  warn if testing the address of a function
  add is_array_type()
  warn if testing the address of an array
  fix evaluation of a function or array symbol in conditionals
  fix is_scalar_type()

 evaluate.c                         |  9 ++++++++-
 lib.c                              |  2 ++
 lib.h                              |  1 +
 symbol.h                           | 16 ++++++++++++++--
 validation/cond-address-array.c    | 26 ++++++++++++++++++++++++++
 validation/cond-address-function.c | 18 ++++++++++++++++++
 validation/cond-address.c          | 14 ++++++++++++++
 7 files changed, 83 insertions(+), 3 deletions(-)
 create mode 100644 validation/cond-address-array.c
 create mode 100644 validation/cond-address-function.c
 create mode 100644 validation/cond-address.c

-- 
2.12.0


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

end of thread, other threads:[~2017-04-01 10:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-22 17:32 [PATCH 0/7] fix function or array address in conditionals Luc Van Oostenryck
2017-03-22 17:32 ` [PATCH 1/7] teach sparse about -Waddress Luc Van Oostenryck
2017-03-22 17:32 ` [PATCH 2/7] add is_func_type() Luc Van Oostenryck
2017-03-22 17:32 ` [PATCH 3/7] warn if testing the address of a function Luc Van Oostenryck
2017-03-22 17:32 ` [PATCH 4/7] add is_array_type() Luc Van Oostenryck
2017-03-22 17:32 ` [PATCH 5/7] warn if testing the address of an array Luc Van Oostenryck
2017-03-22 17:32 ` [PATCH 6/7] fix evaluation of a function or array symbol in conditionals Luc Van Oostenryck
2017-03-22 17:32 ` [PATCH 7/7] fix is_scalar_type() Luc Van Oostenryck
2017-04-01 10:36 ` [GIT PULL] fix function or array address in conditionals 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).