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: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: Dave Korn <dave dot korn dot cygwin at googlemail dot com>, FX <fxcoudert at gmail dot com>, Fortran List <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org, Tobias Burnus <burnus at net-b dot de>, Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Date: Wed, 27 May 2009 12:39:00 +0100
- Subject: Re: [Fortran,patch] PR 39178 - inline main()
- References: <FC75E055-191F-41A8-81D9-B20984466953@GMAIL.COM> <4A1C8BE5.3010505@gmail.com> <20090527041723.GA51801@troutmask.apl.washington.edu>
Steve Kargl wrote:
> Carrying around a useless library as a shim for users leads
> to extreme bloat.
I appreciate your desire to avoid unnecessary and burdensome maintenance
overhead, but I don't think it needs "extreme" bloat:
$ cat /tmp/libgfortranbegin/libgfortranbegin.s
.section gnu.warning._main, "rd"
.ascii "libgfortranbegin is deprecated. Please remove"
.asciz "it from your linker command-line."
.section gnu.warning.main, "rd"
.ascii "libgfortranbegin is deprecated. Please remove"
.asciz "it from your linker command-line."
.section gnu.warning.__main, "rd"
.ascii "libgfortranbegin is deprecated. Please remove"
.asciz "it from your linker command-line."
$ size /tmp/libgfortranbegin/libgfortranbegin.o
text data bss dec hex filename
0 240 0 240 f0 /tmp/libgfortranbegin/libgfortranbegin.o
... and even that's overkill just because I don't know how many underscores to
use for fortran!
cheers,
DaveK