aboutsummaryrefslogtreecommitdiff
path: root/gcc/function-tests.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-02-11 14:31:39 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-12 12:38:40 +0000
commitec0f9f7d88861198d9a94b51eb301567b6752fc5 (patch)
tree219c41f7d405e618cfbf35c2931bc233f61bc95c /gcc/function-tests.cc
parent3707c8feb1b68028d3967f16c9c4b89d86a14488 (diff)
downloadgcc-ec0f9f7d88861198d9a94b51eb301567b6752fc5.zip
gcc-ec0f9f7d88861198d9a94b51eb301567b6752fc5.tar.gz
gcc-ec0f9f7d88861198d9a94b51eb301567b6752fc5.tar.bz2
[Ada] Fix warning about generic subprograms withed but not referenced
For warnings about unreferenced entities and unused WITH clauses we typically exclude references outside of the extended main source unit. However, we include references to variables of formal private types to warn in the instance if the corresponding type is not a fully initialized type. This special case was unnecessarily applied to references to other entities of formal private types. In particular, we applied it to the references to generic functions, where the full initialization of the formal private type doesn't matter. As an extreme example, this special case was unnecessarily applied to "pragma Pure (Unchecked_Conversion)" in the runtime unit. gcc/ada/ * lib-xref.adb (Generate_Reference): Fix comment and implement it precisely.
Diffstat (limited to 'gcc/function-tests.cc')
0 files changed, 0 insertions, 0 deletions