public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* INCOMING_RETURN_ADDR_RTX
@ 2013-07-25 22:57 Hendrik Greving
  2013-07-25 23:01 ` INCOMING_RETURN_ADDR_RTX Hendrik Greving
  2013-07-25 23:26 ` INCOMING_RETURN_ADDR_RTX Hendrik Greving
  0 siblings, 2 replies; 3+ messages in thread
From: Hendrik Greving @ 2013-07-25 22:57 UTC (permalink / raw)
  To: gcc

I am getting a crash with my backend when running arbitrary code with
-g. Apparently this is because the compiler aborts at dwarf2cfi.c:2852
(GCC 4.8.1-release, because

initial_return_save (INCOMING_RETURN_ADDR_RTX);

INCOMING_RETURN_ADDR_RTX is undefined.

The documentation states "You only need to define this macro if you
want to support call frame debugging information like that provided by
DWARF 2.".

We can't support frame debugging right now (at least I think we
can't), I need to investigate that. In any case the documentation
sounds more like that you don't need to define this macro for your
target. In order to disable this feature, do I also need to disable
some frame unwind info macros?

Thanks,
Regards,
Hendrik Greving

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: INCOMING_RETURN_ADDR_RTX
  2013-07-25 22:57 INCOMING_RETURN_ADDR_RTX Hendrik Greving
@ 2013-07-25 23:01 ` Hendrik Greving
  2013-07-25 23:26 ` INCOMING_RETURN_ADDR_RTX Hendrik Greving
  1 sibling, 0 replies; 3+ messages in thread
From: Hendrik Greving @ 2013-07-25 23:01 UTC (permalink / raw)
  To: gcc

I am reaching this code like this:

(gdb) p targetm.debug_unwind_info ()
$1 = UI_DWARF2
(gdb) p targetm_common.except_unwind_info (&global_options)
$2 = UI_SJLJ


On Thu, Jul 25, 2013 at 3:57 PM, Hendrik Greving
<hendrik.greving.intel@gmail.com> wrote:
> I am getting a crash with my backend when running arbitrary code with
> -g. Apparently this is because the compiler aborts at dwarf2cfi.c:2852
> (GCC 4.8.1-release, because
>
> initial_return_save (INCOMING_RETURN_ADDR_RTX);
>
> INCOMING_RETURN_ADDR_RTX is undefined.
>
> The documentation states "You only need to define this macro if you
> want to support call frame debugging information like that provided by
> DWARF 2.".
>
> We can't support frame debugging right now (at least I think we
> can't), I need to investigate that. In any case the documentation
> sounds more like that you don't need to define this macro for your
> target. In order to disable this feature, do I also need to disable
> some frame unwind info macros?
>
> Thanks,
> Regards,
> Hendrik Greving

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: INCOMING_RETURN_ADDR_RTX
  2013-07-25 22:57 INCOMING_RETURN_ADDR_RTX Hendrik Greving
  2013-07-25 23:01 ` INCOMING_RETURN_ADDR_RTX Hendrik Greving
@ 2013-07-25 23:26 ` Hendrik Greving
  1 sibling, 0 replies; 3+ messages in thread
From: Hendrik Greving @ 2013-07-25 23:26 UTC (permalink / raw)
  To: gcc

I found this email thread

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48459

It sounds like I should define TARGET_DEBUG_UNWIND_INFO and return
UI_NONE for now?

On Thu, Jul 25, 2013 at 3:57 PM, Hendrik Greving
<hendrik.greving.intel@gmail.com> wrote:
> I am getting a crash with my backend when running arbitrary code with
> -g. Apparently this is because the compiler aborts at dwarf2cfi.c:2852
> (GCC 4.8.1-release, because
>
> initial_return_save (INCOMING_RETURN_ADDR_RTX);
>
> INCOMING_RETURN_ADDR_RTX is undefined.
>
> The documentation states "You only need to define this macro if you
> want to support call frame debugging information like that provided by
> DWARF 2.".
>
> We can't support frame debugging right now (at least I think we
> can't), I need to investigate that. In any case the documentation
> sounds more like that you don't need to define this macro for your
> target. In order to disable this feature, do I also need to disable
> some frame unwind info macros?
>
> Thanks,
> Regards,
> Hendrik Greving

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-25 23:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25 22:57 INCOMING_RETURN_ADDR_RTX Hendrik Greving
2013-07-25 23:01 ` INCOMING_RETURN_ADDR_RTX Hendrik Greving
2013-07-25 23:26 ` INCOMING_RETURN_ADDR_RTX Hendrik Greving

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).