[PATCH/RFA] yyrule, yyname remap in .y files

Andrew Cagney ac131313@ges.redhat.com
Mon Sep 2 17:53:00 GMT 2002


> 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




More information about the Gdb-patches mailing list