From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15482 invoked by alias); 27 Apr 2015 08:14:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 15403 invoked by uid 48); 27 Apr 2015 08:14:24 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/65873] [5/6 Regression] Failure to inline always_inline memcpy Date: Mon, 27 Apr 2015 08:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg02242.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65873 --- Comment #2 from Jakub Jelinek --- (In reply to Jan Hubicka from comment #1) > I think certain combinations of flag will trigger ICE, such as one > enabling/disabling vector builtins. But I suppose we may want to bypass > majority of the checks for case we have always_inline w/o explicit > optimization attribute indeed, but only at early inlining time, probably not > at LTO? > At LTO time we already did transformation that turn previously correct code > with target's optimization flags to be incorrect (i.e. -fstrict-aliasing > blocks some transformations we may do during early opts) Yeah, special casing always_inline with no explicit optimize/target attributes only, and only during early inlining IMHO should be sufficient.