public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Add gdb_compile_openmp to lib/gdb.exp
@ 2019-12-10 23:15 gdb-buildbot
  2019-12-10 23:18 ` Failures on Fedora-i686, branch master gdb-buildbot
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gdb-buildbot @ 2019-12-10 23:15 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 26b911fb6411c930cf408a82604dc4355c086e03 ***

commit 26b911fb6411c930cf408a82604dc4355c086e03
Author:     Kevin Buettner <kevinb@redhat.com>
AuthorDate: Wed Aug 21 19:32:12 2019 -0700
Commit:     Kevin Buettner <kevinb@redhat.com>
CommitDate: Tue Dec 10 15:37:46 2019 -0700

    Add gdb_compile_openmp to lib/gdb.exp
    
    gdb/testsuite/ChangeLog:
    
            * lib/gdb.exp (gdb_compile_openmp): New proc.
            (build_executable_from_specs): Add an "openmp" option.
            (gdb_compile_pthreads): Add non-executable case.
    
    Change-Id: I94048b8b0940c707ce0529a6bcfa6e4eace49101

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 52edbc1308..d3510d42cb 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2019-12-10  Kevin Buettner  <kevinb@redhat.com>
+
+            * lib/gdb.exp (gdb_compile_openmp): New proc.
+            (build_executable_from_specs): Add an "openmp" option.
+            (gdb_compile_pthreads): Add non-executable case.
+
 2019-12-10  Tom Tromey  <tromey@adacore.com>
 
 	* gdb.ada/unchecked_union.exp: New file.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index aa774462d2..806e5a0c30 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -3951,6 +3951,9 @@ proc gdb_compile {source dest type options} {
 # against several different thread libraries, to see which one this
 # system has.
 proc gdb_compile_pthreads {source dest type options} {
+    if {$type != "executable"} {
+	return [gdb_compile $source $dest $type $options]
+    }
     set built_binfile 0
     set why_msg "unrecognized error"
     foreach lib {-lpthreads -lpthread -lthread ""} {
@@ -4156,6 +4159,14 @@ proc gdb_compile_objc {source dest type options} {
     }
 }
 
+# Build an OpenMP program from SOURCE.  See prefatory comment for
+# gdb_compile, above, for discussion of the parameters to this proc.
+
+proc gdb_compile_openmp {source dest type options} {
+    lappend options "additional_flags=-fopenmp"
+    return [gdb_compile $source $dest $type $options]
+}
+
 # Send a command to GDB.
 # For options for TYPE see gdb_stdin_log_write
 
@@ -5901,7 +5912,7 @@ proc build_executable_from_specs {testname executable options args} {
     }
 
     set func gdb_compile
-    set func_index [lsearch -regexp $options {^(pthreads|shlib|shlib_pthreads)$}]
+    set func_index [lsearch -regexp $options {^(pthreads|shlib|shlib_pthreads|openmp)$}]
     if {$func_index != -1} {
 	set func "${func}_[lindex $options $func_index]"
     }
@@ -5936,7 +5947,7 @@ proc build_executable_from_specs {testname executable options args} {
 	    if { ! [regexp "^/" "$s"] } then {
 		set s "$srcdir/$subdir/$s"
 	    }
-	    if  { [gdb_compile "${s}" "${binfile}${i}.o" object $local_options] != "" } {
+	    if  { [$func "${s}" "${binfile}${i}.o" object $local_options] != "" } {
 		untested $testname
 		return -1
 	    }


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-12-11  0:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 23:15 [binutils-gdb] Add gdb_compile_openmp to lib/gdb.exp gdb-buildbot
2019-12-10 23:18 ` Failures on Fedora-i686, branch master gdb-buildbot
2019-12-10 23:31 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
2019-12-10 23:43 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, " gdb-buildbot
2019-12-10 23:46 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot
2019-12-10 23:49 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot
2019-12-10 23:51 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
2019-12-11  0:18 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
2019-12-11  0:34 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot
2019-12-11  0:41 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).