This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30167] OpenMP can produce invalid gimple (for indirect references)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Dec 2006 08:44:31 -0000
- Subject: [Bug middle-end/30167] OpenMP can produce invalid gimple (for indirect references)
- References: <bug-30167-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-12 08:44 -------
Here is another testcase (a C one this time):
int x, *p = &x;
g (int n)
{
int i = 1, j, sum = 0;
#pragma omp parallel reduction(+: sum) num_threads(2)
{
f1 (&j);
sum += i + j + *p + n;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30167