[Bug libfortran/22298] libgfortran init() constructor isn't called if executable is statically linked
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 4 08:44:00 GMT 2005
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2005-11-04 08:44 -------
Subject: Bug 22298
Author: fxcoudert
Date: Fri Nov 4 08:44:29 2005
New Revision: 106484
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106484
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:
trunk/gcc/testsuite/gfortran.dg/static_linking_1.c
trunk/gcc/testsuite/gfortran.dg/static_linking_1.f
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/lib/target-supports.exp
trunk/libgfortran/ChangeLog
trunk/libgfortran/libgfortran.h
trunk/libgfortran/runtime/error.c
trunk/libgfortran/runtime/main.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22298
More information about the Gcc-bugs
mailing list