]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Skip dynamic interface conversion under native runtime
authorJavier Miranda <miranda@adacore.com>
Mon, 2 Jan 2023 14:03:11 +0000 (14:03 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 15 May 2023 09:36:40 +0000 (11:36 +0200)
commit468a053530fa72b1ed66f78b6faf4d1fed220a17
tree07cb402b3c9142f118901692b42dcf18f7a8bf1d
parent983f4eff259317f4c3d0a5a3726bb1c8dcd9a623
ada: Skip dynamic interface conversion under native runtime

gcc/ada/

* exp_disp.adb
(Has_Dispatching_Constructor_Call): New subprogram.
(Expand_Interface_Conversion): No need to perform dynamic
interface conversion when the operand and the target type are
interface types and the target interface type is an ancestor of
the operand type. The unique exception to this rule is when the
operand has a dispatching constructor call (as documented in the
sources).
gcc/ada/exp_disp.adb