public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: coypu@sdf.org
To: Jeff Law <law@redhat.com>
Cc: gcc@gcc.gnu.org, port-vax@netbsd.org
Subject: Re: syncing the GCC vax port, atomic issue
Date: Sat, 21 Sep 2019 01:18:00 -0000	[thread overview]
Message-ID: <20190921011835.GA5931@SDF.ORG> (raw)
In-Reply-To: <20190920220756.GA10628@SDF.ORG>

On Fri, Sep 20, 2019 at 10:07:59PM +0000, coypu@sdf.org wrote:
> Introducing the reversed jbb* patterns doesn't seem to help with the
> original issue. It crashes building libatomic.

My loose understanding of what is going on:
- GCC emits this atomic in expand.
- When cleaning up, it looks for optimizations.
- It decides this is a branch to another branch situation, so maybe
  can be improved.
- This fails to output an instruction for unrelated reasons.
- Hit an assert.

I don't think that we should be trying to combine regular branch +
atomic branch in very generic code.
My guess is that, if it didn't crash now, it might emit a different kind
of branch which loses the atomic qualities, and result in wrong code.


I tried to single-step GCC, and it might be trying entirely different
instruction patterns.
I'm not sure whether I should put a lot of trust in the line numbers
shown from .md files, but it's trying nonlocal_goto in vax.md.
In any case, nothing from builtins.md.

  reply	other threads:[~2019-09-21  1:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-30  9:03 syncing the GCC vax port coypu
2019-03-31 17:26 ` Paul Koning
2019-03-31 17:41   ` coypu
2019-04-01 15:33   ` Jeff Law
2019-04-29 20:08 ` Jeff Law
2019-09-20 11:15   ` coypu
2019-09-20 21:04     ` syncing the GCC vax port, atomic issue coypu
2019-09-20 21:45       ` Jeff Law
2019-09-20 22:08         ` coypu
2019-09-21  1:18           ` coypu [this message]
2019-09-21 18:27             ` Paul Koning
2019-10-01 19:44               ` Jeff Law
2019-10-01 19:43             ` Jeff Law
2019-10-02  9:39               ` Richard Earnshaw (lists)
2019-10-02 17:17                 ` Segher Boessenkool

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=20190921011835.GA5931@SDF.ORG \
    --to=coypu@sdf.org \
    --cc=gcc@gcc.gnu.org \
    --cc=law@redhat.com \
    --cc=port-vax@netbsd.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).