From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13352 invoked by alias); 10 Dec 2004 18:19:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 13315 invoked by uid 48); 10 Dec 2004 18:19:10 -0000 Date: Fri, 10 Dec 2004 18:19:00 -0000 Message-ID: <20041210181910.13310.qmail@sourceware.org> From: "opensource at artnaseef dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041210181625.18929.opensource@artnaseef.com> References: <20041210181625.18929.opensource@artnaseef.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/18929] Profiling optimized code causes segfaults on ARM due to missing frames X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg01529.txt.bz2 List-Id: ------- Additional Comments From opensource at artnaseef dot com 2004-12-10 18:19 ------- Created an attachment (id=7720) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7720&action=view) recommended fix This patch fixes the problem by forcing functions to keep their frame pointers when compiled with profiling. It maintains portability by using a macro, and only defining it for the ARM architecture, that indicates when mcount requires the frame pointer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18929