Remove discriminant checks in gigi
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 21 May 2021 09:25:53 +0000 (11:25 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 21 May 2021 09:27:28 +0000 (11:27 +0200)
commit49c2c7f6551f9a71a1bc6766d3b7482a8b39c4ac
tree2cd3100c10ad8eb60ece0684751dd82f5f95be71
parent3553d8c2fecbe8d831538c661c9e58e7ae50c385
Remove discriminant checks in gigi

gcc/ada/
* gcc-interface/utils.c (gnat_pushdecl): Fix typo in comment.
* gcc-interface/utils2.c (build_simple_component_ref): Build NULL_EXPR
if the offset of the field has overflowed.
(build_component_ref): Add gigi checking assertion that the reference
has been built and replace the discriminant check by a Program_Error.
gcc/ada/gcc-interface/utils.c
gcc/ada/gcc-interface/utils2.c