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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-11 
20:38:15 UTC ---
Author: jakub
Date: Thu Nov 11 20:38:12 2010
New Revision: 166618

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166618
Log:
    Backport from mainline
    2010-11-05  Jakub Jelinek  <ja...@redhat.com>

    PR tree-optimization/46099
    * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
    if it is NULL and uid wasn't found in the hash table.  Just fold the
    result if it is NULL otherwise.  Insert other potentially needed
    stmts right before current stmt instead of on the entry edge.
    (struct elv_data): Add gsi and reset fields.
    (eliminate_local_variables_1): Adjust caller.  If take_address_of
    failed for debug stmt, set dta->reset and return.
    (eliminate_local_variables_stmt): Change STMT argument for GSI,
    pass GSI through to the callback, handle resetting of debug stmts.
    (eliminate_local_variables): Adjust caller.  Process debug stmts
    in second phase.

    * gcc.dg/autopar/pr46099.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/autopar/pr46099.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/tree-parloops.c

Reply via email to