public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nathan Froyd <froydnj@codesourcery.com>
To: Eric Botcazou <ebotcazou@libertysurf.fr>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] output INCOMING_RETURN_ADDR_RTX in debug info
Date: Thu, 09 Aug 2007 15:25:00 -0000	[thread overview]
Message-ID: <20070809152523.GQ20983@sparrowhawk.codesourcery.com> (raw)
In-Reply-To: <036601c7d730$182ccde0$0a00000a@galilee>

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

On Sun, Aug 05, 2007 at 09:13:02AM +0200, Eric Botcazou wrote:
> >Clarifications/corrections welcome!
> 
> See http://gcc.gnu.org/ml/gcc/2007-04/msg00671.html for another solution.

This seems to work fine, thanks for the pointer.

(not necessarily directed at Eric) OK to commit?

:ADDPATCH dwarf2:

-Nathan

2007-08-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
	    Nathan Froyd  <froydnj@codesourcery.com>

	gcc/
	* dwarf2out.c (dwarf2out_frame_init): Check for DWARF2_FRAME_INFO
	when determining whether to record INCOMING_RETURN_ADDR_RTX.


[-- Attachment #2: dwarf2-retaddr.patch --]
[-- Type: text/plain, Size: 459 bytes --]

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c	(revision 178389)
+++ gcc/dwarf2out.c	(working copy)
@@ -2613,7 +2613,7 @@ dwarf2out_frame_init (void)
   dwarf2out_def_cfa (NULL, STACK_POINTER_REGNUM, INCOMING_FRAME_SP_OFFSET);
 
 #ifdef DWARF2_UNWIND_INFO
-  if (DWARF2_UNWIND_INFO)
+  if (DWARF2_UNWIND_INFO || DWARF2_FRAME_INFO)
     initial_return_save (INCOMING_RETURN_ADDR_RTX);
 #endif
 }

      reply	other threads:[~2007-08-09 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 15:51 Nathan Froyd
2007-08-05  7:13 ` Eric Botcazou
2007-08-09 15:25   ` Nathan Froyd [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070809152523.GQ20983@sparrowhawk.codesourcery.com \
    --to=froydnj@codesourcery.com \
    --cc=ebotcazou@libertysurf.fr \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).