]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix spurious No_Elaboration violation for Size attribute
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 21 May 2021 08:34:00 +0000 (10:34 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 21 May 2021 08:34:48 +0000 (10:34 +0200)
commitf53aff92acef9d5291ffed72995adc33e91fa209
tree36eaab03e2c46a8416ee689e508a152e4d4a2e51
parentb1cd7461ecc4d6572b3984e889d59e6e5b651a5f
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.
gcc/ada/gcc-interface/trans.c