Commit f137e7dc by Richard Kenner

(c-gperf.h): New rule.

(c-lex.o): Depends on c-gperf.h.
(realclean): Delete c-gperf.h.
(distdir): Build c-gperf.h.
(diff): Omit differences in c-gperf.h.

From-SVN: r6693
parent 2d182c6f
...@@ -818,11 +818,15 @@ $(srcdir)/c-parse.y: $(srcdir)/c-parse.in ...@@ -818,11 +818,15 @@ $(srcdir)/c-parse.y: $(srcdir)/c-parse.in
-e "/^ifc$$/d" -e "/^end ifc$$/d" \ -e "/^ifc$$/d" -e "/^end ifc$$/d" \
$(srcdir)/c-parse.in > $(srcdir)/c-parse.y $(srcdir)/c-parse.in > $(srcdir)/c-parse.y
$(srcdir)/c-gperf.h: $(srcdir)/c-parse.gperf
gperf -p -j1 -i 1 -g -o -t -G -N is_reserved_word -k1,3,$$ \
$(srcdir)/c-parse.gperf > $(srcdir)/c-gperf.h
c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H) c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \ c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
input.h flags.h input.h flags.h c-gperf.h
c-aux-info.o : c-aux-info.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h c-aux-info.o : c-aux-info.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
c-pragma.o: c-pragma.c $(CONFIG_H) $(TREE_H) c-pragma.o: c-pragma.c $(CONFIG_H) $(TREE_H)
...@@ -1739,7 +1743,7 @@ extraclean: distclean ...@@ -1739,7 +1743,7 @@ extraclean: distclean
# Get rid of every file that's generated from some other file. # Get rid of every file that's generated from some other file.
# Most of these files ARE PRESENT in the GCC distribution. # Most of these files ARE PRESENT in the GCC distribution.
realclean: distclean bytecode.realclean realclean: distclean bytecode.realclean
-rm -f c-parse.y objc-parse.y -rm -f c-parse.y c-gperf.h objc-parse.y
-rm -f cp-parse.c cp-parse.h cp-parse.output -rm -f cp-parse.c cp-parse.h cp-parse.output
-rm -f objc-parse.c objc-parse.output -rm -f objc-parse.c objc-parse.output
-rm -f c-parse.c c-parse.h c-parse.output -rm -f c-parse.c c-parse.h c-parse.output
...@@ -2006,7 +2010,7 @@ gcc.xtar: distdir ...@@ -2006,7 +2010,7 @@ gcc.xtar: distdir
# Make the distribution. # Make the distribution.
tar chf gcc.xtar gcc-$(version) tar chf gcc.xtar gcc-$(version)
distdir: doc $(srcdir)/INSTALL c-parse.y objc-parse.y cp-parse.y \ distdir: doc $(srcdir)/INSTALL c-parse.y c-gperf.h objc-parse.y cp-parse.y \
c-parse.c cp-parse.c objc-parse.c cexp.c c-parse.c cp-parse.c objc-parse.c cexp.c
@if grep -s "for version ${mainversion}" gcc.texi > /dev/null; \ @if grep -s "for version ${mainversion}" gcc.texi > /dev/null; \
then true; \ then true; \
...@@ -2055,10 +2059,11 @@ distdir: doc $(srcdir)/INSTALL c-parse.y objc-parse.y cp-parse.y \ ...@@ -2055,10 +2059,11 @@ distdir: doc $(srcdir)/INSTALL c-parse.y objc-parse.y cp-parse.y \
# creates a diff file between an older distribution and this one. # creates a diff file between an older distribution and this one.
# The -P option assumes this is GNU diff. # The -P option assumes this is GNU diff.
diff: diff:
diff -rc2P -x c-parse.y -x c-parse.c -x c-parse.h -x objc-parse.y \ diff -rc2P -x c-parse.y -x c-parse.c -x c-parse.h -x c-gperf.h \
-x cp-parse.c -x cp-parse.h -x cexp.c -x bi-parser.c \ -x objc-parse.y -x cp-parse.c -x cp-parse.h -x cexp.c \
-x objc-parse.c -x TAGS -x "gcc.??" -x "gcc.??s" -x gcc.aux \ -x bi-parser.c -x objc-parse.c -x TAGS -x "gcc.??" -x "gcc.??s" \
-x "cpp.??s" -x "cpp.??" -x cpp.aux -x "cpp.info*" -x "gcc.info*" \ -x gcc.aux -x "cpp.??s" -x "cpp.??" -x cpp.aux -x "cpp.info*"
-x "gcc.info*" \
gcc-$(oldversion) gcc-$(version) > diffs gcc-$(oldversion) gcc-$(version) > diffs
# do make -f ../gcc/Makefile maketest DIR=../gcc # do make -f ../gcc/Makefile maketest DIR=../gcc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment