From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27661 invoked by alias); 9 Aug 2007 15:25:30 -0000 Received: (qmail 27547 invoked by uid 22791); 9 Aug 2007 15:25:29 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Aug 2007 15:25:25 +0000 Received: (qmail 25368 invoked from network); 9 Aug 2007 15:25:23 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Aug 2007 15:25:23 -0000 Date: Thu, 09 Aug 2007 15:25:00 -0000 From: Nathan Froyd To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] output INCOMING_RETURN_ADDR_RTX in debug info Message-ID: <20070809152523.GQ20983@sparrowhawk.codesourcery.com> Mail-Followup-To: Eric Botcazou , gcc-patches@gcc.gnu.org References: <20070803155148.GA6839@sparrowhawk.codesourcery.com> <036601c7d730$182ccde0$0a00000a@galilee> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jL2BoiuKMElzg3CS" Content-Disposition: inline In-Reply-To: <036601c7d730$182ccde0$0a00000a@galilee> User-Agent: Mutt/1.4.1i X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00584.txt.bz2 --jL2BoiuKMElzg3CS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 547 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 Nathan Froyd gcc/ * dwarf2out.c (dwarf2out_frame_init): Check for DWARF2_FRAME_INFO when determining whether to record INCOMING_RETURN_ADDR_RTX. --jL2BoiuKMElzg3CS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dwarf2-retaddr.patch" Content-length: 459 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 } --jL2BoiuKMElzg3CS--