[gcc r16-8296] libgomp: Update tests to initialize full_data to 0.
Prathamesh Kulkarni
prathamesh3492@gcc.gnu.org
Thu Mar 26 17:17:50 GMT 2026
https://gcc.gnu.org/g:97682f93d7716dbd74e39846fff96cc5b3fb7107
commit r16-8296-g97682f93d7716dbd74e39846fff96cc5b3fb7107
Author: Prathamesh Kulkarni <prathameshk@nvidia.com>
Date: Thu Mar 26 17:09:08 2026 +0000
libgomp: Update tests to initialize full_data to 0.
libgomp/ChangeLog:
PR libgomp/124123
* testsuite/libgomp.c/pr122314.c (test): Initialize full_data
to 0.
* testsuite/libgomp.c/pr122356.c: Likewise.
Signed-off-by: Prathamesh Kulkarni <prathameshk@nvidia.com>
Diff:
---
libgomp/testsuite/libgomp.c/pr122314.c | 3 +++
libgomp/testsuite/libgomp.c/pr122356.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/libgomp/testsuite/libgomp.c/pr122314.c b/libgomp/testsuite/libgomp.c/pr122314.c
index bb9565de7266..47c633f73b73 100644
--- a/libgomp/testsuite/libgomp.c/pr122314.c
+++ b/libgomp/testsuite/libgomp.c/pr122314.c
@@ -9,6 +9,9 @@ unsigned full_data[NUM_THREADS] = {0};
void
test ()
{
+ for (int i = 0; i < NUM_THREADS; i++)
+ full_data[i] = 0;
+
#pragma omp parallel num_threads(8)
{
#pragma omp barrier
diff --git a/libgomp/testsuite/libgomp.c/pr122356.c b/libgomp/testsuite/libgomp.c/pr122356.c
index 76879511ff2f..9ac3ab87948f 100644
--- a/libgomp/testsuite/libgomp.c/pr122356.c
+++ b/libgomp/testsuite/libgomp.c/pr122356.c
@@ -9,6 +9,9 @@ unsigned full_data[NUM_THREADS] = {0};
void
test ()
{
+ for (int i = 0; i < NUM_THREADS; i++)
+ full_data[i] = 0;
+
#pragma omp parallel num_threads(8)
{
#pragma omp for
More information about the Gcc-cvs
mailing list