From feb9191d075536eb2aa53f73fcaeb1547b14364e Mon Sep 17 00:00:00 2001 From: mame Date: Sat, 20 May 2017 12:23:27 +0000 Subject: ripper.c should have `#line "ripper.c"`, not `#line "parse.c"` The order of sed commands in Makefile of ripper was wrong: it tries to replace `y.tab.c` with `ripper.c`, but before that, ytab.sed replaced `y.tab.c` with `parse.c`, which led to a wrong result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/ripper/depend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/ripper') diff --git a/ext/ripper/depend b/ext/ripper/depend index a6af96f080..d4f0a449d5 100644 --- a/ext/ripper/depend +++ b/ext/ripper/depend @@ -12,7 +12,7 @@ ripper.o: ripper.c .y.c: $(ECHO) compiling compiler $< $(Q) $(BISON) -t -v -oy.tab.c $< - $(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@ + $(Q) sed -e "/^#/s!y\.tab\.c!$@!" -f $(top_srcdir)/tool/ytab.sed y.tab.c > $@ @$(RM) y.tab.c all: check -- cgit v1.2.3