From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C916B3858D37; Sun, 23 Oct 2022 12:15:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C916B3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666527315; bh=lKX3VLwNulBd4OkNKIp5f9p2BZLBGPUIIhaPVg9fqsQ=; h=From:To:Subject:Date:From; b=ALub1Ks58JYW7Z2XhMT5O2grOWNevcE23Zbqvwu8K5s1upWRS/HeMw1ZBkxP0BUMN +0wZqKjpHFzJFlt+eNwtpm25ygVgGApMqmhvHalBaGnEaIZaJyz2MV+UxVjQLcoB9Z Ipk4pJMYQwkircfOIj1eTkGblXhUeafn4gH7SI5A= From: "rainer.keller@hs-esslingen.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107366] New: -fanalyzer with -fdiagnostics-format=sarif-file or sarif-stderr Date: Sun, 23 Oct 2022 12:15:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rainer.keller@hs-esslingen.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D107366 Bug ID: 107366 Summary: -fanalyzer with -fdiagnostics-format=3Dsarif-file or sarif-stderr Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rainer.keller@hs-esslingen.de Target Milestone: --- Created attachment 53760 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53760&action=3Dedit Compilation of -freport-bug Compiling hwloc-2.8.0 with -fanalyzer and either -fdiagnostics-format=3Dsarif-file or -fdiagnostics-format=3Dsarif-stderr pr= oduces: during IPA pass: analyzer Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. Unfortunately I wasn't able to produce a MWE. Steps to reproduce: wget https://download.open-mpi.org/release/hwloc/v2.8/hwloc-2.8.0.tar.bz2 tar xf hwloc-2.8.0.tar.bz2 && cd hwloc-2.8.0 mkdir BUILD && cd $_ ../configure --prefix=3D$PWD/usr make CFLAGS=3D"-fanalyzer -fdiagnostics-format=3Dsarif-stderr" fails in hwloc/diff.c Using -fdiagnostics-format=3Djson-stderr and -file works. The above does not seem to be related to https://gcc.gnu.org/PR106703 Attached is the -freport-bug of same file. Thanks=