From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29105 invoked by alias); 6 Aug 2010 12:06:37 -0000 Received: (qmail 29055 invoked by uid 48); 6 Aug 2010 12:06:18 -0000 Date: Fri, 06 Aug 2010 12:06:00 -0000 Message-ID: <20100806120618.29054.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/45207] The -Os flag generates wrong code for ARM966e-s In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fredrik dot hederstierna at securitas-direct dot com" 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 X-SW-Source: 2010-08/txt/msg00412.txt.bz2 ------- Comment #6 from fredrik dot hederstierna at securitas-direct dot com 2010-08-06 12:06 ------- Yes you are right, unfortunately I just had problems to break out any small test case from our sources. I think I found out what is the source of the problems. The "-Os" disable alignment of functions. In some case I try to force alignment void __attribute__((aligned(4))) _irq_off(void); since we have some thumb->arm trampoline functions to modify cpu-flags. I guess somehow some functions got thumb-aligned, but I try to investigate this further. /Fredrik -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45207