[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fix prototype and definition of yyerror in *.y
From: |
Alan Modra |
Subject: |
Re: [PATCH] fix prototype and definition of yyerror in *.y |
Date: |
Sat, 6 Nov 2021 21:27:41 +1030 |
On Fri, Nov 05, 2021 at 11:41:38AM +0100, Andrea Monaco wrote:
> I think in both cases the problem is the following lines in the
> generated files:
>
> #if !defined yyerror && !defined YYERROR_IS_DECLARED
> void yyerror (const char *msg);
> #endif
Yes, bison-3.8 generates these prototypes. Thanks for the report and
patch. I've extended your patch to other files too.
https://sourceware.org/pipermail/binutils/2021-November/118441.html
--
Alan Modra
Australia Development Lab, IBM