This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Fortran,patch] PR 39178 - inline main()
- From: Tobias Burnus <burnus at net-b dot de>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>, fortran at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 May 2009 23:24:31 +0200
- Subject: Re: [Fortran,patch] PR 39178 - inline main()
- References: <20090519223619.GA802@net-b.de> <4A1B2CAE.8000700@physik.fu-berlin.de> <4A1C5626.6030107@gmail.com>
Janne Blomqvist wrote:
>> Bootstrapped on x86-64-linux and regtested.
>> OK for the trunk?
> Ok.
Thanks for the review! Comitted as Rev. 147883.
>> PS 1: I think one can also remove libgfortranbegin.a.
> IMHO it can be removed. If you find it unacceptable to remove it
> directly, then at least deprecate it and remove for 4.6; I'd rather
> not see it kept around indefinitely.
Steve Kargl wrote:
> I agree with Janne.
I will send a follow-up patch which removes it. As "gfortran" does no
longer automatically link it, it will "break" some Makefile anyhow
(Fixed by: "touch main.f90; make"). For those which really need it, one
can recommend to simply create a C file with a main() function, which
calls "_gfortran_set_args (argc, argv); MAIN__();".
Tobias