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 tree-optimization/56384] New: ICE in fold_binary_loc, at fold-const.c:10422


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

             Bug #: 56384
           Summary: ICE in fold_binary_loc, at fold-const.c:10422
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: antoine.balestrat@gmail.com


With GCC 4.8.0 as of 20130218 :

$ cat fold.c
int a, c;

void f(void)
{
    unsigned char b;

    if(a)
    {
        for(; b < 1; b++);
lbl1:
        c = (b |= 0) ^ (b || a);
    }

    if((a = b))
    {
        b = c;
        goto lbl1;
    }

    b = 5;
    goto lbl1;
}


$ xgcc -w -O2 fold.c
fold.c: In function âfâ:
fold.c:3:6: internal compiler error: in fold_binary_loc, at fold-const.c:10422
 void f(void)
      ^
0x70146d fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
    ../../srcdir/gcc/fold-const.c:10422
0x76613f gimple_fold_stmt_to_constant_1(gimple_statement_d*, tree_node*
(*)(tree_node*))
    ../../srcdir/gcc/gimple-fold.c:2575
0xa3a8d4 try_to_simplify
    ../../srcdir/gcc/tree-ssa-sccvn.c:3257
0xa3a8d4 visit_use
    ../../srcdir/gcc/tree-ssa-sccvn.c:3334
0xa3d248 process_scc
    ../../srcdir/gcc/tree-ssa-sccvn.c:3671
0xa3d248 extract_and_process_scc_for_name
    ../../srcdir/gcc/tree-ssa-sccvn.c:3728
0xa3d248 DFS
    ../../srcdir/gcc/tree-ssa-sccvn.c:3782
0xa3d248 run_scc_vn(vn_lookup_kind)
    ../../srcdir/gcc/tree-ssa-sccvn.c:4028
0xa20437 do_pre
    ../../srcdir/gcc/tree-ssa-pre.c:4701
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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