This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/81698] expand_case uses wrong edge as default edge


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]