This is the mail archive of the mailing list for the GCC 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]

[Bug c/33396] add --enable-intermodule

------- Comment #4 from aldot at gcc dot gnu dot org  2007-09-26 18:43 -------

For the fortran frontend, It seems that i have this patch (must be relatively
old; undetermined status, ATM).

Index: gcc/fortran/
--- gcc/fortran/    (revision 128688)
+++ gcc/fortran/    (working copy)
@@ -67,6 +67,8 @@ F95_OBJS = $(F95_PARSER_OBJS) \
     fortran/trans-intrinsic.o fortran/trans-io.o fortran/trans-openmp.o \
     fortran/trans-stmt.o fortran/trans-types.o

+F95_OBJS-onestep = f951_frontend.o
 # Define the names for selecting gfortran in LANGUAGES.
 fortran: f951$(exeext)
@@ -90,11 +92,15 @@ gfortran-cross$(exeext): gfortran$(exeex
        -rm -f gfortran-cross$(exeext)
        cp gfortran$(exeext) gfortran-cross$(exeext)

+f951_frontend.o: $(F95_OBJS:.o=.c)
+        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -c $(filter %.c,$^) -o $@ -combine
 # The compiler itself is called f951.
-f951$(exeext): $(F95_OBJS) \
+# is not generated via configure, so we cannot use @onestep@
+f951$(exeext): $(F95_OBJS$(onestep)) \
                $(BACKEND) $(LIBDEPS) attribs.o
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
-               $(F95_OBJS) $(BACKEND) $(LIBS) attribs.o
+               $(F95_OBJS$(onestep)) $(BACKEND) $(LIBS) attribs.o

 gt-fortran-trans.h    : s-gtype; @true


aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
          Component|bootstrap                   |c

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