public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/50633] [4.7 Regression] New test failures
Date: Thu, 06 Oct 2011 18:51:00 -0000	[thread overview]
Message-ID: <bug-50633-4-helmy7IqNO@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-50633-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-06 18:50:14 UTC ---
This patch seems to work:

diff --git a/gcc/function.c b/gcc/function.c
index 863f09d..0bc1dd9 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -5312,6 +5312,21 @@ frame_required_for_rtx (rtx *loc, void *data
ATTRIBUTE_UNUSED)
   if (x == stack_pointer_rtx || x == hard_frame_pointer_rtx
       || x == arg_pointer_rtx || x == pic_offset_table_rtx)
     return 1;
+  if (x != NULL
+      && REG_P (x)
+      && ((stack_pointer_rtx != NULL
+      && REG_P (stack_pointer_rtx)
+      && REGNO (x) == REGNO (stack_pointer_rtx))
+      || (hard_frame_pointer_rtx != NULL
+          && REG_P (hard_frame_pointer_rtx)
+          && REGNO (x) == REGNO (hard_frame_pointer_rtx))
+      || (arg_pointer_rtx != NULL
+          && REG_P (arg_pointer_rtx)
+          && REGNO (x) == REGNO (arg_pointer_rtx))
+      || (pic_offset_table_rtx != NULL
+          && REG_P (pic_offset_table_rtx)
+          && REGNO (x) == REGNO (pic_offset_table_rtx))))
+    return 1;
   return 0;
 }


  parent reply	other threads:[~2011-10-06 18:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-06 16:01 [Bug middle-end/50633] New: " hjl.tools at gmail dot com
2011-10-06 16:06 ` [Bug middle-end/50633] " ro at gcc dot gnu.org
2011-10-06 16:24 ` dominiq at lps dot ens.fr
2011-10-06 17:40 ` hjl.tools at gmail dot com
2011-10-06 17:56 ` hjl.tools at gmail dot com
2011-10-06 18:39 ` hjl.tools at gmail dot com
2011-10-06 18:44 ` bernds at gcc dot gnu.org
2011-10-06 18:51 ` hjl.tools at gmail dot com [this message]
2011-10-06 18:52 ` hjl.tools at gmail dot com
2011-10-06 19:59 ` bernds at gcc dot gnu.org
2011-10-06 20:09 ` hjl.tools at gmail dot com
2011-10-07 12:10 ` bernds at gcc dot gnu.org
2011-10-07 12:21 ` bernds at gcc dot gnu.org
2011-10-07 16:21 ` hjl.tools at gmail dot com

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=bug-50633-4-helmy7IqNO@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).