Commit 1707a5de by Thomas Schwinge Committed by Thomas Schwinge

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
parent 70f05c43
2013-11-07 Thomas Schwinge <thomas@codesourcery.com> 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_g.h: Include <stddef.h> for size_t.
* libgomp.spec.in: Update comment about libgomp's dependencies. * libgomp.spec.in: Update comment about libgomp's dependencies.
......
...@@ -169,9 +169,6 @@ proc libgomp_init { args } { ...@@ -169,9 +169,6 @@ proc libgomp_init { args } {
# Disable color diagnostics # Disable color diagnostics
lappend ALWAYS_CFLAGS "additional_flags=-fdiagnostics-color=never" 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" ...@@ -11,6 +11,9 @@ set lang_library_path "../libstdc++-v3/src/.libs"
# Initialize dg. # Initialize dg.
dg-init dg-init
# Turn on OpenMP.
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
set blddir [lookfor_file [get_multilibs] libgomp] set blddir [lookfor_file [get_multilibs] libgomp]
......
...@@ -17,6 +17,9 @@ if ![info exists DEFAULT_CFLAGS] then { ...@@ -17,6 +17,9 @@ if ![info exists DEFAULT_CFLAGS] then {
# Initialize dg. # Initialize dg.
dg-init dg-init
# Turn on OpenMP.
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
# Gather a list of all tests. # Gather a list of all tests.
set tests [lsort [find $srcdir/$subdir *.c]] set tests [lsort [find $srcdir/$subdir *.c]]
......
...@@ -15,6 +15,9 @@ set quadmath_library_path "../libquadmath/.libs" ...@@ -15,6 +15,9 @@ set quadmath_library_path "../libquadmath/.libs"
# Initialize dg. # Initialize dg.
dg-init dg-init
# Turn on OpenMP.
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
if { $blddir != "" } { if { $blddir != "" } {
lappend ALWAYS_CFLAGS "additional_flags=-fintrinsic-modules-path=${blddir}" lappend ALWAYS_CFLAGS "additional_flags=-fintrinsic-modules-path=${blddir}"
# Look for a static libgfortran first. # Look for a static libgfortran first.
......
...@@ -42,6 +42,9 @@ set PARALLEL_CFLAGS "-ansi -pedantic-errors -O2 \ ...@@ -42,6 +42,9 @@ set PARALLEL_CFLAGS "-ansi -pedantic-errors -O2 \
# Initialize `dg'. # Initialize `dg'.
dg-init dg-init
# Turn on OpenMP.
lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
# Gather a list of all tests. # Gather a list of all tests.
set tests [lsort [find $srcdir/$subdir *.c]] set tests [lsort [find $srcdir/$subdir *.c]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment