This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: frame unwind issue with discontiguous code
- From: Jim Wilson <wilson at specifix dot com>
- To: Jan Beulich <jbeulich at novell dot com>
- Cc: gcc at gcc dot gnu dot org, binutils at sourceware dot org
- Date: Thu, 28 Sep 2006 13:42:55 -0700
- Subject: Re: frame unwind issue with discontiguous code
- References: <451BCD68.76E4.0078.0@novell.com>
On Thu, 2006-09-28 at 13:26 +0200, Jan Beulich wrote:
> While I'm not certain whether gcc is able to split one function's code
> between different sections
Yes. See the -freorder-blocks-and-partition option, which can move code
to hot/cold sections.
> However, when frame unwind information is generated, one quickly
> becomes aware of a problem with this
Yes, this has been a known problem for a long time. Unfortunately, I
don't know if anyone has ever tried to solve it. Here is gcc's current
solution:
> aretha$ ./xgcc -B./ -g -freorder-blocks-and-partition -S tmp.c -funwind-tables
> cc1: note: -freorder-blocks-and-partition does not support unwind info
--
Jim Wilson, GNU Tools Support, http://www.specifix.com