Follow up to PR 39178. Until that patch for GCC 4.5, gfortran generated for the
main PROGRAM only "MAIN__" and no "main"; the latter was then included by
linking libgfortran.a

With the patch (PR 39178), libgfortran.a became obsolete and is no longer
linked by gfortran. It is still present, however, and thus "gcc ...
-llibgfortranbegin" still works - but it has no effect. (At least when the *.o
file with "main()" comes first - otherwise one gets a double-"main" linker
error.)

Some makefiles explicitly link libgfortranbegin thus they will break when
libgfortranbegin.a is removed (cf. link below).

Removal: Remove libgfortran/fmain.c, update libgfortran/Makefile.am and
(re)generate libgfortran/Makefile.in

See the following thread about sentiments regarding the removal:

http://gcc.gnu.org/ml/gcc-patches/2009-05/threads.html#01604


-- 
           Summary: Eventually get rid of libgfortranbegin.a
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40267

Reply via email to