This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]