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]
Other format: [Raw text]

PATCH: Fix bit-rotted --enable-maintainer-mode (bootstrap/20437)


:ADDPATH bootstrap/build

This is not directly related to the SOC project, but since I've
encountered it and fix seemed easy, I might as well submit it. Also a
good way to warm-up on GCC check-in procedures.

This patch fixes autotools invocation for fixincludes if srcdir !=
objdir and adds missing gcc/Makefile.in dependency. I'm asking for
approval, but I wonder if such patches are considered obvious?

Running a bootstrap with this patch and --enable-maintainer-mode
causes (spurious?) regenerations of some files (Makefile.in,
aclocal.m4 and configure in many subdirs) that are not dependant on
the changed files below. Should such files be submitted in the patch?

Bootstrap with --enable-languages=c,c++ --disable-libgcj
--enable-maintainer-mode in progress on i686-pc-cygwin, OK if it
succeeds or succeeds with "make -k" and unrelated failure below?

../../../../gcc/libstdc++-v3/libsupc++/del_op.cc:1: warning:
-ffunction-sections may affect debugging on some targets

TIA,
--
Laurynas

fixincludes/ChangeLog:

2006-06-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>

	PR bootstrap/20437
	* Makefile.in (configure, config.h.in): change into $(srcdir)
	before autoconf or autoheader call.

gcc/ChangeLog:

2006-06-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>

	PR bootstrap/20437
	* Makefile.in (configure): add missing acinclude.m4 dependency.

Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in	(revision 114355)
+++ gcc/Makefile.in	(working copy)
@@ -1214,7 +1214,8 @@
# might be on a read-only file system.  If configured for maintainer mode
# then do allow autoconf to be run.

-$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac
+$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/aclocal.m4 \
+  $(srcdir)/acinclude.m4
	(cd $(srcdir) && autoconf)

gccbug:	$(srcdir)/gccbug.in
Index: fixincludes/Makefile.in
===================================================================
--- fixincludes/Makefile.in	(revision 114355)
+++ fixincludes/Makefile.in	(working copy)
@@ -160,10 +160,10 @@
	$(SHELL) ./config.status --recheck

$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac
-	autoconf
+	cd $(srcdir) && autoconf

$(srcdir)/config.h.in: @MAINT@ $(srcdir)/configure.ac
-	autoheader
+	cd $(srcdir) && autoheader

$(srcdir)/aclocal.m4: @MAINT@ $(srcdir)/../gcc/aclocal.m4
	cp $(srcdir)/../gcc/aclocal.m4 .


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