This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33396] add --enable-intermodule
- From: "aldot at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2007 18:43:41 -0000
- Subject: [Bug c/33396] add --enable-intermodule
- References: <bug-33396-11811@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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/Make-lang.in
===================================================================
--- gcc/fortran/Make-lang.in (revision 128688)
+++ gcc/fortran/Make-lang.in (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
+
#^L
# 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) \
+# Make-lang.in 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
#^L
--
aldot at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33396