public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Uros Bizjak <ubizjak@gmail.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [RFC PATCH] Change the type of predicates to bool.
Date: Wed, 30 Jun 2021 12:50:46 +0200	[thread overview]
Message-ID: <CAFiYyc2sbM+RjPLgd3RWe_mpNYBDNpaT0SjtC2Z_2SOgdV-PrQ@mail.gmail.com> (raw)
In-Reply-To: <CAFULd4Y=7D-L6ZzcxFtSPt3GD1PXpeHT+a4UQyL8q5Fvhbz2hg@mail.gmail.com>

On Wed, Jun 30, 2021 at 10:47 AM Uros Bizjak via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> This RFC patch changes the type of predicates to bool. However, some
> of the targets (e.g. x86) use indirect functions to call the
> predicates, so without the local change, the build fails. Putting the
> patch through CI bots should weed out the problems, but I have no
> infrastructure to do it myself.

I'd say thanks for the work - note building some cc1 crosses should
catch 99% of the fallout (just configure $target-linux/elf and make all-gcc)

Richard.

> 2021-06-30  Uroš Bizjak  <ubizjak@gmail.com>
>
> gcc/
>     * genpreds.c (write_predicate_subfunction):
>     Change the type of written subfunction to bool.
>     (write_one_predicate_function):
>     Change the type of written function to bool.
>     (write_tm_preds_h): Ditto.
>     * recog.h (*insn_operand_predicate_fn): Change the type to bool.
>     * recog.c (general_operand): Change the type to bool.
>     (address_operand): Ditto.
>     (register_operand): Ditto.
>     (pmode_register_operand): Ditto.
>     (scratch_operand): Ditto.
>     (immediate_operand): Ditto.
>     (const_int_operand): Ditto.
>     (const_scalar_int_operand): Ditto.
>     (const_double_operand): Ditto.
>     (nonimmediate_operand): Ditto.
>     (nonmemory_operand): Ditto.
>     (push_operand): Ditto.
>     (pop_operand): Ditto.
>     (memory_operand): Ditto.
>     (indirect_operand): Ditto.
>     (ordered_comparison_operator): Ditto.
>     (comparison_operator): Ditto.
>
>     * config/i386/i386-expand.c (ix86_expand_sse_cmp):
>     Change the type of indirect predicate function to bool.
>
> Patch was bootstrapped on x86_64-linux-gnu.
>
> Comments welcome.
>
> Uros.

  reply	other threads:[~2021-06-30 10:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-30  8:46 Uros Bizjak
2021-06-30 10:50 ` Richard Biener [this message]
2021-06-30 15:00   ` Jeff Law
2021-07-01 13:07   ` [PATCH] " Uros Bizjak
2021-07-01 13:11     ` Richard Biener

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=CAFiYyc2sbM+RjPLgd3RWe_mpNYBDNpaT0SjtC2Z_2SOgdV-PrQ@mail.gmail.com \
    --to=richard.guenther@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).