This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, libgomp] PR 39178 Don't use libgfortranbegin


Hi,

the attached patch removes the dependence on libgfortranbegin from the
libgomp testsuite. It's not needed anymore, as the gfortran frontend
generates a main() function when needed.

Ok for trunk?



-- 
Janne Blomqvist

Attachment: ChangeLog.libgomp
Description: Binary data

diff --git a/libgomp/testsuite/libgomp.fortran/fortran.exp b/libgomp/testsuite/libgomp.fortran/fortran.exp
index 0f7ad6e..3d6615f 100644
--- a/libgomp/testsuite/libgomp.fortran/fortran.exp
+++ b/libgomp/testsuite/libgomp.fortran/fortran.exp
@@ -1,5 +1,5 @@
 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
@@ -8,11 +8,11 @@ load_lib libgomp-dg.exp
 dg-init
 
 if { $blddir != "" } {
-    if [file exists "${blddir}/${lang_library_path}/libgfortranbegin.a"] {
-        set lang_test_file "${lang_library_path}/libgfortranbegin.a"
+    if [file exists "${blddir}/${lang_library_path}/libgfortran.a"] {
+        set lang_test_file "${lang_library_path}/libgfortran.a"
         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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]