This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: frame unwind issue with discontiguous code


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]