tree-switch-conversion (array_value_type): Start by resetting candidate type to it...
authorOlivier Hainque <hainque@adacore.com>
Fri, 10 Mar 2017 11:16:21 +0000 (11:16 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Fri, 10 Mar 2017 11:16:21 +0000 (11:16 +0000)
commitf1b0632aabe6473bf810b5e901d979a4570b7de5
tree288a78ad82886d01310221ae6121bb0e46d117d9
parent2d9dd4fb867bffd009ebc85896dceb932559d90a
tree-switch-conversion (array_value_type): Start by resetting candidate type to it's main variant.

2017-03-10  Olivier Hainque  <hainque@adacore.com>

* tree-switch-conversion (array_value_type): Start by resetting
candidate type to it's main variant.

testsuite/
* gnat.dg/opt64.adb: New test.
* gnat.dg/opt64_pkg.ads: New helper.
* gnat.dg/opt64_pkg.adb: New helper.

From-SVN: r246024
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt64.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt64_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt64_pkg.ads [new file with mode: 0644]
gcc/tree-switch-conversion.c