ada: Disable slice-of-component optimization in some cases
authorBob Duff <duff@adacore.com>
Tue, 27 Sep 2022 16:10:21 +0000 (12:10 -0400)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 6 Oct 2022 09:22:48 +0000 (11:22 +0200)
commit7d8ba0c67cfb68e3a7806b30c3075d06e8feeb7c
treea0bcf0283aec262eb299d2705d4b1efadb36e4fe
parent86b786dc7295f6288296abb38d05572c3f98a758
ada: Disable slice-of-component optimization in some cases

This patch disables the Fast_Copy_Bitfield optimization in certain rare
cases that currently do not work (crash in gigi). We could improve
Expand_Assign_Array_Bitfield_Fast to handle these cases properly, but
that change is delicate, so for now, we simply disable the optimization.

gcc/ada/

* exp_ch5.adb
(Expand_Assign_Array_Loop_Or_Bitfield): Disable the
Fast_Copy_Bitfield optimization in certain cases.
gcc/ada/exp_ch5.adb