aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dse.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2021-04-05 10:51:46 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2021-04-05 10:51:46 -0400
commit7d8f4240c94e2e7643ac13cda1fdd0bb6ca3a3fb (patch)
tree677b9b95da3c33c922a3c26ddfba0c2e2e131ebd /gcc/tree-ssa-dse.c
parent69b66ff02353a87585329bb3cf4ac20d6dee1b16 (diff)
downloadgcc-7d8f4240c94e2e7643ac13cda1fdd0bb6ca3a3fb.zip
gcc-7d8f4240c94e2e7643ac13cda1fdd0bb6ca3a3fb.tar.gz
gcc-7d8f4240c94e2e7643ac13cda1fdd0bb6ca3a3fb.tar.bz2
analyzer: fix ICE on zero-arg calls passed to __attribute__((nonnull)) [PR 99906]
gcc/analyzer/ChangeLog: PR analyzer/99906 * analyzer.cc (maybe_reconstruct_from_def_stmt): Fix NULL dereference on calls with zero arguments. * sm-malloc.cc (malloc_state_machine::on_stmt): When handling __attribute__((nonnull)), only call get_diagnostic_tree if the result will be used. gcc/testsuite/ChangeLog: PR analyzer/99906 * gcc.dg/analyzer/pr99906.c: New test.
Diffstat (limited to 'gcc/tree-ssa-dse.c')
0 files changed, 0 insertions, 0 deletions