[Ada] Fix type mismatch warnings during LTO bootstrap #4
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 18 Feb 2021 08:50:29 +0000 (09:50 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 7 May 2021 09:29:15 +0000 (05:29 -0400)
commitd3ab01f64a7db48239e41eea6740892cb3167dfd
tree2cd6d003d3a3ded5807f1ab465e762581b6642d8
parenta6d3b4990f9db77e2f6f7fa15d17b22ecea46e74
[Ada] Fix type mismatch warnings during LTO bootstrap #4

gcc/ada/

* libgnat/s-stalib.ads (Exception_Data): Mark components as aliased.
* stand.ads (Standard_Entity_Type): Enhance comments.
* cstand.adb (Make_Component): Rename into...
(Make_Aliased_Component): ...this; set Is_Aliased and Is_Independent
flags on the component.
(Create_Standard): Adjust the types of the component of the record
Standard_Exception_Type and mark them as aliased.
* exp_ch11.adb (Expand_N_Exception_Declaration): Use OK
conversion to Standard_Address for Full_Name component, except
in CodePeer_Mode (set it to 0).
* exp_prag.adb (Expand_Pragma_Import_Or_Interface): Likewise.
* raise.h (struct Exception_Data): Change the type of Full_Name,
HTable_Ptr and Foreign_Data.
gcc/ada/cstand.adb
gcc/ada/exp_ch11.adb
gcc/ada/exp_prag.adb
gcc/ada/libgnat/s-stalib.ads
gcc/ada/raise.h
gcc/ada/stand.ads