[Ada] Fix invalid expression sharing in Expand_Array_Equality
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 21 Apr 2020 10:58:23 +0000 (12:58 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 18 Jun 2020 09:08:16 +0000 (05:08 -0400)
commit2e64cf055250718d8e1659d37738c9eb2d2da1e3
tree096699604d1e0afd5de2c620a107309c0bb3ce58
parente49f6ee11d9de33706a410f3f1cb328a4b6e6616
[Ada] Fix invalid expression sharing in Expand_Array_Equality

2020-06-18  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* exp_ch4.adb (Expand_Array_Equality): For the optimization of
the 2-element case, build new expression lists for the indices.
gcc/ada/exp_ch4.adb