]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Avoid xref on out params of TSS
authorBob Duff <duff@adacore.com>
Tue, 7 Nov 2023 12:37:51 +0000 (07:37 -0500)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 9 Jan 2024 13:13:29 +0000 (14:13 +0100)
commit3b9d4258ea755c04f7a7ac1c5e054c098f4bbc93
treee7abb9e3f1828d66014bf9de80986c458f424507
parentbfacdd11d992c47771574470987ae8954a5b12fd
ada: Avoid xref on out params of TSS

For an actual passed as an 'in out' parameter of a type support
subprogram such as deep finalize, do not count it as a read
reference of the actual. Clearly these should not count.
Furthermore, counting them causes different warnings in -gnatc
mode compared to normal mode, because the calls only exist in
normal mode, which would disable the warnings. Such warnings now
occur in both modes, instead of just with -gnatc.

gcc/ada/

* lib-xref.adb (Generate_Reference): Do not count it as a read
reference if we're calling a TSS.
gcc/ada/lib-xref.adb