public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: nickc@redhat.com, law@redhat.com, Richard Henderson <rth@twiddle.net>
Subject: [PATCH 01/28] mn10300: Better definition of INCOMING_RETURN_ADDR_RTX.
Date: Mon, 10 Jan 2011 20:32:00 -0000	[thread overview]
Message-ID: <1294691517-19580-2-git-send-email-rth@redhat.com> (raw)
In-Reply-To: <1294691517-19580-1-git-send-email-rth@redhat.com>

From: Richard Henderson <rth@twiddle.net>

The new definition is more useful to the unwinder.
---
 gcc/config/mn10300/mn10300.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h
index 67516b6..edc17f5 100644
--- a/gcc/config/mn10300/mn10300.h
+++ b/gcc/config/mn10300/mn10300.h
@@ -548,7 +548,10 @@ struct cum_arg
    ? gen_rtx_MEM (Pmode, arg_pointer_rtx) \
    : (rtx) 0)
 
-#define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (Pmode, MDR_REGNUM)
+/* The return address is saved both in the stack and in MDR.  Using
+   the stack location is handiest for what unwinding needs.  */
+#define INCOMING_RETURN_ADDR_RTX \
+  gen_rtx_MEM (VOIDmode, gen_rtx_REG (VOIDmode, STACK_POINTER_REGNUM))
 \f
 /* Maximum number of registers that can appear in a valid memory address.  */
 
-- 
1.7.3.4

  reply	other threads:[~2011-01-10 20:32 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-10 20:33 [PATCH 00/28] mn10300 cleanup + compare-elim, v2 Richard Henderson
2011-01-10 20:32 ` Richard Henderson [this message]
2011-01-11 14:45   ` [PATCH 01/28] mn10300: Better definition of INCOMING_RETURN_ADDR_RTX Jeff Law
2011-01-10 20:32 ` [PATCH 04/28] mn10300: Emit the movm stores in the correct order Richard Henderson
2011-01-11 14:53   ` Jeff Law
2011-01-11 17:10     ` Richard Henderson
2011-01-10 20:32 ` [PATCH 13/28] mn10300: cleanup secondary reloads Richard Henderson
2011-01-18 17:14   ` Jeff Law
2011-01-18 18:35     ` Richard Henderson
2011-01-18 18:49       ` Jeff Law
2011-01-18 19:12         ` Richard Henderson
2011-01-19 15:41           ` Jeff Law
2011-01-19 16:55             ` Richard Henderson
2011-01-10 20:33 ` [PATCH 15/28] mn10300: Force lower-subreg pass to run Richard Henderson
2011-01-12 14:04   ` Jeff Law
2011-01-10 20:33 ` [PATCH 21/28] mn10300: Add clzsi2 Richard Henderson
2011-01-12 14:05   ` Jeff Law
2011-01-10 20:33 ` [PATCH 10/28] mn10300: Clean up trampoline handling Richard Henderson
2011-01-12 14:04   ` Jeff Law
2011-01-10 20:33 ` [PATCH 06/28] mn10300: fp insn cleanup Richard Henderson
2011-01-11 14:46   ` Jeff Law
2011-01-10 20:33 ` [PATCH 25/28] mn10300: Use reg_or_am33_const_operand in mulsi3 Richard Henderson
2011-01-12 14:06   ` Jeff Law
2011-01-12 18:07     ` Richard Henderson
2011-01-12 18:11       ` Jeff Law
2011-01-10 20:33 ` [PATCH 23/28] mn10300: Add delegitimize_address hook Richard Henderson
2011-01-12 14:06   ` Jeff Law
2011-01-10 20:33 ` [PATCH 20/28] mn10300: Emit clr Richard Henderson
2011-01-12 14:05   ` Jeff Law
2011-01-10 20:33 ` [PATCH 02/28] mn10300: disable test tree-ssa/vrp47.c Richard Henderson
2011-01-11 14:46   ` Jeff Law
2011-01-10 20:33 ` [PATCH 12/28] mn10300: Re-write move patterns Richard Henderson
2011-01-18 17:12   ` Jeff Law
2011-01-18 18:30     ` Richard Henderson
2011-01-19 16:12       ` Jeff Law
2011-01-19 19:21         ` Hans-Peter Nilsson
2011-01-18 19:18     ` Richard Henderson
2011-01-19 15:48       ` Jeff Law
2011-01-10 20:33 ` [PATCH 27/28] mn10300: Add support in longlong.h Richard Henderson
2011-01-12 14:31   ` Jeff Law
2011-01-12 18:10     ` Richard Henderson
2011-01-10 20:34 ` [PATCH 24/28] mn10300: Implement adddi3, subdi3 Richard Henderson
2011-01-19 18:45   ` Jeff Law
2011-01-10 20:34 ` [PATCH 03/28] mn10300: delete ASM_PN_FORMAT Richard Henderson
2011-01-11 14:46   ` Jeff Law
2011-01-10 20:34 ` [PATCH 26/28] mn10300: Auto-clobber the flags in asms Richard Henderson
2011-01-12 14:22   ` Jeff Law
2011-01-10 20:34 ` [PATCH 08/28] mn10300: Define the A and D constraints Richard Henderson
2011-01-11 14:56   ` Jeff Law
2011-01-11 16:44     ` Richard Henderson
2011-01-11 18:53       ` Jeff Law
2011-01-11 19:31         ` Richard Henderson
2011-01-11 20:59           ` Gerald Pfeifer
2011-01-12  0:30           ` Jeff Law
2011-01-10 20:34 ` [PATCH 17/28] mn10300: Explicitly represent MDR in multiply and divide Richard Henderson
2011-01-18 18:13   ` Jeff Law
2011-01-10 20:34 ` [PATCH 18/28] mn10300: Cleanup all arithmetic Richard Henderson
2011-01-19 16:58   ` Jeff Law
2011-01-10 20:34 ` [PATCH 14/28] mn10300: Cleanup legitimate addresses Richard Henderson
2011-01-18 17:14   ` Jeff Law
2011-01-10 20:34 ` [PATCH 22/28] mn10300: Emit retf instruction Richard Henderson
2011-01-18 18:18   ` Jeff Law
2011-01-10 20:34 ` [PATCH 05/28] mn10300: Fix debug offsets into the stack frame Richard Henderson
2011-01-11 14:50   ` Jeff Law
2011-01-10 20:34 ` [PATCH 11/28] mn10300: Clean up costing Richard Henderson
2011-01-11 15:02   ` Jeff Law
2011-01-10 20:34 ` [PATCH 09/28] mn10300: Remove bset/bclr patterns Richard Henderson
2011-01-11 14:57   ` Jeff Law
2011-01-10 20:34 ` [PATCH 07/28] mn10300: Add attribute enabled Richard Henderson
2011-01-11 14:47   ` Jeff Law
2011-01-10 20:34 ` [PATCH 28/28] New -fcompare-elim pass Richard Henderson
2011-01-11 19:00   ` Nathan Froyd
2011-01-11 19:24     ` Richard Henderson
2011-01-12  9:07   ` Paolo Bonzini
2011-01-12 20:34     ` Richard Henderson
2011-01-13  9:04       ` Paolo Bonzini
2011-01-17 22:42         ` [RFC, v2] " Richard Henderson
2011-01-18 10:06           ` Paolo Bonzini
2011-01-21 17:54             ` [RFC, v3] " Richard Henderson
2011-01-21 18:07               ` Richard Guenther
2011-01-21 19:28               ` Jakub Jelinek
2011-01-23 14:13               ` Andreas Schwab
2011-01-23 17:12                 ` Andreas Schwab
2011-01-10 20:39 ` [PATCH 16/28] mn10300: Expose the MDR register to register allocation Richard Henderson
2011-01-18 17:56   ` Jeff Law
2011-01-10 20:44 ` [PATCH 19/28] mn10300: tidy pic address loading Richard Henderson
2011-01-19 16:44   ` Jeff Law
2011-01-11 14:20 ` [PATCH 00/28] mn10300 cleanup + compare-elim, v2 Nick Clifton
2011-01-11 16:45   ` Richard Henderson
2011-01-11 18:31 ` Richard Henderson

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=1294691517-19580-2-git-send-email-rth@redhat.com \
    --to=rth@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=law@redhat.com \
    --cc=nickc@redhat.com \
    --cc=rth@twiddle.net \
    /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).