From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 115AA385740F; Sat, 18 Jun 2022 14:02:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 115AA385740F From: "matt at godbolt dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106020] Spurious warnings about stringop overflows only with LTO Date: Sat, 18 Jun 2022 14:02:08 +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.1.0 X-Bugzilla-Keywords: diagnostic, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: matt at godbolt dot 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2022 14:02:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106020 --- Comment #6 from Matt Godbolt --- I'm afraid to say I've been unable to make a repro case in the short time I= had to try - will get back to this but about to go on vacation (!). That's to s= ay dumping the files from CE and using: CXX=3D/opt/compiler-explorer/gcc-12.1.0/bin/g++ CXXFLAGS=3D-O3 -flto -fno-fat-lto-objects -fPIC app: main.o date.o $(CXX) $(CXXFLAGS) -o app date.o main.o main.o: $(CXX) $(CXXFLAGS) -o main.o -c main.cpp date.o: $(CXX) $(CXXFLAGS) -o date.o -c date.cpp clean: rm -f app main.o date.o did _not_ cause the problem, so there's something else going on. Again, will try and get to this later, but apologies for the "hit and run" bug report := (=