From: Richard Biener <richard.guenther@gmail.com>
To: Eric Botcazou <botcazou@adacore.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Handle constant CONSTRUCTORs in operand_compare
Date: Fri, 10 Nov 2023 14:31:23 +0100 [thread overview]
Message-ID: <CAFiYyc3aEM6PiNh+9Xs29_AfBD7OmYgjDqEh5_uQ1xzed8BfOw@mail.gmail.com> (raw)
In-Reply-To: <4845410.GXAFRqVoOG@fomalhaut>
On Fri, Nov 10, 2023 at 12:17 PM Eric Botcazou <botcazou@adacore.com> wrote:
>
> Hi,
>
> this teaches operand_compare to compare constant CONSTRUCTORs, which is quite
> helpful for so-called fat pointers in Ada, i.e. objects that are semantically
> pointers but are represented by structures made up of two pointers. This is
> modeled on the implementation present in the ICF pass.
>
> Bootstrapped/regtested on x86-64/Linux, OK for the mainline?
OK.
>
> 2023-11-10 Eric Botcazou <ebotcazou@adacore.com>
>
> * fold-const.cc (operand_compare::operand_equal_p) <CONSTRUCTOR>:
> Deal with nonempty constant CONSTRUCTORs.
> (operand_compare::hash_operand) <CONSTRUCTOR>: Hash DECL_FIELD_OFFSET
> and DECL_FIELD_BIT_OFFSET for FIELD_DECLs.
>
>
> 2023-11-10 Eric Botcazou <ebotcazou@adacore.com>
>
> * gnat.dg/opt103.ads, gnat.dg/opt103.adb: New test.
>
> --
> Eric Botcazou
prev parent reply other threads:[~2023-11-10 13:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 11:17 Eric Botcazou
2023-11-10 13:31 ` Richard Biener [this message]
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=CAFiYyc3aEM6PiNh+9Xs29_AfBD7OmYgjDqEh5_uQ1xzed8BfOw@mail.gmail.com \
--to=richard.guenther@gmail.com \
--cc=botcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.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).