* [PATCH] Fix typo in type verification.
@ 2021-12-22 12:03 Martin Liška
2021-12-22 16:06 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Martin Liška @ 2021-12-22 12:03 UTC (permalink / raw)
To: gcc-patches; +Cc: Jan Hubicka
Hello.
The patch is quite obvious fix.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Thanks,
Martin
PR ipa/103786
gcc/ChangeLog:
* tree.c (verify_type): Fix typo.
---
gcc/tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree.c b/gcc/tree.c
index 72cceda568f..0741e3b01af 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -13530,7 +13530,7 @@ verify_type (const_tree t)
tree ct = TYPE_CANONICAL (t);
if (!ct)
;
- else if (TYPE_CANONICAL (t) != ct)
+ else if (TYPE_CANONICAL (ct) != ct)
{
error ("%<TYPE_CANONICAL%> has different %<TYPE_CANONICAL%>");
debug_tree (ct);
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix typo in type verification.
2021-12-22 12:03 [PATCH] Fix typo in type verification Martin Liška
@ 2021-12-22 16:06 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2021-12-22 16:06 UTC (permalink / raw)
To: gcc-patches, Martin Liška; +Cc: Jan Hubicka
On December 22, 2021 1:03:18 PM GMT+01:00, "Martin Liška" <mliska@suse.cz> wrote:
>Hello.
>
>The patch is quite obvious fix.
>
>Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
>Ready to be installed?
Ok.
Richard.
>Thanks,
>Martin
>
> PR ipa/103786
>
>gcc/ChangeLog:
>
> * tree.c (verify_type): Fix typo.
>---
> gcc/tree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/gcc/tree.c b/gcc/tree.c
>index 72cceda568f..0741e3b01af 100644
>--- a/gcc/tree.c
>+++ b/gcc/tree.c
>@@ -13530,7 +13530,7 @@ verify_type (const_tree t)
> tree ct = TYPE_CANONICAL (t);
> if (!ct)
> ;
>- else if (TYPE_CANONICAL (t) != ct)
>+ else if (TYPE_CANONICAL (ct) != ct)
> {
> error ("%<TYPE_CANONICAL%> has different %<TYPE_CANONICAL%>");
> debug_tree (ct);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-22 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22 12:03 [PATCH] Fix typo in type verification Martin Liška
2021-12-22 16:06 ` Richard Biener
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).