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 PR bootstrap/10007


Hi,

It's the libjava-is-compiled-even-if-the-java-language-is-not-enabled bug.

Bootstrap with Java enabled, then do 'make distclean', configure without Java 
(for example c,c++) and do 'make bootstrap': libjava gets built (tested on 
several Sparc boxes).

I didn't investigate the chain of dependencies but, after 'make distclean', 
the $(objdir) directory is empty except that it still contains the 'gcc' 
subdirectory. Issuing 'rm -r gcc' solves the problem.

Ok for mainline?

Mark, I guess one could argue that it is regression from the time there was 
no Java compiler. And it can be really annoying. Ok for 3.3 branch?

-- 
Eric Botcazou


2003-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>

	PR bootstrap/10007
	* Makefile.in (local-distclean): Remove the contents of
	all directories recursively.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.in,v
retrieving revision 1.162
diff -u -r1.162 Makefile.in
--- Makefile.in	3 May 2003 01:29:01 -0000	1.162
+++ Makefile.in	18 May 2003 15:52:14 -0000
@@ -1112,12 +1112,7 @@
 	-if [ "$(TARGET_SUBDIR)" != "." ]; then \
 	  rm -rf $(TARGET_SUBDIR); \
 	else true; fi
-	-rm -rf $(BUILD_SUBDIR)
-	-rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
-	-rm -f texinfo/doc/Makefile texinfo/po/POTFILES
-	-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-	-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
-	-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
+	-rm -rf $(BUILD_SUBDIR) fastjar gcc libiberty texinfo zlib 2>/dev/null
 
 local-maintainer-clean:
 	@echo "This command is intended for maintainers to use;"
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.in,v
retrieving revision 1.129.2.8
diff -u -r1.129.2.8 Makefile.in
--- Makefile.in	3 May 2003 18:08:45 -0000	1.129.2.8
+++ Makefile.in	18 May 2003 15:52:49 -0000
@@ -1011,11 +1011,7 @@
 	-if [ "$(TARGET_SUBDIR)" != "." ]; then \
 	  rm -rf $(TARGET_SUBDIR); \
 	else true; fi
-	-rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
-	-rm -f texinfo/doc/Makefile texinfo/po/POTFILES
-	-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
-	-rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
-	-rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
+	-rm -rf fastjar gcc libiberty texinfo zlib 2>/dev/null
 
 local-maintainer-clean:
 	@echo "This command is intended for maintainers to use;"

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