mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 05:20:24 +08:00
re PR tree-optimization/46066 (ICE: in create_parallel_loop, at tree-parloops.c:1455 with -ftree-parallelize-loops -g)
PR tree-optimization/46066 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb instead of gsi_last_bb. * gcc.dg/autopar/pr46066.c: New test. From-SVN: r165739
This commit is contained in:
parent
d123bf41c9
commit
1dff453d7b
@ -1,3 +1,9 @@
|
||||
2010-10-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/46066
|
||||
* tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
|
||||
instead of gsi_last_bb.
|
||||
|
||||
2010-10-20 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* config/m32c/m32c.c (m32c_option_override): Always disable
|
||||
|
@ -1,9 +1,14 @@
|
||||
2010-10-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/46066
|
||||
* gcc.dg/autopar/pr46066.c: New test.
|
||||
|
||||
2010-10-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
PR c++/46024
|
||||
* g++.dg/warn/miss-format-1.C: Enclose dg-error target list in braces.
|
||||
|
||||
2010-10-20 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
|
||||
2010-10-20 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
|
||||
|
||||
PR c++/46056
|
||||
* g++.dg/cpp0x/range-for7.C: New.
|
||||
@ -1900,7 +1905,7 @@
|
||||
|
||||
* gfortran.dg/promotion.f90: Fix options.
|
||||
|
||||
2010-09-11 Rodrigo Rivas <rodrigorivascosta@gmail.com>
|
||||
2010-09-11 Rodrigo Rivas <rodrigorivascosta@gmail.com>
|
||||
|
||||
* g++.dg/cpp0x/range-for1.C: New.
|
||||
* g++.dg/cpp0x/range-for2.C: New.
|
||||
@ -1915,7 +1920,7 @@
|
||||
and counts. Check that transpose is not called.
|
||||
* gfortran.dg/transpose_2.f90: Update error message.
|
||||
|
||||
2010-09-10 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
|
||||
2010-09-10 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
|
||||
|
||||
PR c++/43824
|
||||
* g++.dg/lookup/strong-using-1.C: Set dg-options to "".
|
||||
|
18
gcc/testsuite/gcc.dg/autopar/pr46066.c
Normal file
18
gcc/testsuite/gcc.dg/autopar/pr46066.c
Normal file
@ -0,0 +1,18 @@
|
||||
/* PR tree-optimization/46066 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-fcompare-debug -O -ftree-parallelize-loops=4" } */
|
||||
|
||||
void
|
||||
parloop (int N)
|
||||
{
|
||||
int i, j, ii;
|
||||
int x[400][10][400];
|
||||
for (ii = 0; ii < N; ii++)
|
||||
for (i = 0; i < N; i++)
|
||||
for (j = 0; j < N; j++)
|
||||
x[i][j][ii] = 3;
|
||||
for (i = 0; i < N; i++)
|
||||
for (j = 0; j < N; j++)
|
||||
if (x[i][j][0] != 3)
|
||||
__builtin_abort ();
|
||||
}
|
@ -1451,7 +1451,7 @@ create_parallel_loop (struct loop *loop, tree loop_fn, tree data,
|
||||
initvar);
|
||||
cvar_next = PHI_ARG_DEF_FROM_EDGE (phi, loop_latch_edge (loop));
|
||||
|
||||
gsi = gsi_last_bb (loop->latch);
|
||||
gsi = gsi_last_nondebug_bb (loop->latch);
|
||||
gcc_assert (gsi_stmt (gsi) == SSA_NAME_DEF_STMT (cvar_next));
|
||||
gsi_remove (&gsi, true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user