[PATCH] Strenghten assumption about gswitch statements.

Martin Liška mliska@suse.cz
Mon Aug 27 14:05:00 GMT 2018


Hi.

Now we should not meet a degenerated gswitch statements.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Martin

gcc/ChangeLog:

2018-08-27  Martin Liska  <mliska@suse.cz>

	* tree-cfg.c (find_taken_edge_switch_expr): Replace not possible
	condition with assert.
	* tree-switch-conversion.c (switch_conversion::expand):
	Likewise.
---
 gcc/tree-cfg.c               | 17 +++++++----------
 gcc/tree-switch-conversion.c |  9 +--------
 2 files changed, 8 insertions(+), 18 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Strenghten-assumption-about-gswitch-statements.patch
Type: text/x-patch
Size: 1727 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180827/49f9f831/attachment.bin>


More information about the Gcc-patches mailing list