aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorPaul N. Hilfinger <hilfinger@adacore.com>2004-10-06 09:28:55 +0000
committerPaul N. Hilfinger <hilfinger@adacore.com>2004-10-06 09:28:55 +0000
commit2348555434c49b1f1e6f006f7ad43f7a1603747c (patch)
tree40f6fd6ddc88177b5c308b8d41bd807d0a2e32ec /gdb/Makefile.in
parentc0409442a80ea65ad4a44447773d843517e6b366 (diff)
downloadgdb-2348555434c49b1f1e6f006f7ad43f7a1603747c.zip
gdb-2348555434c49b1f1e6f006f7ad43f7a1603747c.tar.gz
gdb-2348555434c49b1f1e6f006f7ad43f7a1603747c.tar.bz2
2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
* Makefile.in (.l.c): Do conversions of names of alloc and free functions that are done for .y.c files, plus special one for yy_flex_realloc. Also, correct missing-file tests here. * ada-lex.l (malloc, free): Remove macros. (resize_tempbuf): Use "realloc"; rely on sed changes to convert to xrealloc. (ada_flex_use): Dummy definition to remove warnings about unused functions. * ada-exp.y (dummy_string_to_ada_operator): Temporary definition to suppress warning.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in24
1 files changed, 17 insertions, 7 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 3a4bd37..7593256 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1582,14 +1582,24 @@ po/$(PACKAGE).pot: force
-rm $@.tmp
mv $@.new ./$*.c
.l.c:
- @if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
- echo $(FLEX) -o$@ $<; \
- $(FLEX) -o$@ $<; \
- elif [ ! -f $@ -a ! -f $< ]; then \
- echo "$< missing and flex not available."; \
- false; \
- elif [ ! -f $@ ]; then \
+ if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
+ $(FLEX) -o$@ $< && \
+ rm -f $@.new && \
+ sed -e '/extern.*malloc/d' \
+ -e '/extern.*realloc/d' \
+ -e '/extern.*free/d' \
+ -e '/include.*malloc.h/d' \
+ -e 's/malloc/xmalloc/g' \
+ -e 's/realloc/xrealloc/g' \
+ -e 's/yy_flex_xrealloc/yyxrealloc/g' \
+ < $@ > $@.new && \
+ rm -f $@ && \
+ mv $@.new $@; \
+ elif [ -f $@ ]; then \
echo "Warning: $*.c older than $*.l and flex not available."; \
+ else \
+ echo "$@ missing and flex not available."; \
+ false; \
fi
.PRECIOUS: ada-exp.c ada-lex.c