This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(toplevel b-i-b patch) remove useless setting of 'dir'
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-patches at gcc dot gnu dot org, dj at redhat dot com
- Date: Sun, 24 Nov 2002 00:39:06 -0500
- Subject: (toplevel b-i-b patch) remove useless setting of 'dir'
"dir" in these targets was only used to select inside the embedded case
statement I removed. Whee! Tested on i686-pc-linux-gnu.
* Makefile.tpl: Strip out useless setting of 'dir'.
* Makefile.in: Regenerate.
Index: Makefile.tpl
===================================================================
RCS file: /cvs/gcc/gcc/Makefile.tpl,v
retrieving revision 1.5.2.15
diff -u -r1.5.2.15 Makefile.tpl
--- Makefile.tpl 23 Nov 2002 22:21:46 -0000 1.5.2.15
+++ Makefile.tpl 23 Nov 2002 22:32:37 -0000
@@ -896,8 +896,7 @@
.PHONY: all-[+module+] maybe-all-[+module+]
maybe-all-[+module+]:
all-[+module+]:
- @dir=[+module+]; \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
@@ -913,7 +912,6 @@
# This module is only tested in a native toolchain.
check-[+module+]:
@if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
- dir=[+module+]; \
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
@@ -925,8 +923,7 @@
[+ ELSE check +]
.PHONY: check-[+module+]
check-[+module+]:
- @dir=[+module+]; \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
@@ -943,8 +940,7 @@
.PHONY: install-[+module+] maybe-install-[+module+]
maybe-install-[+module+]:
install-[+module+]: installdirs
- @dir=[+module+]; \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
@@ -975,8 +971,7 @@
mv $(TARGET_SUBDIR)/[+module+]/tmpmulti.out $(TARGET_SUBDIR)/[+module+]/multilib.out; \
fi; \
fi; exit 0 # break command into two pieces
- @dir=[+module+] ; \
- if [ -d $(srcdir)/[+module+] ]; then \
+ @if [ -d $(srcdir)/[+module+] ]; then \
[ -d $(TARGET_SUBDIR)/[+module+] ] || mkdir $(TARGET_SUBDIR)/[+module+];\
r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
@@ -1059,8 +1054,7 @@
.PHONY: all-target-[+module+] maybe-all-target-[+module+]
maybe-all-target-[+module+]:
all-target-[+module+]:
- @dir=[+module+] ; \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/[+module+]; \
@@ -1076,8 +1070,7 @@
[+ ELSE check +]
.PHONY: check-target-[+module+]
check-target-[+module+]:
- @dir=[+module+] ; \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/[+module+]; \
@@ -1096,8 +1089,7 @@
.PHONY: install-target-[+module+] maybe-install-target-[+module+]
maybe-install-target-[+module+]:
install-target-[+module+]: installdirs
- @dir=[+module+] ; \
- r=`${PWD}`; export r; \
+ @r=`${PWD}`; export r; \
s=`cd $(srcdir); ${PWD}`; export s; \
$(SET_LIB_PATH) \
(cd $(TARGET_SUBDIR)/[+module+]; \