From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14207 invoked by alias); 9 Aug 2010 07:55:38 -0000 Received: (qmail 14129 invoked by uid 48); 9 Aug 2010 07:55:23 -0000 Date: Mon, 09 Aug 2010 07:55:00 -0000 Message-ID: <20100809075523.14128.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/msg00632.txt.bz2 ------- Comment #8 from fredrik dot hederstierna at securitas-direct dot com 2010-08-09 07:55 ------- I think I found what was the problem, the flags -mthumb -mcpu=arm966e-s -Os -falign-functions=4 Did not 32-bit-align my thumb->arm trampoline function. I dont know if -Os win over -falign-functions flag in this case. Anyway, my function ended up on a 16-bit aligned address and that caused an abort. /Fredrik -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45207