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/57185] New: ICE: Segmentation fault in add_field_for_reduction with -ftree-parallelize-loops=2 -fipa-pta


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

             Bug #: 57185
           Summary: ICE: Segmentation fault in add_field_for_reduction
                    with -ftree-parallelize-loops=2 -fipa-pta
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: antoine.balestrat@gmail.com


Using GCC 4.9.0 as of 20130506 :

$ cat kk.c

int a, b;
int *d;
void f(void)
{
    int c;
    b %= 1;

    if(1 - (b < 1))
    {
        int *q = 0;

        if(a)
        {
            c = 0;
lbl:
            for(*d; *d; ++*d)
                if(c ? : a ? : (c = 1) ? : 0)
                    *q &= 1;
            return;
        }

        q = 1;
    }
    goto lbl;
}

$ xgcc -O3 -w -ftree-parallelize-loops=2 -fipa-pta kk.c

kk.c: In function âfâ:
kk.c:3:1: internal compiler error: Segmentation fault
void f(void)
     ^
0x90c35f crash_signal
    ../../srcdir/gcc/toplev.c:333
0x9906d0 add_field_for_reduction(reduction_info**, tree_node*)
    ../../srcdir/gcc/tree-parloops.c:967
0x992a52 traverse_noresize<tree_node*, add_field_for_reduction>
    ../../srcdir/gcc/hash-table.h:928
0x992a52 traverse<tree_node*, add_field_for_reduction>
    ../../srcdir/gcc/hash-table.h:950
0x992a52 separate_decls_in_region
    ../../srcdir/gcc/tree-parloops.c:1359
0x9948e5 gen_parallel_loop
    ../../srcdir/gcc/tree-parloops.c:1868
0x9948e5 parallelize_loops()
    ../../srcdir/gcc/tree-parloops.c:2218
0xa1c982 tree_parallelize_loops
    ../../srcdir/gcc/tree-ssa-loop.c:559
0xa1c982 tree_parallelize_loops
    ../../srcdir/gcc/tree-ssa-loop.c:554
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]