Make use of new attribute access infrastructure in -Wuninitialized (PR 50584).
authorMartin Sebor <msebor@redhat.com>
Sat, 19 Sep 2020 23:30:32 +0000 (17:30 -0600)
committerMartin Sebor <msebor@redhat.com>
Sat, 19 Sep 2020 23:34:31 +0000 (17:34 -0600)
commit72be80e47d059f33ff11f5015b9494c42b4e0a12
treee444c5fd806d4379be669a83e97219947800d84c
parent6450f07388f9fe575a489c9309c36012b17b88b0
Make use of new attribute access infrastructure in -Wuninitialized (PR 50584).

gcc/ChangeLog:

* tree-ssa-uninit.c (maybe_warn_pass_by_reference): Handle attribute
access internal representation of arrays.

gcc/testsuite/ChangeLog:

* gcc.dg/uninit-37.c: New test.
gcc/testsuite/gcc.dg/uninit-37.c [new file with mode: 0644]
gcc/tree-ssa-uninit.c