From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31005 invoked by alias); 28 Sep 2015 12:43:35 -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 30958 invoked by uid 48); 28 Sep 2015 12:43:31 -0000 From: "chrbr at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/67745] [ARM] wrong alignments when __attribute__ ((optimize,target,align) is used Date: Mon, 28 Sep 2015 12:43:00 -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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chrbr 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg02177.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67745 --- Comment #1 from chrbr at gcc dot gnu.org --- the problems are three folds: - FUNCTION_BOUNDARY should not test optimize_size, that should be tested in override_options_internal instead to be carried by invoke_set_current_function_hook - FUNCTION_BOUNDARY depends on TARGET_THUMB that depends on the attribute target. So it should be reevaluated at each function change, thus TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE