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

            Bug ID: 69162
           Summary: [6 Regression] ICE in create_tmp_var, at
                    gimple-expr.c:468
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

trunk r232077, i686-linux-gnu, works with -O0

reduced test case:

void fn1() {
  void *a;
  __builtin_va_list *b = a;
  __builtin_va_arg(*b, struct _CK_ATTRIBUTE *);
}

$ gcc -g -O2 -c attrs.i 
attrs.i: In function 'fn1':
attrs.i:4:24: internal compiler error: in create_tmp_var, at gimple-expr.c:468
   __builtin_va_arg(*b, struct _CK_ATTRIBUTE *);
   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~

0x83d3de7 create_tmp_var(tree_node*, char const*)
        ../../src/gcc/gimple-expr.c:468
0x83f13e7 create_tmp_from_val
        ../../src/gcc/gimplify.c:498
0x83f13e7 lookup_tmp_var
        ../../src/gcc/gimplify.c:519
0x83f13e7 internal_get_tmp_var
        ../../src/gcc/gimplify.c:563
0x85c2fae std_gimplify_va_arg_expr(tree_node*, tree_node*, gimple**, gimple**)
        ../../src/gcc/targhooks.c:1828
0x881d631 ix86_gimplify_va_arg
        ../../src/gcc/config/i386/i386.c:10288
0x8748e59 expand_ifn_va_arg_1
        ../../src/gcc/tree-stdarg.c:1043
0x8748e59 expand_ifn_va_arg
        ../../src/gcc/tree-stdarg.c:1111
0x874a100 execute
        ../../src/gcc/tree-stdarg.c:1164
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to