libgomp: Prepare for testcases without -fopenmp.
libgomp/ * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to ALWAYS_CFLAGS. * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp. * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise. * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise. * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS): Likewise. From-SVN: r204519
This commit is contained in:
parent
70f05c4362
commit
1707a5de88
6 changed files with 20 additions and 3 deletions
|
@ -1,5 +1,13 @@
|
|||
2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
|
||||
ALWAYS_CFLAGS.
|
||||
* testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
|
||||
* testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
|
||||
* testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
|
||||
* testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
|
||||
Likewise.
|
||||
|
||||
* libgomp_g.h: Include <stddef.h> for size_t.
|
||||
|
||||
* libgomp.spec.in: Update comment about libgomp's dependencies.
|
||||
|
|
|
@ -169,9 +169,6 @@ proc libgomp_init { args } {
|
|||
|
||||
# Disable color diagnostics
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-fdiagnostics-color=never"
|
||||
|
||||
# And, gee, turn on OpenMP.
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
|
||||
}
|
||||
|
||||
#
|
||||
|
|
|
@ -11,6 +11,9 @@ set lang_library_path "../libstdc++-v3/src/.libs"
|
|||
# Initialize dg.
|
||||
dg-init
|
||||
|
||||
# Turn on OpenMP.
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
|
||||
|
||||
set blddir [lookfor_file [get_multilibs] libgomp]
|
||||
|
||||
|
||||
|
|
|
@ -17,6 +17,9 @@ if ![info exists DEFAULT_CFLAGS] then {
|
|||
# Initialize dg.
|
||||
dg-init
|
||||
|
||||
# Turn on OpenMP.
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
|
||||
|
||||
# Gather a list of all tests.
|
||||
set tests [lsort [find $srcdir/$subdir *.c]]
|
||||
|
||||
|
|
|
@ -15,6 +15,9 @@ set quadmath_library_path "../libquadmath/.libs"
|
|||
# Initialize dg.
|
||||
dg-init
|
||||
|
||||
# Turn on OpenMP.
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
|
||||
|
||||
if { $blddir != "" } {
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-fintrinsic-modules-path=${blddir}"
|
||||
# Look for a static libgfortran first.
|
||||
|
|
|
@ -42,6 +42,9 @@ set PARALLEL_CFLAGS "-ansi -pedantic-errors -O2 \
|
|||
# Initialize `dg'.
|
||||
dg-init
|
||||
|
||||
# Turn on OpenMP.
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
|
||||
|
||||
# Gather a list of all tests.
|
||||
set tests [lsort [find $srcdir/$subdir *.c]]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue