This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Reentering sections
- To: Roman Lechtchinsky <rl at cs dot tu-berlin dot de>
- Subject: Re: Reentering sections
- From: Richard Henderson <rth at redhat dot com>
- Date: Fri, 21 Sep 2001 10:36:49 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <Pine.SOL.4.10.10109211412400.11493-100000@sossusvlei>
On Fri, Sep 21, 2001 at 02:18:09PM +0200, Roman Lechtchinsky wrote:
> Is this behavior actually necessary (the entire function body is
> output before output_function_exception_table is called, AFAICS) or is the
> call to function_section bogus?
As currently configured, we have yet to do assemble_end_function,
which does need to be in function_section. The reason that we do
that is that IA-64 has special assembler directives to emit EH
table info, like so:
.proc foo
foo:
[ code ]
.handlerdata
[ eh data ]
.endp foo
where ".endp" is emitted by ASM_DECLARE_FUNCTION_SIZE in
assemble_end_function.
It should be possible to rearrange this based on IA64_UNWIND_INFO.
r~