re PR middle-end/25989 (gomp ICE with -O2 and schedule(guided))
PR middle-end/25989 * omp-low.c (expand_omp_for_generic): Mark istart0 and iend0 as addressable. * gcc.dg/gomp/pr25989.c: New test. From-SVN: r112023
This commit is contained in:
parent
7d898fa2ca
commit
5b4fc8fb03
4 changed files with 30 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-03-13 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/25989
|
||||
* omp-low.c (expand_omp_for_generic): Mark istart0
|
||||
and iend0 as addressable.
|
||||
|
||||
2006-03-13 Jie Zhang <jie.zhang@analog.com>
|
||||
|
||||
* config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
marshalling to implement data sharing and copying clauses.
|
||||
Contributed by Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GCC.
|
||||
|
||||
|
@ -2430,6 +2430,8 @@ expand_omp_for_generic (struct omp_region *region,
|
|||
|
||||
istart0 = create_tmp_var (long_integer_type_node, ".istart0");
|
||||
iend0 = create_tmp_var (long_integer_type_node, ".iend0");
|
||||
TREE_ADDRESSABLE (istart0) = 1;
|
||||
TREE_ADDRESSABLE (iend0) = 1;
|
||||
|
||||
l0 = create_artificial_label ();
|
||||
l1 = create_artificial_label ();
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2006-03-13 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/25989
|
||||
* gcc.dg/gomp/pr25989.c: New test.
|
||||
|
||||
2006-03-13 Jeff Law <law@redhat.com>
|
||||
|
||||
* gcc.dg/tree-ssa/20030807-2.c: No longer expected to fail.
|
||||
|
|
16
gcc/testsuite/gcc.dg/gomp/pr25989.c
Normal file
16
gcc/testsuite/gcc.dg/gomp/pr25989.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* PR middle-end/25989 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -fopenmp" } */
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
int i, j;
|
||||
float a, b = 1.0;
|
||||
|
||||
#pragma omp parallel for schedule(guided,1) private(j)
|
||||
for (i = 1; i <= 9; i++)
|
||||
for (j = 1; j <= 9; j++)
|
||||
a = b;
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue