static_linking_1.c
62 Bytes
-
re PR libfortran/22298 (libgfortran init() constructor isn't called if… · f2ae4b2b
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
François-Xavier Coudert committed