On Fri, Dec 25, 2015 at 4:40 AM, Gerald Pfeifer <[email protected]> wrote:
> Hi Sebastian,
>
> On Mon, 14 Dec 2015, Sebastian Pop wrote:
>> gcc/graphite-dependences.c | 31 +++++++++++++++++++++++++++----
>> gcc/graphite-poly.c | 15 ++++++++++++++-
>> gcc/graphite-scop-detection.c | 21 ++++++++++++++++-----
>
> on December 17th 2015, my nightly bootstrap (on i386-unknown-freebsd10.1,
> but I don't think this is material) started to fail as follows:
>
> /scratch/tmp/gerald/gcc-HEAD/gcc/graphite-scop-detection.c:1892:17:
> note: in instantiation of member function 'vec<dr_info, va_heap,
> vl_ptr>::safe_push'
> requested here
> scop->drs.safe_push (dr_info (dr, pbb));
> ^
I do not see what the error is. Do you happen to have
the few lines with the error before this note?
>
> From what I can see, this code was added by your patch:
>
>> @@ -1879,7 +1879,18 @@ gather_bbs::before_dom_children (basic_block bb)
>> int i;
>> data_reference_p dr;
>> FOR_EACH_VEC_ELT (gbb->data_refs, i, dr)
>> - scop->drs.safe_push (dr_info (dr, pbb));
>> + {
>> + DEBUG_PRINT (dp << "Adding memory ";
>> + if (dr->is_read)
>> + dp << "read: ";
>> + else
>> + dp << "write: ";
>> + print_generic_expr (dump_file, dr->ref, 0);
>> + dp << "\nFrom stmt: ";
>> + print_gimple_stmt (dump_file, dr->stmt, 0, 0));
>> +
>> + scop->drs.safe_push (dr_info (dr, pbb));
>> + }
This code does not change the safe_push call.
Thanks Gerald for reporting this problem.
Sebastian