Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: gcc/libgomp/testsuite/libgomp.fortran/fortran.exp

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/libgomp/testsuite/libgomp.c++/task-1.C ('k') | gcc/libiberty/Makefile.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/libgomp/testsuite/libgomp.fortran/fortran.exp
diff --git a/gcc/libgomp/testsuite/libgomp.fortran/fortran.exp b/gcc/libgomp/testsuite/libgomp.fortran/fortran.exp
index 0f7ad6e5a911c059f7262839e86735efc94b669b..acbfe49e5e31c464e3365de16e04a94d4ecea936 100644
--- a/gcc/libgomp/testsuite/libgomp.fortran/fortran.exp
+++ b/gcc/libgomp/testsuite/libgomp.fortran/fortran.exp
@@ -1,18 +1,27 @@
+load_lib libgomp-dg.exp
+
+global shlib_ext
+
+set shlib_ext [get_shlib_extension]
set lang_library_path "../libgfortran/.libs"
-set lang_link_flags "-lgfortranbegin -lgfortran"
+set lang_link_flags "-lgfortran"
set lang_test_file_found 0
-load_lib libgomp-dg.exp
# Initialize dg.
dg-init
if { $blddir != "" } {
- if [file exists "${blddir}/${lang_library_path}/libgfortranbegin.a"] {
- set lang_test_file "${lang_library_path}/libgfortranbegin.a"
+ # Look for a static libgfortran first.
+ if [file exists "${blddir}/${lang_library_path}/libgfortran.a"] {
+ set lang_test_file "${lang_library_path}/libgfortran.a"
+ set lang_test_file_found 1
+ # We may have a shared only build, so look for a shared libgfortran.
+ } elseif [file exists "${blddir}/${lang_library_path}/libgfortran.${shlib_ext}"] {
+ set lang_test_file "${lang_library_path}/libgfortran.${shlib_ext}"
set lang_test_file_found 1
} else {
- puts "No libgfortranbegin library found, will not execute fortran tests"
+ puts "No libgfortran library found, will not execute fortran tests"
}
} elseif [info exists GFORTRAN_UNDER_TEST] {
set lang_test_file_found 1
« no previous file with comments | « gcc/libgomp/testsuite/libgomp.c++/task-1.C ('k') | gcc/libiberty/Makefile.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698