From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 424143858C54; Tue, 5 Mar 2024 13:11:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 424143858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709644307; bh=W5P5WNLcuIkxfT6BvkEOzeE12v0QpLvpjrg62e4Bsio=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GI3o7krpi7v2us4KBsLgQonfVVwsg2YE2QPXR6q118bGJPkh3luCT6mHnfdBcMPp+ 7Oh9xihj+1i6bIdAxI7ulok2ZiuDOuGm6oW1wS0WOXQfewuqfaJigM6KoUhtmnsf9O C98BSlMVZxpzqQ342P5A9yx8l0zcjrRllwUc8lUs= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114232] [14 regression] ICE when building rr-5.7.0 with LTO on x86 Date: Tue, 05 Mar 2024 13:11:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 14.0 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=3D114232 --- Comment #24 from Jakub Jelinek --- (In reply to rguenther@suse.de from comment #22) > I think optimize_function_for_size_p (cfun) isn't always true if > optimize_size is since it looks at the function-specific setting > of that flag, so you'd have to use opt_for_fn (cfun, optimize_size). I think the insn-flags.h macros and actual insn conditions are checked when= the corresponding function is current, and at that point opt_for_fn (cfun, optimize_size) should be the same as optimize_size. Even the set_cfun hook first sets the option and then tries to initialize optab and compares it against the global one.=