http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53681

             Bug #: 53681
           Summary: s390 bootstrap failure since 187965
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: kreb...@gcc.gnu.org


int
__gcov_execle (const char *path, char *arg, ...)
{
  __builtin_va_list ap, aq;
  while (__builtin_va_arg (ap, char *))
      length++;
}

cc1 -fpreprocessed t.c -quiet

t.c: In function ‘__gcov_execle’:
t.c:6:7: error: ‘length’ undeclared (first use in this function)
       length++;
       ^
t.c:6:7: note: each undeclared identifier is reported only once for each
function it appears in
t.c:5:32: internal compiler error: Segmentation fault
   while (__builtin_va_arg (ap, char *))
                                ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) r
Starting program: /home/andreas/patched/gcc-head-build/gcc/cc1 -fpreprocessed
t.c -quiet
t.c: In function ‘__gcov_execle’:
t.c:6:7: error: ‘length’ undeclared (first use in this function)
       length++;
       ^
t.c:6:7: note: each undeclared identifier is reported only once for each
function it appears in

Program received signal SIGSEGV, Segmentation fault.
0x0000000082618f00 in mark_sym_for_renaming (sym=0x3fff7f3a320)
    at /home/andreas/patched/gcc-head/gcc/tree-into-ssa.c:2997
2997      bitmap_set_bit (SYMS_TO_RENAME (cfun), DECL_UID (sym));
(gdb) bt
#0  0x0000000082618f00 in mark_sym_for_renaming (sym=0x3fff7f3a320)
    at /home/andreas/patched/gcc-head/gcc/tree-into-ssa.c:2997
#1  0x0000000083c03f98 in s390_gimplify_va_arg (valist=0x3fff8026300,
type=0x3fff7f549d8, pre_p=0x3ffffffd7d0, 
    post_p=0x3ffffffa698) at
/home/andreas/patched/gcc-head/gcc/config/s390/s390.c:9047
#2  0x000000008057b192 in gimplify_va_arg_expr (expr_p=0x3fff8026290,
pre_p=0x3ffffffd7d0, post_p=0x3ffffffa698)
    at /home/andreas/patched/gcc-head/gcc/builtins.c:4509
#3  0x0000000081256160 in gimplify_expr (expr_p=0x3fff8026290,
pre_p=0x3ffffffd7d0, post_p=0x3ffffffa698, 
    gimple_test_f=0x8109c684 <is_gimple_val>, fallback=1) at
/home/andreas/patched/gcc-head/gcc/gimplify.c:7178
#4  0x000000008125b52a in gimplify_expr (expr_p=0x3fff802a020,
pre_p=0x3ffffffd7d0, post_p=0x3ffffffa698, 
    gimple_test_f=0x8109aca8 <is_gimple_condexpr>, fallback=1)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:7743
#5  0x0000000081233282 in gimplify_cond_expr (expr_p=0x3fff7ffff28,
pre_p=0x3ffffffd7d0, fallback=0)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:3240
#6  0x0000000081255808 in gimplify_expr (expr_p=0x3fff7ffff28,
pre_p=0x3ffffffd7d0, post_p=0x3ffffffbcf8, 
    gimple_test_f=0x8123f6a8 <is_gimple_stmt>, fallback=0) at
/home/andreas/patched/gcc-head/gcc/gimplify.c:7085
#7  0x00000000812474e8 in gimplify_stmt (stmt_p=0x3fff7ffff28,
seq_p=0x3ffffffd7d0)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:5662
#8  0x00000000812217e0 in gimplify_statement_list (expr_p=0x3fff802a060,
pre_p=0x3ffffffd7d0)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:1529
#9  0x00000000812597d2 in gimplify_expr (expr_p=0x3fff802a060,
pre_p=0x3ffffffd7d0, post_p=0x3ffffffcb10, 
    gimple_test_f=0x8123f6a8 <is_gimple_stmt>, fallback=0) at
/home/andreas/patched/gcc-head/gcc/gimplify.c:7514
#10 0x00000000812474e8 in gimplify_stmt (stmt_p=0x3fff802a060,
seq_p=0x3ffffffd7d0)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:5662
#11 0x000000008121f25e in gimplify_bind_expr (expr_p=0x3fff8019298,
pre_p=0x3ffffffe7d8)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:1223
#12 0x0000000081257358 in gimplify_expr (expr_p=0x3fff8019298,
pre_p=0x3ffffffe7d8, post_p=0x3ffffffdaf0, 
    gimple_test_f=0x8123f6a8 <is_gimple_stmt>, fallback=0) at
/home/andreas/patched/gcc-head/gcc/gimplify.c:7299
#13 0x00000000812474e8 in gimplify_stmt (stmt_p=0x3fff8019298,
seq_p=0x3ffffffe7d8)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:5662
#14 0x000000008125e548 in gimplify_body (fndecl=0x3fff8019200, do_parms=1
'\001')
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:8160
#15 0x000000008126070a in gimplify_function_tree (fndecl=0x3fff8019200)
    at /home/andreas/patched/gcc-head/gcc/gimplify.c:8294
#16 0x00000000809aabea in cgraph_analyze_function (node=0x3fff802b000)
    at /home/andreas/patched/gcc-head/gcc/cgraphunit.c:652
#17 0x00000000809ac59e in cgraph_analyze_functions () at
/home/andreas/patched/gcc-head/gcc/cgraphunit.c:938
#18 0x00000000809b166e in finalize_compilation_unit () at
/home/andreas/patched/gcc-head/gcc/cgraphunit.c:2086
#19 0x000000008011b6c2 in c_write_global_declarations () at
/home/andreas/patched/gcc-head/gcc/c-decl.c:10112
#20 0x00000000821d8430 in compile_file () at
/home/andreas/patched/gcc-head/gcc/toplev.c:568
#21 0x00000000821db150 in do_compile () at
/home/andreas/patched/gcc-head/gcc/toplev.c:1872
#22 0x00000000821db35c in toplev_main (argc=4, argv=0x3fffffff2b8)
    at /home/andreas/patched/gcc-head/gcc/toplev.c:1948
#23 0x0000000084920768 in main (argc=4, argv=0x3fffffff2b8) at
/home/andreas/patched/gcc-head/gcc/main.c:36

Reply via email to