From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B06023858C50; Sat, 14 Jan 2023 05:49:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B06023858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673675365; bh=ftq5vEnwAbIVJ6Ta7D0qSd9DnLwAqy8smJasseLFuu0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PgaSw4FZBD994qDZYdee1vMmjlhGIgoevkImO3K5EfJHL09ZGet7q8surnJlS8dE3 3P9P0lwQt6R+mIvJJYw6dtgoCasBuduWYCVzY3IHfcVsiLeyUBlCPPE05vveoJ/tCe Wka3Bp2SVQWrF5DktQOec2XwiFItLEpCSBt9aez4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108402] False positive Wuninitialized with ftrivial-auto-var-init=pattern Date: Sat, 14 Jan 2023 05:49:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 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=3D108402 --- Comment #1 from Andrew Pinski --- This has nothing to do with ftrivial-auto-var-init=3Dpattern . But rather y= ou are passing an uninitiated struct to a function that takes a pointer to a const type. That causes the warning. Can you attach the original source as the reduced one has a correct warning= .=