diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-05-21 21:54:45 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-06-02 09:06:46 +0000 |
commit | bbb9c475bff9e3646542fa5273433abc0300cf6a (patch) | |
tree | bdd4dc384f1e2f1fcab16adab1c6b309d4607e2e /gcc/ada/gcc-interface/decl.cc | |
parent | da7cd04339b4db1bfdc4846eca2df04deca1a9b2 (diff) | |
download | gcc-bbb9c475bff9e3646542fa5273433abc0300cf6a.zip gcc-bbb9c475bff9e3646542fa5273433abc0300cf6a.tar.gz gcc-bbb9c475bff9e3646542fa5273433abc0300cf6a.tar.bz2 |
[Ada] Restore full generation of static dispatch tables with -gnatzr
The -gnatzr switch triggers the creation of distribution stubs for use
by the implementation of PolyORB. Now these stubs declare tagged types
and are generated at the very end of the analysis of compilation units,
after the static dispatch tables have been built, so these tables are
missing for the tagged types of the stubs.
Therefore this change defers the generation of static dispatch tables
for compilation units, which is the common case, until after the stubs
are (potentially) generated. For the other cases, in particular the
generic instances that are not compilation units, nothing is changed.
gcc/ada/
* exp_ch7.adb (Expand_N_Package_Body): Build static dispatch
tables only for units that are not compilation units, unless
they are generic instances. Do not push a scope for this.
(Expand_N_Package_Declaration): Build static dispatch tables
only for units that are both not compilation units and generic
instances.
* exp_disp.adb (Build_Static_Dispatch_Tables): Remove redundant
early return. Push a scope for package bodies.
* sem_ch10.adb: Add with and use clauses for Exp_Disp.
(Analyze_Compilation_Unit): Build static dispatch tables here.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
0 files changed, 0 insertions, 0 deletions