stmt.c (expand_case): Try to narrow the index type if it's larger than a word.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 25 Jul 2019 16:16:32 +0000 (16:16 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 25 Jul 2019 16:16:32 +0000 (16:16 +0000)
commit0dfa7ba12c7cbdfc177b07f990a859761dc36e25
tree90a092de84a26f643015a197a2e32ad6ed8bf2e2
parent5ab2422adf894bdf84deed8c7c0557c16d6dca2b
stmt.c (expand_case): Try to narrow the index type if it's larger than a word.

* stmt.c (expand_case): Try to narrow the index type if it's larger
than a word.  Tidy up.

From-SVN: r273805
gcc/ChangeLog
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/case_optimization3.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/case_optimization3.ads [new file with mode: 0644]