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: [PATCH/RFA] yyrule, yyname remap in .y files


Accoring to the ChangeLogs, there was some excitement about this back
in 1992.

In any case, the fact remains that some versions of yacc(1) export yyrule
and yyname when YYDEBUG is enabled.  YYDEBUG is enabled by default in the
.y files.

This is worked around on the i386-openbsd host by setting MH_CFLAGS
to -DYYDEBUG=0.

Now, I could do that for every single NetBSD host, but it seems a little
silly do have to work around this in multiple places for multiple hosts
when we could just remap these symbols and just be done with it.  This
patch does that.

OK to commit?

	* ada-exp.y (yyname, yyrule): Remap global variables that appear
	when YYDEBUG is set to 1.
	* c-exp.y: Likewise.
	* f-exp.y: Likewise.
	* jv-exp.y: Likewise.
	* m2-exp.y: Likewise.
	* p-exp.y: Likewise.
Yes, ok.

Andrew



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