This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] remove dependency of f-exp.tab.c on c-exp.tab.c
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: carlton at math dot stanford dot edu, gdb-patches at sources dot redhat dot com
- Date: Mon, 2 Dec 2002 13:33:15 -0600
- Subject: Re: [rfa] remove dependency of f-exp.tab.c on c-exp.tab.c
Hi David,
At first I thought that this might be a Makefile hack to prevent Make
from running multiple copies of yacc in parallel if the user runs a
parallel build, "make -j".
Classic yacc writes output into y.tab.c no matter what the input file
name. Gnu yacc (bison) fixed this brain damage, but gdb builds on lots
of hosts, so it has to accommodate the brain damage. Adding a bunch
of "foo-exp.tab.c: bar-exp-tab.c" dependencies would serialize the
yacc executions.
But gdb already works around the fixed "y.tab.c" name by using a wrapper
script, ylwrap. ylwrap creates a unique temporary directory and runs
yacc inside there.
So I don't know what the point of that dependency is!
Michael C