[Bug middle-end/81698] expand_case uses wrong edge as default edge
aldyh at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 13 16:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81698
--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Wed Sep 13 16:33:46 2017
New Revision: 252313
URL: https://gcc.gnu.org/viewcvs?rev=252313&root=gcc&view=rev
Log:
PR middle-end/81698
* stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
instead of computing it in the function. Formatting fix.
(expand_case): Don't rely on default_edge being the first edge,
clear it if removing it, pass default_edge to
emit_case_dispatch_table.
(expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
fix.
Modified:
branches/range-gen2/gcc/ChangeLog
branches/range-gen2/gcc/stmt.c
More information about the Gcc-bugs
mailing list