aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-03-13 20:36:19 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2006-03-13 20:36:19 +0100
commit5b4fc8fb033e355883549d897de17d9c01edd8f2 (patch)
tree9b349467185d46d153a5e9a251dfd5c2fc20e659 /gcc/omp-low.c
parent7d898fa2ca78c072f1a8dee246feac5cb4011ff2 (diff)
downloadgcc-5b4fc8fb033e355883549d897de17d9c01edd8f2.zip
gcc-5b4fc8fb033e355883549d897de17d9c01edd8f2.tar.gz
gcc-5b4fc8fb033e355883549d897de17d9c01edd8f2.tar.bz2
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
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 0a9c96f..65f7151 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -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 ();