[llvm-branch-commits] [openmp] 1639161 - [OpenMP] Fix stack overflow for test bug54082.c

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jan 27 06:44:07 PST 2023


Author: Shilei Tian
Date: 2023-01-27T15:43:46+01:00
New Revision: 16391614c26badcfa16377bd000d740e8ebf3676

URL: https://github.com/llvm/llvm-project/commit/16391614c26badcfa16377bd000d740e8ebf3676
DIFF: https://github.com/llvm/llvm-project/commit/16391614c26badcfa16377bd000d740e8ebf3676.diff

LOG: [OpenMP] Fix stack overflow for test bug54082.c

When `N` is 1024, `int result[N][N]` is obviously large stack that Windows cannot support...

Fix #60326.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D142684

(cherry picked from commit 544f8c7f3959f21fa7d85768c3bbb5402bf15ea6)

Added: 
    

Modified: 
    openmp/runtime/test/parallel/bug54082.c

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/parallel/bug54082.c b/openmp/runtime/test/parallel/bug54082.c
index 3d1eca916d6fd..103babba291ed 100644
--- a/openmp/runtime/test/parallel/bug54082.c
+++ b/openmp/runtime/test/parallel/bug54082.c
@@ -6,7 +6,7 @@
 #include <assert.h>
 #include <stdlib.h>
 
-#define N 1024
+#define N 128
 
 int main(int argc, char *argv[]) {
   int errors = 0;


        


More information about the llvm-branch-commits mailing list