public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
To: Jiong Wang <jiong.wang@foss.arm.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>, nd <nd@arm.com>
Subject: Re: [PATCH][AArch64 - v2] Simplify eh_return implementation
Date: Fri, 26 Aug 2016 18:47:00 -0000	[thread overview]
Message-ID: <AM5PR0802MB2610D7EC2F8440F9346BA26583EC0@AM5PR0802MB2610.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <n99fupry3mh.fsf@foss.arm.com>

Jiong Wang <jiong.wang@foss.arm.com> wrote:
> The -fomit-frame-pointer is really broken on aarch64_find_eh_return_addr

Yes, that's a good conclusion. However even with the frame pointer there are 
cases that fail, for example it will access LR off SP even after alloca. In fact
we're lucky it works at all sometimes...

> I think the correct offset when -fomit-frame-pointer should be:
>
>  "cfun->machine->frame.reg_offset[LR_REGNUM]"

With the offset to the register save area added of course. But then you still
need to expand late and so need the patterns in the MD. By forcing a frame
pointer we avoid all that complexity.

Wilco

  reply	other threads:[~2016-08-26 18:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-04 11:21 [PATCH][AArch64] " Wilco Dijkstra
2016-08-10 16:26 ` [PATCH][AArch64 - v2] " Wilco Dijkstra
2016-08-23 14:48   ` Wilco Dijkstra
2016-08-26 15:03     ` Jiong Wang
2016-08-26 18:47       ` Wilco Dijkstra [this message]
2016-09-01 12:33     ` Wilco Dijkstra
2016-09-01 13:40   ` Ramana Radhakrishnan
2016-09-02 11:31     ` [PATCH][AArch64 - v3] " Wilco Dijkstra
2016-09-12 14:51       ` Wilco Dijkstra
2016-09-21 14:50       ` Wilco Dijkstra
2016-10-17 12:41       ` Wilco Dijkstra
2016-10-25  9:48         ` Wilco Dijkstra
2016-11-02 16:49           ` Wilco Dijkstra
2016-11-14 13:05             ` Wilco Dijkstra
2016-12-06 15:27               ` Wilco Dijkstra
2016-12-14 16:43                 ` Wilco Dijkstra
2017-01-13 17:54       ` James Greenhalgh
2017-01-13 19:51         ` Wilco Dijkstra
2017-01-16 11:05           ` James Greenhalgh
2017-01-16 15:01             ` [PATCH][AArch64 - v4] " Wilco Dijkstra
2017-01-17 18:04               ` James Greenhalgh

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=AM5PR0802MB2610D7EC2F8440F9346BA26583EC0@AM5PR0802MB2610.eurprd08.prod.outlook.com \
    --to=wilco.dijkstra@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jiong.wang@foss.arm.com \
    --cc=nd@arm.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).