From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113980 invoked by alias); 27 Apr 2015 12:01:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 113966 invoked by uid 89); 27 Apr 2015 12:01:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f54.google.com Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 27 Apr 2015 12:01:24 +0000 Received: by oiko83 with SMTP id o83so86839769oik.1 for ; Mon, 27 Apr 2015 05:01:22 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.63.141 with SMTP id g13mr9616004oes.3.1430136082229; Mon, 27 Apr 2015 05:01:22 -0700 (PDT) Received: by 10.60.147.170 with HTTP; Mon, 27 Apr 2015 05:01:22 -0700 (PDT) In-Reply-To: <54D21CD9.7040201@st.com> References: <54D21CD9.7040201@st.com> Date: Mon, 27 Apr 2015 12:01:00 -0000 Message-ID: Subject: Re: [PATCH, x86] Add TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE hook From: Uros Bizjak To: Christian Bruel Cc: Richard Henderson , Jan Hubicka , "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-04/txt/msg01609.txt.bz2 On Wed, Feb 4, 2015 at 2:21 PM, Christian Bruel wrote: > While trying to reduce the PR64835 case for ARM and x86, I noticed that the > alignment flags are cleared for x86 when attribute optimized is used. > > With the attached testcases, the visible effects are twofold : > > 1) Functions compiled in with attribute optimize (-O2) are not aligned as if > they were with the -O2 flag. > > 2) can_inline_edge_p fails because opts_for_fn (caller->decl) != opts_for_fn > (callee->decl)) even-though they are compiled with the same optimization > level. 2015-02-06 Christian Bruel PR target/64835 * config/i386/i386.c (ix86_default_align): New function. (ix86_override_options_after_change): Call ix86_default_align. (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook. (ix86_override_options_after_change): New function. 2015-02-06 Christian Bruel PR target/64835 * gcc.dg/ipa/iinline-attr.c: New test. * gcc.target/i386/iinline-attr-2.c: New test. OK for mainline. Thanks, Uros