Commit 98cc5050 by Bruce Korb Committed by Bruce Korb

Hapless User Hint for gperf

From-SVN: r29207
parent d2cdcaca
1999-09-08 Bruce Korb autogen@linuxbox.com
* gcc/ch/Makefile.in: Give the hapless gperf user a hint about
why "gperf -F" fails.
* gcc/cp/Makefile.in: ditto
* gcc/Makefile.in: ditto
* gcc/java/Makefile.in: ditto
Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com> Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
* lists.c: Include ggc.h. * lists.c: Include ggc.h.
......
...@@ -1337,7 +1337,10 @@ $(srcdir)/c-parse.y: c-parse.in ...@@ -1337,7 +1337,10 @@ $(srcdir)/c-parse.y: c-parse.in
$(srcdir)/c-gperf.h: c-parse.gperf $(srcdir)/c-gperf.h: c-parse.gperf
gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word \ gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word \
-k1,3,$$ $(srcdir)/c-parse.gperf >tmp-gperf.h -k1,3,$$ $(srcdir)/c-parse.gperf >tmp-gperf.h || ( \
echo "Please update your 'gperf' from the GCC infrastructure" >&2 ; \
echo " ftp://sourceware.cygnus.com/pub/egcs/infrastructure/gperf*" >&2 ; \
exit 1 )
$(srcdir)/move-if-change tmp-gperf.h $(srcdir)/c-gperf.h $(srcdir)/move-if-change tmp-gperf.h $(srcdir)/c-gperf.h
c-decl.o : c-decl.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-common.h ggc.h \ c-decl.o : c-decl.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-common.h ggc.h \
...@@ -2194,7 +2197,7 @@ stmp-fixinc: fixinc.sh gsyslimits.h ...@@ -2194,7 +2197,7 @@ stmp-fixinc: fixinc.sh gsyslimits.h
if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \ if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \
if [ -d $(libdir)/gcc-lib/$(target_alias)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias)/$(version) ; fi; \ if [ -d $(libdir)/gcc-lib/$(target_alias)/$(version) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias)/$(version) ; fi; \
else true; fi else true; fi
exit 1
touch stmp-fixinc touch stmp-fixinc
# Files related to the fixproto script. # Files related to the fixproto script.
......
...@@ -254,7 +254,10 @@ $(srcdir)/hash.h: ...@@ -254,7 +254,10 @@ $(srcdir)/hash.h:
sed -f sed.tmp < gperf.tmp > gperf.tmp2 sed -f sed.tmp < gperf.tmp > gperf.tmp2
cat $(srcdir)/gperf gperf.tmp2 > gperf.tmp cat $(srcdir)/gperf gperf.tmp2 > gperf.tmp
gperf -L C -F ', 0, 0, 0' -D -E -S1 -p -j1 -i 1 -g -o -t -k'*' \ gperf -L C -F ', 0, 0, 0' -D -E -S1 -p -j1 -i 1 -g -o -t -k'*' \
gperf.tmp > $(srcdir)/hash.h gperf.tmp > $(srcdir)/hash.h || ( \
echo "Please update your 'gperf' from the GCC infrastructure" >&2 ; \
echo " ftp://sourceware.cygnus.com/pub/egcs/infrastructure/gperf*" >&2 ; \
exit 1 )
$(RM) gperf.tmp gperf.tmp2 sed.tmp $(RM) gperf.tmp gperf.tmp2 sed.tmp
actions.o : actions.c $(CONFIG_H) $(CHILL_TREE_H) actions.h $(RTL_H) \ actions.o : actions.c $(CONFIG_H) $(CHILL_TREE_H) actions.h $(RTL_H) \
......
...@@ -234,7 +234,10 @@ $(PARSE_C) : $(srcdir)/parse.y ...@@ -234,7 +234,10 @@ $(PARSE_C) : $(srcdir)/parse.y
# so we should be consistent. # so we should be consistent.
$(srcdir)/hash.h: $(srcdir)/gxx.gperf $(srcdir)/hash.h: $(srcdir)/gxx.gperf
gperf -L C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word \ gperf -L C -F ', 0, 0' -p -j1 -g -o -t -N is_reserved_word \
'-k1,4,7,$$' $(srcdir)/gxx.gperf >$(srcdir)/hash.h '-k1,4,7,$$' $(srcdir)/gxx.gperf >$(srcdir)/hash.h || ( \
echo "Please update your 'gperf' from the GCC infrastructure" >&2 ; \
echo " ftp://sourceware.cygnus.com/pub/egcs/infrastructure/gperf*" >&2 ; \
exit 1 )
spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) $(PARSE_H) $(srcdir)/../flags.h \ spew.o : spew.c $(CONFIG_H) $(CXX_TREE_H) $(PARSE_H) $(srcdir)/../flags.h \
lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h lex.h $(srcdir)/../system.h $(srcdir)/../toplev.h
......
...@@ -233,7 +233,10 @@ lang.o: $(srcdir)/java-tree.def ...@@ -233,7 +233,10 @@ lang.o: $(srcdir)/java-tree.def
keyword.h: keyword.gperf keyword.h: keyword.gperf
gperf -L C -F ', 0' -p -t -j1 -i 1 -g -o -N java_keyword -k1,3,$$ \ gperf -L C -F ', 0' -p -t -j1 -i 1 -g -o -N java_keyword -k1,3,$$ \
keyword.gperf > keyword.h keyword.gperf > keyword.h || ( \
echo "Please update your 'gperf' from the GCC infrastructure" >&2 ; \
echo " ftp://sourceware.cygnus.com/pub/egcs/infrastructure/gperf*" >&2 ; \
exit 1 )
jcf-path.o : jcf-path.c $(CONFIG_H) $(srcdir)/../system.h jcf.h jcf-path.o : jcf-path.c $(CONFIG_H) $(srcdir)/../system.h jcf.h
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
......
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