gcc/libgfortran/runtime
François-Xavier Coudert f2ae4b2bd0 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
2005-11-04 08:44:29 +00:00
..
compile_options.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
environ.c gfortran.h: Add bitmasks for different FPE traps. 2005-10-12 20:21:31 +00:00
error.c re PR libfortran/22298 (libgfortran init() constructor isn't called if executable is statically linked) 2005-11-04 08:44:29 +00:00
fpu.c fpu.c: Add _GNU_SOURCE definition. 2005-10-23 20:06:08 +00:00
in_pack_generic.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
in_unpack_generic.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
main.c re PR libfortran/22298 (libgfortran init() constructor isn't called if executable is statically linked) 2005-11-04 08:44:29 +00:00
memory.c * runtime/memory.c (allocate_size): Malloc 1 byte if size == 0. 2005-10-03 22:32:44 +02:00
normalize.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
pause.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
select.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
stop.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
string.c string.c (find_option): Change 3rd argument to const st_option *. 2005-09-29 15:53:59 +02:00