diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-05-21 10:34:00 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-05-21 10:34:48 +0200 |
commit | f53aff92acef9d5291ffed72995adc33e91fa209 (patch) | |
tree | 36eaab03e2c46a8416ee689e508a152e4d4a2e51 /gcc/ada/gcc-interface/decl.c | |
parent | b1cd7461ecc4d6572b3984e889d59e6e5b651a5f (diff) | |
download | gcc-f53aff92acef9d5291ffed72995adc33e91fa209.zip gcc-f53aff92acef9d5291ffed72995adc33e91fa209.tar.gz gcc-f53aff92acef9d5291ffed72995adc33e91fa209.tar.bz2 |
Fix spurious No_Elaboration violation for Size attribute
We optimize the associated range check but nevertheless flag a violation.
gcc/ada/
* gcc-interface/trans.c (Call_to_gnu): Minor tweaks.
(gnat_to_gnu_external): Likewise.
(Raise_Error_to_gnu): Return an empty statement list if there is a
condition and it is always false.
(gnat_to_gnu): Do not check for elaboration code a priori during the
translation but a posteriori instead.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
0 files changed, 0 insertions, 0 deletions