This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18929] Profiling optimized code causes segfaults on ARM due to missing frames
- From: "opensource at artnaseef dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Dec 2004 18:19:10 -0000
- Subject: [Bug c/18929] Profiling optimized code causes segfaults on ARM due to missing frames
- References: <20041210181625.18929.opensource@artnaseef.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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