re PR libfortran/22298 (libgfortran init() constructor isn't called if executable...
authorFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 4 Nov 2005 08:44:29 +0000 (08:44 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 4 Nov 2005 08:44:29 +0000 (08:44 +0000)
commitf2ae4b2bd03c98446d25729a4483b35e515a08d4
tree2baeb30ac5f592018a46140e8a34f178598a67b6
parenta67ec6ab99c91c593138358b56dcc160aa09a015
re PR libfortran/22298 (libgfortran init() constructor isn't called if executable is statically linked)

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.

From-SVN: r106484
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/static_linking_1.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/static_linking_1.f [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp
libgfortran/ChangeLog
libgfortran/libgfortran.h
libgfortran/runtime/error.c
libgfortran/runtime/main.c