aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-10-13 16:16:30 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-10-13 16:16:30 +0000
commit4b9454025b3a5dc0f7bed051d5026a09b5db6376 (patch)
tree1c009b7d7928662a00cf610e735dbde43609ec49
parentc7319d87dbcb3c2b6e7ffa194eb3854690bc9e90 (diff)
downloadgcc-4b9454025b3a5dc0f7bed051d5026a09b5db6376.zip
gcc-4b9454025b3a5dc0f7bed051d5026a09b5db6376.tar.gz
gcc-4b9454025b3a5dc0f7bed051d5026a09b5db6376.tar.bz2
Makefile.in (c-parse.c, tradcif.c): Create atomically.
* Makefile.in (c-parse.c, tradcif.c): Create atomically. * objc/Make-lang.in (objc-parse.c): Likewise. cp: * Makefile.in (parse.c, parse.h): Create atomically. java: * Make-lang.in (parse.c, parse-scan.c): Create atomically. * Makefile.in (parse.c, parse-scan.c): Likewise. From-SVN: r36861
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/Makefile.in6
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/Makefile.in5
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/Make-lang.in10
-rw-r--r--gcc/java/Makefile.in10
-rw-r--r--gcc/objc/Make-lang.in3
8 files changed, 37 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fccc2b7..f826ec3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * Makefile.in (c-parse.c, tradcif.c): Create atomically.
+
+ * objc/Make-lang.in (objc-parse.c): Likewise.
+
2000-10-13 Richard Earnshaw <rearnsha@arm.com>
* arm.c: Include obstack.h
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index eeb1e19..7f9fcfe 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1103,7 +1103,8 @@ c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h $(GGC_H) intl.h \
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
$(srcdir)/c-parse.c: $(srcdir)/c-parse.y
- cd $(srcdir); $(BISON) $(BISONFLAGS) -o c-parse.c c-parse.y
+ cd $(srcdir); $(BISON) $(BISONFLAGS) -o c-p$$$$.c c-parse.y ; \
+ mv -f c-p$$$$.c c-parse.c
$(srcdir)/c-parse.y: c-parse.in
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
@@ -1852,7 +1853,8 @@ tradcpp.o: tradcpp.c $(CONFIG_H) system.h version.h cppdefault.h
tradcif.o: $(srcdir)/tradcif.c $(CONFIG_H) system.h defaults.h
$(srcdir)/tradcif.c: $(srcdir)/tradcif.y
- cd $(srcdir); $(BISON) $(BISONFLAGS) -o tradcif.c tradcif.y
+ cd $(srcdir); $(BISON) $(BISONFLAGS) -o tr$$$$.c tradcif.y ; \
+ mv -f tr$$$$.c tradcif.c
# Note for the stamp targets, we run the program `true' instead of
# having an empty command (nothing following the semicolon).
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index d068eeb..739e9b2 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * Makefile.in (parse.c, parse.h): Create atomically.
+
2000-10-12 Mark Mitchell <mark@codesourcery.com>
* class.c (current_obstack): Remove.
diff --git a/gcc/cp/Makefile.in b/gcc/cp/Makefile.in
index 6a20301..ac5c9f7 100644
--- a/gcc/cp/Makefile.in
+++ b/gcc/cp/Makefile.in
@@ -225,8 +225,9 @@ parse.o : $(PARSE_C) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h \
CONFLICTS = expect 33 shift/reduce conflicts and 58 reduce/reduce conflicts.
$(PARSE_H) $(PARSE_C) : $(srcdir)/parse.y
@echo $(CONFLICTS)
- cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o parse.c parse.y
- cd $(srcdir); grep '^#define[ ]*YYEMPTY' parse.c >>parse.h
+ cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o p$$$$.c parse.y ; \
+ grep '^#define[ ]*YYEMPTY' p$$$$.c >> p$$$$.h ; \
+ mv -f p$$$$.c $(PARSE_C) ; mv -f p$$$$.h $(PARSE_H)
#$(PARSE_C) $(PARSE_H) : stamp-parse ; @true
#stamp-parse: $(srcdir)/parse.y
# @echo $(CONFLICTS)
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index aa9bb2b..8976390 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * Make-lang.in (parse.c, parse-scan.c): Create atomically.
+
+ * Makefile.in (parse.c, parse-scan.c): Likewise.
+
2000-10-12 Mark Mitchell <mark@codesourcery.com>
* class.c (temporary_obstack): Remove.
diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in
index 6036f60..35a174a 100644
--- a/gcc/java/Make-lang.in
+++ b/gcc/java/Make-lang.in
@@ -122,12 +122,14 @@ JAVABISONFLAGS = --name-prefix=java_
$(PARSE_C): $(srcdir)/java/parse.y
$(SET_BISON); \
- cd $(PARSE_DIR) && $$bison -t $(BISONFLAGS) $(JAVABISONFLAGS) \
- -o parse.c $(PARSE_RELDIR)/parse.y
+ cd $(PARSE_DIR) ; $$bison -t $(BISONFLAGS) $(JAVABISONFLAGS) \
+ -o p$$$$.c $(PARSE_RELDIR)/parse.y ; \
+ mv -f p$$$$.c parse.c
$(PARSE_SCAN_C): $(srcdir)/java/parse-scan.y
$(SET_BISON); \
- cd $(PARSE_DIR) && $$bison -t $(BISONFLAGS) -o parse-scan.c \
- $(PARSE_RELDIR)/parse-scan.y
+ cd $(PARSE_DIR) ; $$bison -t $(BISONFLAGS) -o ps$$$$.c \
+ $(PARSE_RELDIR)/parse-scan.y ; \
+ mv -f ps$$$$.c parse-scan.c
# This must be kept in sync with dependencies in Makefile.in.
JV_SCAN_SOURCES = $(srcdir)/java/parse-scan.y $(srcdir)/java/lex.c \
diff --git a/gcc/java/Makefile.in b/gcc/java/Makefile.in
index 7db863c..9608178 100644
--- a/gcc/java/Makefile.in
+++ b/gcc/java/Makefile.in
@@ -230,12 +230,14 @@ PARSE_H = $(srcdir)/parse.h
$(PARSE_C): $(srcdir)/parse.y
$(SET_BISON); \
- cd $(PARSE_DIR) && $$bison -t $(BISONFLAGS) $(JAVABISONFLAGS) \
- -o parse.c $(PARSE_RELDIR)/parse.y
+ cd $(PARSE_DIR) ; $$bison -t $(BISONFLAGS) $(JAVABISONFLAGS) \
+ -o p$$$$.c $(PARSE_RELDIR)/parse.y ; \
+ mv -f p$$$$.c parse.c
$(PARSE_SCAN_C): $(srcdir)/parse-scan.y
$(SET_BISON); \
- cd $(PARSE_DIR) && $$bison -t $(BISONFLAGS) -o parse-scan.c \
- $(PARSE_RELDIR)/parse-scan.y
+ cd $(PARSE_DIR) ; $$bison -t $(BISONFLAGS) -o ps$$$$.c \
+ $(PARSE_RELDIR)/parse-scan.y ; \
+ mv -f ps$$$$.c parse-scan.c
lex.c: keyword.h lex.h
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in
index 9206838..049c306 100644
--- a/gcc/objc/Make-lang.in
+++ b/gcc/objc/Make-lang.in
@@ -75,7 +75,8 @@ objc-parse.o : $(srcdir)/objc/objc-parse.c \
$(INTL_TARGETS): $(srcdir)/objc/objc-parse.c
$(srcdir)/objc/objc-parse.c : $(srcdir)/objc/objc-parse.y
cd $(srcdir)/objc; \
- $(BISON) $(BISONFLAGS) -o objc-parse.c objc-parse.y
+ $(BISON) $(BISONFLAGS) -o op$$$$.c objc-parse.y ; \
+ mv -f op$$$$.c objc-parse.c
$(srcdir)/objc/objc-parse.y: $(srcdir)/c-parse.in
echo '/*WARNING: This file is automatically generated!*/' >tmp-objc-prs.y