[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #27609] Stupid inference rule for yacc files can clobber C sources!
From: |
Paul D. Smith |
Subject: |
[bug #27609] Stupid inference rule for yacc files can clobber C sources! |
Date: |
Mon, 05 Oct 2009 19:56:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) Gecko/2009090217 Ubuntu/9.04 (jaunty) Firefox/3.0.14 |
Follow-up Comment #1, bug #27609 (project make):
This is how the default rule for building YACC files in GNU make has always
been, for 20-odd years. From the GNU make manual section "Catalog of Rules":
Yacc for C programs
n.c is made automatically from n.y by running Yacc with the command
`$(YACC) $(YFLAGS)'.
Lex for C programs
n.c is made automatically from n.l by running Lex. The actual command is
`$(LEX) $(LFLAGS)'.
Creating a statically-named "y.tab.c" from "foo.y" was an inane idea in the
first place: what happens if you have two different YACC files that generate
different parsers in the same directory? Ditto, of course, for lex.
I'm not sure what we can do about this.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27609>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!, Kaz Kylheku, 2009/10/05
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!,
Paul D. Smith <=
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!, Kaz Kylheku, 2009/10/05
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!, Kaz Kylheku, 2009/10/05
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!, Kaz Kylheku, 2009/10/05
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!, Paul D. Smith, 2009/10/05
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!, Kaz Kylheku, 2009/10/13
- [bug #27609] Stupid inference rule for yacc files can clobber C sources!, Kaz Kylheku, 2009/10/13