public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Jeff Law <law@redhat.com>
Cc: Richard Biener <richard.guenther@gmail.com>,
	       "H.J. Lu" <hjl.tools@gmail.com>,
	       John David Anglin <dave.anglin@bell.net>,
	       GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: PATCH: [5 Regression] r219037 caused FAIL: gcc.dg/pr44194-1.c
Date: Mon, 05 Jan 2015 18:51:00 -0000	[thread overview]
Message-ID: <20150105185103.GW1667@tucnak.redhat.com> (raw)
In-Reply-To: <54AA9D75.7050400@redhat.com>

On Mon, Jan 05, 2015 at 07:19:33AM -0700, Jeff Law wrote:
> On 01/04/15 10:16, Richard Biener wrote:
> >>>
> >>>But either your new hook or the original fix makes no sense.
> >>
> >>All I want is to restore the old behavior on x86.  If the original fix
> >>makes no sense, should it be reverted?
> >
> >I think the original fix is too conservative
> Perhaps.  Neither John nor I felt it was too conservative.  But disagreeing
> slightly on this isn't a big deal.
> 
> >But I also think there is a target independent bug, thus a target hook to "fix" things for x86 makes no sense.
> Agreed 100%.

So isn't the right replacement for the target hook H.J. wanted to add
the HARD_FRAME_POINTER_IS_ARG_POINTER macro?
If argp is not hfp, then the stores through argp are not considered
to be based on the frame pointer, if it is the same thing, such as on PA,
then indeed sibcall stack argument stores are frame related.
You could also add a !reload_completed to that, after RA frame_read is
how this is handled.

      /* Arguments for a sibling call that are pushed to memory are passed
         using the incoming argument pointer of the current function.  If
	 argument pointer is the hard frame pointer, then treat sibling
	 calls as wild reads before reload; after reload frame_read flag
	 should take care of this.  */
      if (HARD_FRAME_POINTER_IS_ARG_POINTER
	  && SIBLING_CALL_P (insn)
	  && !reload_completed)
        {
          add_wild_read (bb_info);
          return;
        }

?

	Jakub

  reply	other threads:[~2015-01-05 18:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-31 14:31 H.J. Lu
2015-01-03 17:35 ` John David Anglin
2015-01-03 19:48   ` H.J. Lu
2015-01-03 20:10     ` John David Anglin
2015-01-03 20:18       ` H.J. Lu
2015-01-03 20:58         ` John David Anglin
2015-01-03 21:48           ` H.J. Lu
2015-01-04 11:37             ` Richard Biener
2015-01-04 14:57               ` H.J. Lu
2015-01-04 17:16                 ` Richard Biener
2015-01-05 14:19                   ` Jeff Law
2015-01-05 18:51                     ` Jakub Jelinek [this message]
2015-01-05 20:17                       ` John David Anglin
2015-01-05 21:24                         ` Jakub Jelinek
2015-01-05 21:31                           ` Jakub Jelinek
2015-01-06 14:08                             ` [PATCH] Fix up DSE - PR middle-end/64388, target/55023 Jakub Jelinek
2015-01-06 17:06                               ` John David Anglin
2015-01-06 19:12                                 ` Jakub Jelinek
2015-01-08 21:25                               ` Jeff Law

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=20150105185103.GW1667@tucnak.redhat.com \
    --to=jakub@redhat.com \
    --cc=dave.anglin@bell.net \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=law@redhat.com \
    --cc=richard.guenther@gmail.com \
    /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).