aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2022-12-12 15:31:05 -0500
committerMarc Poulhiès <poulhies@adacore.com>2023-01-05 15:29:57 +0100
commit46924ad780665721a51306a646f7f601c359ba4c (patch)
treea4ea9c820d81bf9b1120dff93fc44d1655cd6d28 /gcc/rust/resolve
parenta24888388bab339cf8a8726ca67a0b4947a2d9ce (diff)
downloadgcc-46924ad780665721a51306a646f7f601c359ba4c.zip
gcc-46924ad780665721a51306a646f7f601c359ba4c.tar.gz
gcc-46924ad780665721a51306a646f7f601c359ba4c.tar.bz2
ada: Fix incorrect warning about unreferenced packed arrays
This patch fixes a bug in which a reference to a renaming of a component of a packed array was not counted as a reference, and thus caused incorrect warnings about unreferenced objects. gcc/ada/ * sem_ch5.adb (Analyze_Assignment): Fix the bug by checking Original_Node. The renaming might be elsewhere, but the (original) reference is right here. * errout.adb: Remove pragma Unreferenced which was added because of the above bug. * einfo.ads: Misc cleanup. * lib.adb: Likewise. * lib.ads: Likewise.
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions