aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/scos.adb
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2023-01-02 14:03:11 +0000
committerMarc Poulhiès <poulhies@adacore.com>2023-05-15 11:36:40 +0200
commit468a053530fa72b1ed66f78b6faf4d1fed220a17 (patch)
tree07cb402b3c9142f118901692b42dcf18f7a8bf1d /gcc/ada/scos.adb
parent983f4eff259317f4c3d0a5a3726bb1c8dcd9a623 (diff)
downloadgcc-468a053530fa72b1ed66f78b6faf4d1fed220a17.zip
gcc-468a053530fa72b1ed66f78b6faf4d1fed220a17.tar.gz
gcc-468a053530fa72b1ed66f78b6faf4d1fed220a17.tar.bz2
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).
Diffstat (limited to 'gcc/ada/scos.adb')
0 files changed, 0 insertions, 0 deletions