2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-24 15:11:23 +08:00

[Ada] Complete support for static intrinsic functions

gcc/ada/

	* sem_res.adb (Resolve_Call): Do not try to inline intrinsic
	calls.
This commit is contained in:
Arnaud Charlet 2020-06-21 13:52:29 -04:00 committed by Pierre-Marie de Rodat
parent fe3463cc98
commit c2c8f0d042

@ -7042,6 +7042,7 @@ package body Sem_Res is
if not Checking_Potentially_Static_Expression
and then Is_Static_Function_Call (N)
and then not Is_Intrinsic_Subprogram (Ultimate_Alias (Nam))
and then not Error_Posted (Ultimate_Alias (Nam))
then
Inline_Static_Function_Call (N, Ultimate_Alias (Nam));