From: Richard Biener <rguenther@suse.de>
To: Martin Uecker <uecker@tugraz.at>
Cc: gcc@gcc.gnu.org, Joseph Myers <josmyers@redhat.com>,
Jakub Jelinek <jakub@redhat.com>
Subject: Re: check_qualified_type
Date: Mon, 17 Jun 2024 14:42:05 +0200 (CEST) [thread overview]
Message-ID: <24n46r00-qp22-r358-0qq6-q8s11rr89rp9@fhfr.qr> (raw)
In-Reply-To: <4aca9f8d18b29e4a6fd925477ca1d9a451992c8a.camel@tugraz.at>
[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]
On Mon, 17 Jun 2024, Martin Uecker wrote:
> Am Montag, dem 17.06.2024 um 08:01 +0200 schrieb Richard Biener via Gcc:
> > On Sun, 16 Jun 2024, Martin Uecker wrote:
> >
> > >
> > >
> > > I am trying to understand what check_qualified_type
> > > does exactly. The direct comparison of TYPE_NAMES seems incorrect
> > > for C and its use is c_update_type_canonical then causes
> > > PR114930 and PR115502. In the later function I think
> > > it is not really needed and I guess one could simply remove
> > > it, but I wonder if it works incorrectly in other cases
> > > too?
> >
> > TYPE_NAMES is compared because IIRC typedefs are recorded as variants
> > and 'const T' isn't the same as 'const int' with typedef int T.
>
> so if it is intentional that it differentiates between
>
> struct foo
>
> and
>
> typedef struct foo bar
>
> then I will change c_update_type_canonical to not use it,
> because both types should have the same TYPE_CANONICAL
The check is supposed to differentiate between variants and all variants
have the same TYPE_CANONICAL so I'm not sure why you considered using
this function for canonical type compute?
Richard.
next prev parent reply other threads:[~2024-06-17 12:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-16 20:22 check_qualified_type Martin Uecker
2024-06-17 6:01 ` check_qualified_type Richard Biener
2024-06-17 6:31 ` check_qualified_type Martin Uecker
2024-06-17 12:42 ` Richard Biener [this message]
2024-06-17 12:57 ` check_qualified_type Jakub Jelinek
2024-06-17 13:33 ` check_qualified_type Martin Uecker
2024-06-17 13:40 ` check_qualified_type Jakub Jelinek
2024-06-17 13:53 ` check_qualified_type Martin Uecker
2024-06-17 14:01 ` check_qualified_type Jakub Jelinek
2024-06-17 16:01 ` check_qualified_type Jonathan Wakely
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=24n46r00-qp22-r358-0qq6-q8s11rr89rp9@fhfr.qr \
--to=rguenther@suse.de \
--cc=gcc@gcc.gnu.org \
--cc=jakub@redhat.com \
--cc=josmyers@redhat.com \
--cc=uecker@tugraz.at \
/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).