From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 422843850237; Fri, 26 Aug 2022 07:32:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 422843850237 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661499164; bh=dYx5Xqx6CAFLjW/SADMWTqt9DghdX9GHOVD7KtDupNM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=q5oLz6nkUB97SChTLDdMqWZJNREc4QekWJE6crQmDQHfkl0s5DqeAQyhpuq18CxpY 4WGG+vymKbvo+Oxw5xB1SV5OG0gnPyra3rWI4j+FT5KbwMYeUGL/9Ks+x3xm1O13cH Cmo2r6vmzCuw6AmAF0PgMUdGbEX3N1sBbbD+gGYM= From: "jbeulich at suse dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/106741] suspicious %qE related warning when building gcc Date: Fri, 26 Aug 2022 07:32:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jbeulich at suse dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106741 --- Comment #3 from jbeulich at suse dot com --- If I'm reading the log right, it's stages 2 and 3 where the warnings appear, while stage 1 (using gcc10) don't expose such a warning. Interestingly the warnings do appear (once) when doing cross builds (again using gcc10) - do stage1 builds have more warnings suppressed than (single-stage) cross build= s? There also was no such warning when building 12.1.0. I guess this (in gcc/analyzer/analyzer.h) might matter: /* Disable -Wformat-diag; we want to be able to use pp_printf for logging/dumping without complying with the rules for diagnostics. */ #if __GNUC__ >=3D 10 #pragma GCC diagnostic ignored "-Wformat-diag" #endif This does neither suppress -Wformat=3D nor -Wformat-extra-args.=