On 3/17/21 4:40 PM, Martin Sebor wrote:

[*] Does -Wformat-diag really trigger when using older GCC to build?
I thought it only triggered in stage 2 and 3 when using the same GCC
to rebuild itself.

I always end up hopelessly confused by anything involving configure scripts and makefiles, but....

Our scripts normally configure cross-compilers with --disable-build-format-warnings and there's a comment on that bit that these diagnostics are normally enabled when building non-stage-1 compilers. A cross compiler doesn't bootstrap so is never stage 1, I guess. For the purposes of testing this patch I did an explicit --enable-build-format-warnings instead, anyway.

Jan-Benedict, who reported the problem to me off-list, said he just did

configure --target=nios2-linux-gnu

and

make all-gcc

using the host gcc including with his distro, identified as "Debian 10.2.1-6".

-Sandra

Reply via email to