From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10905 invoked by alias); 10 Dec 2004 18:16:35 -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 10704 invoked by uid 48); 10 Dec 2004 18:16:27 -0000 Date: Fri, 10 Dec 2004 18:16:00 -0000 From: "opensource at artnaseef dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20041210181625.18929.opensource@artnaseef.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/18929] New: Profiling optimized code causes segfaults on ARM due to missing frames X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg01528.txt.bz2 List-Id: When compiling with the arm-linux compiler with optimization enabled, the compiler removes frame pointers from functions even when they are profiled. This leads to a segmentation fault with the glibc version of mcount when it attempts to determine the caller of a function from the current stack because mcount assumes the frame pointer is there. It seems that optimized functions, on this platform, should not drop their frame pointers when profiling is enabled. -- Summary: Profiling optimized code causes segfaults on ARM due to missing frames Product: gcc Version: 3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: opensource at artnaseef dot com CC: gcc-bugs at gcc dot gnu dot org,opensource at artnaseef dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18929