[Ada] Deconstruct unused Withed_Body filed of N_With_Clause node
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 16 Jul 2018 14:11:42 +0000 (14:11 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:11:42 +0000 (14:11 +0000)
commit7da8b07f30c465a46e41202d897d74ed2ceb8396
treee8d12816b594865ccbd13a5a87c3d42cd1d72e8a
parent1d6c2060053f0a3adc3a43831539f2f7bb9ce44e
[Ada] Deconstruct unused Withed_Body filed of N_With_Clause node

The Withed_Body field was added to N_With_Clause node to help the
Walk_Library_Items routine, which was created for the CodePeer backend
and later adopted by the GNATprove.

This routine is meant to traverse all library units, such that declarations
are visited before references. However, for complex units (in particular,
with generics and child packages) it never worked reliably and backends
developed their own workarounds. This patch deconstructs the field, as it
hasn't been used for years.

Semantics unaffected; no test provided.

2018-07-16  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sinfo.ads, sinfo.adb (Withed_Body): Remove.
(Set_Withed_Body): Remove.

From-SVN: r262721
gcc/ada/ChangeLog
gcc/ada/sinfo.adb
gcc/ada/sinfo.ads