[Ada] Extend No_Dependence restriction to code generation (continued)
commita80e0583973cb1664adf663d499c43c0425018b6
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 12 Jul 2022 12:22:53 +0000 (12 14:22 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 6 Sep 2022 07:14:23 +0000 (6 09:14 +0200)
tree97735b4cd884a28b38b297612a0340b3692524d2
parent5e34c91420ffcacb27e4b0a9a83b97b9ee42a337
[Ada] Extend No_Dependence restriction to code generation (continued)

gcc/ada/

* gcc-interface/trans.cc (gnat_to_gnu) <N_Op_Divide>: Report a
violation of No_Dependence on System.GCC if the result type is
larger than a word.
<N_Op_Shift>: Likewise.
<N_Op_Mod>: Likewise.
<N_Op_Rem>: Likewise.
(convert_with_check): Report a violation of No_Dependence on
System.GCC for a conversion between an integer type larger than
a word and a floating-point type.
gcc/ada/gcc-interface/trans.cc