[Openmp-commits] [openmp] r287558 - Merging r280138:
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Nov 21 10:43:38 PST 2016
Author: jlpeyton
Date: Mon Nov 21 12:43:38 2016
New Revision: 287558
URL: http://llvm.org/viewvc/llvm-project?rev=287558&view=rev
Log:
Merging r280138:
------------------------------------------------------------------------
r280138 | jlpeyton | 2016-08-30 14:28:58 -0500 (Tue, 30 Aug 2016) | 5 lines
Appease older gcc compilers for the many-microtask-args.c test
Older gcc compilers error out with the C99 syntax of: for (int i =...)
so this change just moves the int i; declaration up above.
------------------------------------------------------------------------
Modified:
openmp/branches/release_39/ (props changed)
openmp/branches/release_39/runtime/test/misc_bugs/many-microtask-args.c
Propchange: openmp/branches/release_39/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Nov 21 12:43:38 2016
@@ -1 +1 @@
-/openmp/trunk:278036,278332
+/openmp/trunk:278036,278332,280138
Modified: openmp/branches/release_39/runtime/test/misc_bugs/many-microtask-args.c
URL: http://llvm.org/viewvc/llvm-project/openmp/branches/release_39/runtime/test/misc_bugs/many-microtask-args.c?rev=287558&r1=287557&r2=287558&view=diff
==============================================================================
--- openmp/branches/release_39/runtime/test/misc_bugs/many-microtask-args.c (original)
+++ openmp/branches/release_39/runtime/test/misc_bugs/many-microtask-args.c Mon Nov 21 12:43:38 2016
@@ -4,6 +4,7 @@
int main()
{
+ int i;
int i1 = 0;
int i2 = 1;
int i3 = 2;
@@ -23,7 +24,7 @@ int main()
int r = 0;
#pragma omp parallel for firstprivate(i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16) reduction(+:r)
- for (int i = 0; i < i16; i++) {
+ for (i = 0; i < i16; i++) {
r += i + i1 + i2 + i3 + i4 + i5 + i6 + i7 + i8 + i9 + i10 + i11 + i12 + i13 + i14 + i15 + i16;
}
More information about the Openmp-commits
mailing list