This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/81698] expand_case uses wrong edge as default edge
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Aug 2017 08:29:54 +0000
- Subject: [Bug middle-end/81698] expand_case uses wrong edge as default edge
- Auto-submitted: auto-generated
- References: <bug-81698-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81698
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Aug 7 08:29:21 2017
New Revision: 250909
URL: https://gcc.gnu.org/viewcvs?rev=250909&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:
trunk/gcc/ChangeLog
trunk/gcc/stmt.c