From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29433 invoked by alias); 3 Sep 2002 00:53:30 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29314 invoked from network); 3 Sep 2002 00:53:29 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 3 Sep 2002 00:53:29 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7716F3E00; Mon, 2 Sep 2002 20:53:25 -0400 (EDT) Message-ID: <3D740805.5040702@ges.redhat.com> Date: Mon, 02 Sep 2002 17:53:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason R Thorpe Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH/RFA] yyrule, yyname remap in .y files References: <20020902112320.K4034@dr-evil.shagadelic.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00029.txt.bz2 > 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