cvs commit: src/gnu/usr.bin/gdb/gdb

Simon 'corecode' Schubert corecode at
Thu Nov 18 08:27:20 PST 2004

On 18.11.2004, at 17:19, YONETANI Tomokazu wrote:
The question is, whether we can change .y.c rule in to make 
it -jN
(as pointed out by Brad).
We can't if YFLAGS include -d. Because our yacc has a slightly 
meaning of the -o option. It does set the name of the c-file and ALSO 
the prefix for the headre file.
Ah.. yuck. What about this, then?

-# XXX not -j safe
+# XXX hopefully -j safe..
-	mv ${.TARGET}
+	${YACC} ${YFLAGS} -b $$$$ ${.IMPSRC}
+	mv $$$$.tab.c ${.TARGET}
+.if !empty(${YFLAGS:M-d})
+	mv $$$$.tab.h
This is really evil. Don't we want to just kick this questionable 
"portability"? We already broke much more legacy things...

\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00004.pgp
Type: application/octet-stream
Size: 186 bytes
Desc: "Description: This is a digitally signed message part"
URL: <>

More information about the Commits mailing list