Bug 86172 (Wnull-dereference) - [meta-bug] issues with -Wnull-dereference
Summary: [meta-bug] issues with -Wnull-dereference
Status: NEW
Alias: Wnull-dereference
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic, meta-bug
Depends on: 30368 71157 77432 84316 86176 95589 96554 105580 106434 108860 109568 109571 109856 84315 86177 89202 90037 90264 94867 95473 112421
Blocks: Wall-Wextra
  Show dependency treegraph
 
Reported: 2018-06-16 01:36 UTC by Eric Gallager
Modified: 2024-03-13 04:01 UTC (History)
7 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-10-20 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Gallager 2018-06-16 01:36:08 UTC
Split off from bug 16351
Comment 1 Eric Gallager 2018-09-18 03:03:44 UTC
cc-ing relevant people
Comment 2 Eric Gallager 2018-10-08 13:54:35 UTC
came up on gcc-help here: https://gcc.gnu.org/ml/gcc-help/2018-10/msg00051.html
Comment 3 Eric Gallager 2018-10-19 23:53:54 UTC
At least some of these prevent enabling -Wnull-dereference with -Wextra.
Comment 4 Segher Boessenkool 2018-10-20 17:41:19 UTC
At least some of what?  I don't follow.  _Is_ there anything that prevents
us from enabling -Wnull-dereference at -Wextra or -Wall or even by default?
Does it have false positives?
Comment 5 Eric Gallager 2018-10-20 20:20:37 UTC
(In reply to Segher Boessenkool from comment #4)
> At least some of what?  I don't follow.

The bugs that this one depends upon.

> _Is_ there anything that prevents us from enabling -Wnull-dereference at
> -Wextra or -Wall or even by default?

It was previously in -Wall, but it was removed from it in r226751 because it broke bootstrap, see bug 16351 comment 35. 

> Does it have false positives?

Bug 71157 is a false positive.
Comment 6 Segher Boessenkool 2018-10-20 21:31:01 UTC
Thanks for the information Eric.

Will it help if the option is split into -Wnull-dereference and
-Wmaybe-null-dereference (as suggested before)?
Comment 7 Eric Gallager 2021-08-13 08:17:20 UTC
(In reply to Segher Boessenkool from comment #6)
> Thanks for the information Eric.
> 
> Will it help if the option is split into -Wnull-dereference and
> -Wmaybe-null-dereference (as suggested before)?

This discussion is now in bug 96554