[PATCH] Fix emission of jump tables (PR tree-optimization/86263).
Martin Liška
mliska@suse.cz
Fri Jun 22 09:21:00 GMT 2018
Hello.
Quite obvious patch where I accidentally removed check for:
if (!targetm.have_casesi () && !targetm.have_tablejump ())
Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
Ready to be installed?
Martin
gcc/ChangeLog:
2018-06-21 Martin Liska <mliska@suse.cz>
PR tree-optimization/86263
* tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
Bail out if is_enabled is false.
* tree-switch-conversion.h (jump_table_cluster::is_enabled):
New declaration.
(jump_table_cluster::is_enabled): New function.
---
gcc/tree-switch-conversion.c | 3 +++
gcc/tree-switch-conversion.h | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-emission-of-jump-tables-PR-tree-optimization-862.patch
Type: text/x-patch
Size: 1858 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180622/64cb3eb7/attachment.bin>
More information about the Gcc-patches
mailing list