frame unwind issue with discontiguous code
Jim Wilson
wilson@specifix.com
Thu Sep 28 23:11:00 GMT 2006
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
More information about the Binutils
mailing list