[PATCH,Fix] PR25149 Can't link ABORT intrinsic with -std=f95

Jerry DeLisle jvdelisle@verizon.net
Tue Nov 29 05:58:00 GMT 2005


Patch regression tested and committed to 4.2, approved by Steve Kargl.

Will commit to 4.1 in a few days.

Jerry

2005-11-28  Steven G. Kargl  <kargls@comcast.net>

	PR libgfortran/25149
	* intrinsics/abort.c: Add external abort_ to allow linking when
	invoking -std=f95 in testsuite.

Index: abort.c
===================================================================
--- abort.c	(revision 107569)
+++ abort.c	(working copy)
@@ -38,3 +38,15 @@ void PREFIX(abort) (void)
    close_units ();
    abort ();
  }
+
+/* abort() is needed for the testsuite when linking with -std=f95.  */
+
+extern void abort_ (void);
+export_proto_np(abort_);
+
+void
+abort_ (void)
+{
+  close_units ();
+  abort ();
+}



More information about the Fortran mailing list