From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24027 invoked by alias); 29 May 2010 11:36:07 -0000 Received: (qmail 23984 invoked by uid 48); 29 May 2010 11:35:56 -0000 Date: Sat, 29 May 2010 11:36:00 -0000 Message-ID: <20100529113556.23983.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/44290] [4.5 Regression] arm linux kernel crahes when built with -fipa-sra In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mikpe at it dot uu dot se" 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-05/txt/msg03201.txt.bz2 ------- Comment #8 from mikpe at it dot uu dot se 2010-05-29 11:35 ------- (In reply to comment #6) > I note that copypage-xscale.c:xscale_mc_copy_user_highpage() calls a __naked > function to do the bulk copy. Converting that to a plain inline function > (changing 'pc' to 'lr' in the final instruction that restores the scrach regs), > does not prevent the crash. So I suspect a plain C code miscompilation. Actually that conversion away from __naked may have been flawed. What I'm seeing is that r148981 causes gcc to clone the __naked function and change its calling conventions in ways that don't match the proper function call ABI. This breaks the body of the __naked function which is just a big asm() statement. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44290