https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78270

            Bug ID: 78270
           Summary: ice in gimplify_switch_expr, at gimplify.c:2272
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 40001
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40001&action=edit
gzipped C source code

The attached code, when compiled by gcc trunk dated 20161109 and the
compiler flags -fsanitize=kernel-address --param asan-stack=1 does
this

net/bluetooth/mgmt.c:5847:2: internal compiler error: in gimplify_switch_expr,
at gimplify.c:2272
0x99f9bb gimplify_switch_expr
        ../../trunk/gcc/gimplify.c:2272
0x99840d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../trunk/gcc/gimplify.c:11402
0x99bea6 gimplify_stmt(tree_node**, gimple**)
        ../../trunk/gcc/gimplify.c:6449
0x99758b gimplify_statement_list
        ../../trunk/gcc/gimplify.c:1703

The source code is from the Linux kernel, so I assume it is quite
important to have it working.

I'll have a go at reducing the test case code.

Reply via email to