From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27323 invoked by alias); 8 Oct 2004 10:28:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27099 invoked from network); 8 Oct 2004 10:27:45 -0000 Received: from unknown (HELO nile.gnat.com) (205.232.38.5) by sourceware.org with SMTP; 8 Oct 2004 10:27:45 -0000 Received: from localhost (localhost [127.0.0.1]) by nile.gnat.com (Postfix) with ESMTP id 8B5AFF2A02; Fri, 8 Oct 2004 06:27:41 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26126-01-6; Fri, 8 Oct 2004 06:27:41 -0400 (EDT) Received: by nile.gnat.com (Postfix, from userid 1345) id 322A7F29FF; Fri, 8 Oct 2004 06:27:41 -0400 (EDT) From: Paul Hilfinger To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: ada vs identical flex Message-Id: <20041008102741.322A7F29FF@nile.gnat.com> Date: Fri, 08 Oct 2004 11:00:00 -0000 X-Virus-Scanned: by amavisd-new at nile.gnat.com X-SW-Source: 2004-10/txt/msg00247.txt.bz2 > For yyrealloc, I'm finding that some cases are wrapped in #ifndef > YY_USES_REJECT, while others are not vis: > NBSD FC3 > declaration yes no > definition yes no > reference yes yes > ada_flex_use no no > On NetBSD, since ada_flex_use tries to refer to a function wrapped in > #ifndef YY_USE_REJECT (i.e., #ifdef'ed out) the build barfs. Andrew, I think I can get rid of the yyrealloc stuff altogether. It seems that one of the rules in ada-lex is not really used, but causes the non-use of yyrealloc as a side-effect. If you could, would you try the following patch with the problematic platform/flex version? Thanks. Paul Hilfinger Index: merge.224/gdb/ada-lex.l --- merge.224/gdb/ada-lex.l Wed, 06 Oct 2004 02:59:24 -0700 hilfingr +++ merge.224(w)/gdb/ada-lex.l Fri, 08 Oct 2004 03:18:25 -0700 hilfingr @@ -154,8 +154,6 @@ static int find_dot_all (const char *); return CHARLIT; } -\"{OPER}\"/{WHITE}*"(" { return processId (yytext, yyleng); } - \" { tempbuf_len = 0; BEGIN IN_STRING; @@ -926,5 +924,5 @@ yywrap(void) typedef void (*dummy_function) (); dummy_function ada_flex_use[] = { - (dummy_function) yyrealloc, (dummy_function) yyunput + (dummy_function) yyunput };