public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Xi Ruoyao <xry111@xry111.site>
To: Lulu Cheng <chenglulu@loongson.cn>, gcc-patches@gcc.gnu.org
Cc: Chenghua Xu <xuchenghua@loongson.cn>,
	Youling Tang <tangyouling@loongson.cn>,
	 Huacai Chen <chenhuacai@kernel.org>,
	Jinyang He <hejinyang@loongson.cn>, Wang Xuerui <i@xen0n.name>
Subject: Re: [PATCH 1/2] LoongArch: Avoid RTL flag check failure in loongarch_classify_symbol
Date: Thu, 25 Aug 2022 18:53:41 +0800	[thread overview]
Message-ID: <a6cfaee45fe5153072aeeb73598e8e3a451dfd61.camel@xry111.site> (raw)
In-Reply-To: <a5067efd-d276-8ec0-479b-7379c5c5dda6@loongson.cn>

On Thu, 2022-08-25 at 16:29 +0800, Lulu Cheng wrote:
> 
> 在 2022/8/24 下午10:03, Xi Ruoyao 写道:
>  
> > SYMBOL_REF_TLS_MODEL invokes SYMBOL_REF_FLAGS, and SYMBOL_REF_FLAGS
> > invokes RTL_FLAG_CHECK1 and aborts when RTL code is not SYMBOL_REF.
> > 
> > r13-1833 removed "gcc_assert (SYMBOL_REF_P (x))" before invoking
> > "SYMBOL_REF_TLS_MODEL (x)", indicating that it's now possible that
> > "x"
> > is not a SYMBOL_REF.  So we need to check if "x" is SYMBOL_REF
> > first.
> > 
> > This fixes a test failure happening with r13-2173:
> > 
> >     pr106096.C:26:1: internal compiler error: RTL flag check:
> >     SYMBOL_REF_FLAGS used with unexpected rtx code 'const' in
> >     loongarch_classify_symbol
> 
> I think there is no problem with the code modification, but I have not
> detected this ICE.

If ENABLE_RTL_CHECKING is disabled (for example, use --enable-
checking=release, which is also the default for release tarballs), the
check will be skipped.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University

      parent reply	other threads:[~2022-08-25 10:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24 14:03 Xi Ruoyao
2022-08-24 14:08 ` [PATCH v2 2/2] LoongArch: add model attribute Xi Ruoyao
2022-08-24 14:12   ` [PATCH v2 2/2 resend] " Xi Ruoyao
2022-08-25  8:53     ` Lulu Cheng
2022-08-25  8:53       ` Lulu Cheng
2022-08-25  9:12       ` Xi Ruoyao
2022-08-25 11:41         ` Xi Ruoyao
2022-08-25 11:53           ` Lulu Cheng
2022-08-25  8:29 ` [PATCH 1/2] LoongArch: Avoid RTL flag check failure in loongarch_classify_symbol Lulu Cheng
2022-08-25  8:29   ` Lulu Cheng
2022-08-25 10:53   ` Xi Ruoyao [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=a6cfaee45fe5153072aeeb73598e8e3a451dfd61.camel@xry111.site \
    --to=xry111@xry111.site \
    --cc=chenglulu@loongson.cn \
    --cc=chenhuacai@kernel.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hejinyang@loongson.cn \
    --cc=i@xen0n.name \
    --cc=tangyouling@loongson.cn \
    --cc=xuchenghua@loongson.cn \
    /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).