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]

fortran LDFLAGS cleanup

This removes the awkward messing with ld flags for linking f771 on AIX
anx NeXT (still?) needed for gcc 2.8 and below.

The AIX config already DTRT for us.  Presumably C++ will eventually
get big enough that the NeXT flag will be relevant for that too, and I
assume -- Toon? -- it doesn't do harm if used generally.

OK to commit to the trunk?

1998-09-04  Dave Love  <>

	(F771_LDFLAGS): Dispensed with.

Index: gcc/f/
RCS file: /egcs/carton/cvsfiles/egcs/gcc/f/,v
retrieving revision 1.12
diff -u -p -r1.12
---	1998/07/15 07:07:50	1.12
+++	1998/09/04 16:11:11
@@ -134,12 +134,11 @@ ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLA
 # Likewise.
-# f771 is so big, need to tell linker on m68k-next-nextstep* to make enough
-# room for it.  On AIX, linking f771 overflows the linker TOC;
-# `-bbigtoc' is appropriate for the linker on AIX 4.1 and above.
-F771_LDFLAGS = `case "${target}" in\
- m68k-next-nextstep*) echo -segaddr __DATA 6000000;;\
- *-*-aix[4-9]*) \`$(CC) --print-prog-name=ld\` -v 2>&1 | grep BFD >/dev/null || echo -Wl,-bbigtoc;; esac`
+# We should be compiling with the built compiler, for which
+# BOOT_LDFLAGS is appropriate.  (Formerly we had a separate
+# F771_LDFLAGS, but the ld flags can be taken care of by the target
+# configuration files in egcs.)
 # Even if ALLOCA is set, don't use it if compiling with GCC.
@@ -213,8 +212,7 @@ OBJDEPS = ../stamp-objlist
 compiler: ../f771$(exeext)
 ../f771$(exeext): $(P) $(F77_OBJS) $(OBJDEPS) $(LIBDEPS)
 	rm -f f771$(exeext)
-	$(CC) $(ALL_CFLAGS) $(LDFLAGS) $(F771_LDFLAGS) -o $@ \
-	      $(F77_OBJS) $(OBJS) $(LIBS)
+	$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(F77_OBJS) $(OBJS) $(LIBS)
 Makefile: $(srcdir)/ $(srcdir)/../configure
 	cd ..; $(SHELL) config.status

Fri Sep  4 17:08:59 1998  Dave Love  <>

	* config/m68k/x-next (BOOT_LDFLAGS): Define suitably for f771

Index: gcc/config/m68k/x-next
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/m68k/x-next,v
retrieving revision 1.3
diff -u -p -r1.3 x-next
--- x-next	1998/02/01 23:08:28	1.3
+++ x-next	1998/09/04 16:11:11
@@ -7,3 +7,7 @@ OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/
 # <limits.h> is sometimes in /usr/include/ansi/limits.h.
 LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h -o -f $(SYSTEM_HEADER_DIR)/ansi/limits.h ]
+# f771 is so big, we need to tell linker on m68k-next-nextstep* to
+# make enough room for it.
+BOOT_LDFLAGS=-segaddr __DATA 6000000

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