This is the mail archive of the gcc-patches@gcc.gnu.org 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]

A patch for gcc/Makefile.in


All crt*.o should be compiled with -fno-exceptions. But it is not true
for crtbeginS.o and crtendS.o. Also

# make INSTALL

doesn't work if a separate build directory is used. This patch fixes
those 2 bugs.


-- 
H.J. Lu (hjl@gnu.org)
----
Fri Jun 19 18:42:05 1998  H.J. Lu  (hjl@gnu.org)

	* Makefile.in (crtbeginS.o, crtendS.o): Add -fno-exceptions and
	-DCRTSTUFFS_O.
	(INSTALL): cd $(srcdir) before make.

Index: Makefile.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/Makefile.in,v
retrieving revision 1.1.1.55
diff -u -r1.1.1.55 Makefile.in
--- Makefile.in	1998/06/19 16:12:53	1.1.1.55
+++ Makefile.in	1998/06/19 16:24:34
@@ -1214,12 +1216,12 @@
 s-crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \
   defaults.h frame.h gbl-ctors.h
 	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
-	  -DCRT_BEGIN -finhibit-size-directive -fno-inline-functions \
-	  -g0 -c $(srcdir)/crtstuff.c 
+	  -DCRT_BEGIN -DCRTSTUFFS_O -finhibit-size-directive -fno-inline-functions \
+	  -fno-exceptions -g0 -c $(srcdir)/crtstuff.c 
 	mv crtstuff$(objext) crtbeginS$(objext)
 	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \
-	  -DCRT_END -finhibit-size-directive -fno-inline-functions \
-	  -g0 -c $(srcdir)/crtstuff.c -o crtendS$(objext)
+	  -DCRT_END -DCRTSTUFFS_O -finhibit-size-directive -fno-inline-functions \
+	  -fno-exceptions -g0 -c $(srcdir)/crtstuff.c -o crtendS$(objext)
 	touch s-crtS
 
 # Compile the start modules crt0.o and mcrt0.o that are linked with every program
@@ -2105,8 +2109,8 @@
 
 
 INSTALL: $(srcdir)/install1.texi $(srcdir)/install.texi
-	$(MAKEINFO) -D INSTALLONLY --no-header --no-split -o INSTALL \
-	$(srcdir)/install1.texi 
+	cd $(srcdir); $(MAKEINFO) -D INSTALLONLY --no-header \
+		--no-split -o INSTALL install1.texi 
 #
 # Deletion of files made during compilation.
 # There are four levels of this:


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