PATCH RFC: dwarf2 EH for Darwin

Richard Henderson rth@redhat.com
Tue Sep 10 12:01:00 GMT 2002


On Mon, Sep 09, 2002 at 04:38:42PM -0700, Stan Shebs wrote:
> The first is the macro ASM_OUTPUT_DWARF_DELTA, which seems like
> it probably ought to be a target hook, even though it only needs
> a non-default value for the one target.

Well, actually, there was a suggestion in an older version
of this code that some other really old assemblers have a
similar problem.  But when I was rewriting it, I could find
no suggestion as to which assemblers these were, and could
find no assembler that actually failed.

I could be convinced to revert to the intermediate symbol
generically, but I guess this is good enough for now.

> The second is the TERMINATE_EH_FRAME_INFO, which looks kludgy to
> me, but I'm not clear on how this ought to be done.  The crux of
> the problem is that EH_FRAME_SECTION_NAME should not be set for
> Darwin, because it enables ELFish bits we don't really want.
> Perhaps the zero-termination choice ought to be a generic target
> hook too?

Perhaps a boolean on the target structure.  For now ...

> + #ifndef TERMINATE_EH_FRAME_INFO
> + #define TERMINATE_EH_FRAME_INFO 0
>  #ifndef EH_FRAME_SECTION_NAME
> + #define TERMINATE_EH_FRAME_INFO 1
> + #endif
> + #endif
> +
> + #if TERMINATE_EH_FRAME_INFO
>    if (for_eh)

... change this to 

	if (for_eh && TERMINATE_EH_FRAME_INFO)


r~



More information about the Gcc-patches mailing list