This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/22298] libgfortran init() constructor isn't called if executable is statically linked
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Nov 2005 08:49:23 -0000
- Subject: [Bug libfortran/22298] libgfortran init() constructor isn't called if executable is statically linked
- References: <bug-22298-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2005-11-04 08:49 -------
Subject: Bug 22298
Author: fxcoudert
Date: Fri Nov 4 08:49:18 2005
New Revision: 106485
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106485
Log:
PR libfortran/22298
* runtime/main.c (stupid_function_name_for_static_linking): New
function.
* runtime/error.c (internal_error): Call
stupid_function_name_for_static_linking.
* libgfortran.h: Add prototype for
stupid_function_name_for_static_linking.
* gcc/testsuite/lib/target-supports.exp
(check_effective_target_static_libgfortran): New
static_libgfortran effective target.
* gcc/testsuite/gfortran.dg/static_linking_1.f: New test.
* gcc/testsuite/gfortran.dg/static_linking_1.c: New file.
Added:
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/static_linking_1.c
- copied unchanged from r106484,
trunk/gcc/testsuite/gfortran.dg/static_linking_1.c
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/static_linking_1.f
- copied unchanged from r106484,
trunk/gcc/testsuite/gfortran.dg/static_linking_1.f
Modified:
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/lib/target-supports.exp
branches/gcc-4_0-branch/libgfortran/ChangeLog
branches/gcc-4_0-branch/libgfortran/libgfortran.h
branches/gcc-4_0-branch/libgfortran/runtime/error.c
branches/gcc-4_0-branch/libgfortran/runtime/main.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22298