public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje.gcc@gmail.com>
To: Uros Bizjak <ubizjak@gmail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH v2, middle-end]: Introduce memory_blockage named insn pattern
Date: Sat, 14 Oct 2017 18:28:00 -0000	[thread overview]
Message-ID: <CAGWvnykSnKRv0yimHMQxQHf19oaG2=bgLXUEONbd_aRs8BG9zw@mail.gmail.com> (raw)
In-Reply-To: <CAFULd4bqBi_oPC=3tXDxJfbDNJ4cb7N-y_4eeFoLamfee=8CpA@mail.gmail.com>

On Sat, Oct 14, 2017 at 1:29 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Sat, Oct 14, 2017 at 5:44 PM, David Edelsohn <dje.gcc@gmail.com> wrote:
>> This patch has broken bootstrap on AIX and possibly powerpc64-linux.
>> Was this patch tested on any architecture other than x86?
>
> No.
>
>> /nasfarm/edelsohn/src/src/libgcc/emutls.c: In function '__emutls_get_address':
>> /nasfarm/edelsohn/src/src/libgcc/emutls.c:139:11: internal compiler
>> error: in invalid_void, at config/rs6000/rs6000.md:10804
>>    pointer offset = __atomic_load_n (&obj->loc.offset, __ATOMIC_ACQUIRE);
>>            ^~~~~~
>
> Basically, the patch does only:
>
> +expand_memory_blockage (void)
> +{
> +  if (targetm.have_memory_blockage)
> +    emit_insn (targetm.gen_memory_blockage ());
> +  else
> +    expand_asm_memory_blockage ();
> +}
>
> So, if the target doesn't declare memory_blockage pattern, as is the
> case with rs6000, I really fail to see what could go wrong here.

Thanks for finding and fixing the targetm.have_memory_blockage typo.

- David

  reply	other threads:[~2017-10-14 18:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-14 16:00 David Edelsohn
2017-10-14 16:29 ` David Edelsohn
2017-10-14 18:28 ` Uros Bizjak
2017-10-14 18:28   ` David Edelsohn [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-05 13:50 Uros Bizjak
2017-09-05 14:22 ` Alexander Monakov
2017-09-18 21:06 ` Uros Bizjak
2017-10-14 10:32   ` Andrew Pinski
2017-10-14 10:39     ` Christophe Lyon
2017-10-14 12:33     ` Uros Bizjak
2017-10-13 18:04 ` Jeff Law
2017-10-13 18:29   ` Uros Bizjak
2017-10-13 18:33     ` 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='CAGWvnykSnKRv0yimHMQxQHf19oaG2=bgLXUEONbd_aRs8BG9zw@mail.gmail.com' \
    --to=dje.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ubizjak@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).