Use proper type in linear transformation in tree-switch-conversion (PR tree-optimizat...
authorMartin Liska <mliska@suse.cz>
Tue, 8 Jan 2019 14:45:28 +0000 (15:45 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 8 Jan 2019 14:45:28 +0000 (14:45 +0000)
commit5a5474ba24dad14f32e2adfa5fe4d8431df77d4e
treeb7808b55c647dd4727ac91fc6e9db04df57390e1
parent9f5391ee9521e90d0f3b545893d9d4b3d98839d1
Use proper type in linear transformation in tree-switch-conversion (PR tree-optimization/88753).

2019-01-08  Martin Liska  <mliska@suse.cz>

PR tree-optimization/88753
* tree-switch-conversion.c (switch_conversion::build_one_array):
Come up with local variable constructor.  Convert first to
type of constructor values.
2019-01-08  Martin Liska  <mliska@suse.cz>

PR tree-optimization/88753
* gcc.dg/tree-ssa/pr88753.c: New test.

From-SVN: r267728
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr88753.c [new file with mode: 0644]
gcc/tree-switch-conversion.c