From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 297DD3858D33; Sat, 21 Jan 2023 05:59:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 297DD3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674280758; bh=LObD52EXBa1btfktdF4E3EdFo8qiW00WV9MZX/Wxw90=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C+fktFggtlOl7OMzeCVTs2iaKi45xFti9GF5xJ+txOHFTLE+1ZEqbFtddM4UBGKFC 9IKRMvFooBEZdnfTDvmKDWdgH/L0/ZhebCIOezGs7OXxO6B04JpOaI7XjanhJgSw8u cKxJv1pRG9a9rCfDZ6QieYZAvBIuXavRVYEglijw= From: "pefoley2 at pefoley dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/80922] #pragma diagnostic ignored not honoured with -flto Date: Sat, 21 Jan 2023 05:59:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: diagnostic, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: pefoley2 at pefoley dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D80922 pefoley2 at pefoley dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pefoley2 at pefoley dot com --- Comment #8 from pefoley2 at pefoley dot com --- Note that this appears to be affecting the gcc source tree. Attempting a build with --with-build-config=3Dbootstrap-lto --enable-werror errors out with: In function =E2=80=98release=E2=80=99, inlined from =E2=80=98release=E2=80=99 at ../../gcc/vec.h:1915:0, inlined from =E2=80=98__dt_base =E2=80=99 at ../../gcc/vec.h:1574:0, inlined from =E2=80=98visit_reference_op_call.isra=E2=80=99 at ../../gcc/tree-ssa-sccvn.cc:5562:0: ../../gcc/vec.h:316: error: =E2=80=98free=E2=80=99 called on unallocated ob= ject =E2=80=98accesses=E2=80=99 [-Werror=3Dfree-nonheap-object] 316 | ::free (v); | ../../gcc/tree-ssa-sccvn.cc: In function =E2=80=98visit_reference_op_call.i= sra=E2=80=99: ../../gcc/tree-ssa-sccvn.cc:5457: note: declared here 5457 | auto_vec accesses; | lto1: all warnings being treated as errors Due to this pragma being ignored: https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgcc/vec.h;h=3Da536b68732d= dcb9ed7b223803308b3e079a53969;hb=3DHEAD#l300=