This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran,patch] PR 39178 - inline main()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]