diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2024-10-09 21:31:13 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2024-10-09 23:44:23 +0200 |
commit | 7ac96b05cfa7478706dce175e7c7b09cbf559451 (patch) | |
tree | ef09a908b6b64bc46ce0fe76049cb402112573c3 /gcc/tree-ssa-phiopt.cc | |
parent | 820cd5266e714750888dd2cdf4793cde8741c1db (diff) | |
download | gcc-7ac96b05cfa7478706dce175e7c7b09cbf559451.zip gcc-7ac96b05cfa7478706dce175e7c7b09cbf559451.tar.gz gcc-7ac96b05cfa7478706dce175e7c7b09cbf559451.tar.bz2 |
Fix LTO bootstrap failure with -Werror=lto-type-mismatch
In GNAT's implementation model, using convention C (or C_Pass_By_Copy) has
no effect on the internal representation of types since the representation
is identical to that of C by default. It's even counter-productive given
the implementation advice listed in B.3(63-71) so the interface between the
front-end and gigi does not use it and instead uses structurally identical
types on both sides.
gcc/ada
PR ada/117038
* fe.h (struct c_array): Add 'const' to declaration of pointer.
(C_Source_Buffer): Use consistent formatting.
* par-ch3.adb (P_Component_Items): Properly set Aliased_Present on
access definition.
* sinput.ads: Remove clause for Interfaces.C.
(C_Array): Change type of Length to Integer and make both components
aliased. Remove Convention aspect.
(C_Source_Buffer): Remove all aspects.
* sinput.adb (C_Source_Buffer): Adjust to above change.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions