[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser |
Date: |
Tue, 20 Dec 2022 08:30:02 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 |
On 20/12/22 00:19, Philippe Mathieu-Daudé wrote:
Hi,
On 16/12/22 21:48, Taylor Simpson wrote:
----------------------------------------------------------------
12-21)
Instruction definition parser (idef-parser) from rev.ng
Parses the instruction semantics and generates TCG
Building QEMU with Clang I'm now getting:
target/hexagon/idef-parser.p/idef-parser.tab.c:2197:9: error: variable
'yynerrs' set but not used [-Werror,-Wunused-but-set-variable]
int yynerrs = 0;
^
idef-parser.tab.c is built using:
193 idef_parser = executable(
194 'idef-parser',
195 [flex.process(idef_parser_dir / 'idef-parser.lex'),
196 bison.process(idef_parser_dir / 'idef-parser.y'),
197 idef_parser_dir / 'parser-helpers.c'],
198 include_directories: ['idef-parser', '../../include/'],
199 dependencies: [glib_dep],
200 c_args: ['-Wextra'],
^^^^^^^^
201 native: true
202 )
(see commit c0a41ee631 "target/hexagon: import parser for idef-parser")
Do we really need this level? IIUC the problem with -Wextra is using a
newer compiler toolchain it can include warnings we haven't fixed. Maybe
worthwhile but it can break from times to times.
Using '-Wextra -Wno-unused-but-set-variable' seems a hack. I guess I'd
simply remove -Wextra for simplicity, since no much value is added here.
Regards,
Phil.
- Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser, (continued)
- Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser, Peter Maydell, 2022/12/19
- Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser, Philippe Mathieu-Daudé, 2022/12/19
- Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser,
Philippe Mathieu-Daudé <=
- Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser, Alessandro Di Federico, 2022/12/20
- Re: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser, Philippe Mathieu-Daudé, 2022/12/20
- RE: [PULL 00/21] Hexagon update: bug fixes, performance, idef-parser, Taylor Simpson, 2022/12/20