Commit 5b4fc8fb by Jakub Jelinek Committed by Jakub Jelinek

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
parent 7d898fa2
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> 2006-03-13 Jie Zhang <jie.zhang@analog.com>
* config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC. * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
marshalling to implement data sharing and copying clauses. marshalling to implement data sharing and copying clauses.
Contributed by Diego Novillo <dnovillo@redhat.com> 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. This file is part of GCC.
...@@ -2430,6 +2430,8 @@ expand_omp_for_generic (struct omp_region *region, ...@@ -2430,6 +2430,8 @@ expand_omp_for_generic (struct omp_region *region,
istart0 = create_tmp_var (long_integer_type_node, ".istart0"); istart0 = create_tmp_var (long_integer_type_node, ".istart0");
iend0 = create_tmp_var (long_integer_type_node, ".iend0"); iend0 = create_tmp_var (long_integer_type_node, ".iend0");
TREE_ADDRESSABLE (istart0) = 1;
TREE_ADDRESSABLE (iend0) = 1;
l0 = create_artificial_label (); l0 = create_artificial_label ();
l1 = create_artificial_label (); l1 = create_artificial_label ();
......
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> 2006-03-13 Jeff Law <law@redhat.com>
* gcc.dg/tree-ssa/20030807-2.c: No longer expected to fail. * gcc.dg/tree-ssa/20030807-2.c: No longer expected to fail.
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment