re PR middle-end/81698 (expand_case uses wrong edge as default edge)
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Aug 2017 08:29:21 +0000 (10:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Aug 2017 08:29:21 +0000 (10:29 +0200)
commitf5b328d9648e09bd305255d1029b9a22cc598ccb
tree100d7ad1cc51d37c58e8ae54f03f9c39da4b7b83
parentc0e5f294e891d8e1803f451440b2e4181b33aaff
re PR middle-end/81698 (expand_case uses wrong edge as default edge)

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.

From-SVN: r250909
gcc/ChangeLog
gcc/stmt.c