Many analyzer failures on non-Linux system (x86_64-apple-darwin)

Hans-Peter Nilsson hp@bitrange.com
Sun Jan 16 01:35:40 GMT 2022


Not seeing anyone doing the obvious one-up, so JFTR:

On Mon, 10 Jan 2022, David Malcolm via Gcc wrote:

> On Mon, 2022-01-10 at 17:13 +0100, FX wrote:
> > > FAIL: gcc.dg/analyzer/asm-x86-lp64-1.c
>
> The purpose of these asm tests is to verify that the analyzer doesn't
> get confused by various inline assembler directives used in the source
> of the Linux kernel.  So in theory they ought to work on any host, with
> a gcc configured for a suitable target.
>
> These tests are marked with "dg-do assemble" directives, which I'd
> hoped would mean it uses -S for the tests (to make a .s file),

No, that's "dg-do compile" (as in "compile but don't assemble").

Also, the default *is* actually "compile" - unless overridden in
an ancestor .exp.  Grep for dg-do-what-default in sibling .exp's
(like dfp/dfp.exp) if you consider changing the default in
analyzer.exp.

brgds, H-P


More information about the Gcc mailing list