[Bug testsuite/42135] New: FAIL: libgomp.graphite/force-parallel-2.c execution test

dominiq at lps dot ens dot fr gcc-bugzilla@gcc.gnu.org
Sat Nov 21 20:58:00 GMT 2009


Since revision 150792, the test libgomp.graphite/force-parallel-2.c (introduced
in revision 150755) fails on *-apple-darwin9. AFAICT the array x[10000][10000]
is allocated in stack and is too big for the 64Mb hard limit on darwin. One
solution could be to replace 10000 with 4000. Also the following patch works.

--- /opt/gcc/_gcc_clean/libgomp/testsuite/libgomp.graphite/graphite.exp
2009-08-14 19:16:39.000000000 +0200
+++ /opt/gcc/gcc-4.5-work/libgomp/testsuite/libgomp.graphite/graphite.exp      
2009-11-20 16:32:46.000000000 +0100
@@ -33,10 +33,24 @@ if ![check_effective_target_fgraphite] {
 }

 # Flags for force-parallel-*.c testcases.
-set PARALLEL_CFLAGS "-ansi -pedantic-errors -O2 \
--ftree-parallelize-loops=4 -floop-parallelize-all \
--fdump-tree-parloops-details -fdump-tree-optimized \
--fno-loop-strip-mine -fdump-tree-graphite-all"
+if { ![istarget *-*-darwin*] } {
+    set PARALLEL_CFLAGS "-ansi -pedantic-errors -O2 \
+    -ftree-parallelize-loops=4 -floop-parallelize-all \
+    -fdump-tree-parloops-details -fdump-tree-optimized \
+    -fno-loop-strip-mine -fdump-tree-graphite-all"
+  } elseif { ![is-effective-target lp64] } {
+    set PARALLEL_CFLAGS "-ansi -pedantic-errors -O2 \
+    -ftree-parallelize-loops=4 -floop-parallelize-all \
+    -fdump-tree-parloops-details -fdump-tree-optimized \
+    -fno-loop-strip-mine -fdump-tree-graphite-all \
+    -Wl,-stack_size,0x20000000,-stack_addr,0xa0000000"
+  } else {
+    set PARALLEL_CFLAGS "-ansi -pedantic-errors -O2 \
+    -ftree-parallelize-loops=4 -floop-parallelize-all \
+    -fdump-tree-parloops-details -fdump-tree-optimized \
+    -fno-loop-strip-mine -fdump-tree-graphite-all \
+    -Wl,-stack_size,0x20000000"
+  }

 # Initialize `dg'.
 dg-init

What is the best solution? or is there a better one?


-- 
           Summary: FAIL: libgomp.graphite/force-parallel-2.c execution test
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr
 GCC build triplet: *-apple-darwin9
  GCC host triplet: *-apple-darwin9
GCC target triplet: *-apple-darwin9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42135



More information about the Gcc-bugs mailing list