aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-08-24 21:31:34 +0800
committerXi Ruoyao <xry111@xry111.site>2022-08-25 18:55:36 +0800
commita45b7b19e1364dd7b0066df49d458b05ba3c72d1 (patch)
tree6141d21f71c65999f041aa445c26d5f434686992 /gcc/c
parent818073fe9ddc384f0cf702306c672b935fa42325 (diff)
downloadgcc-a45b7b19e1364dd7b0066df49d458b05ba3c72d1.zip
gcc-a45b7b19e1364dd7b0066df49d458b05ba3c72d1.tar.gz
gcc-a45b7b19e1364dd7b0066df49d458b05ba3c72d1.tar.bz2
LoongArch: Avoid RTL flag check failure in loongarch_classify_symbol
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 with RTL flag checking enabled: pr106096.C:26:1: internal compiler error: RTL flag check: SYMBOL_REF_FLAGS used with unexpected rtx code 'const' in loongarch_classify_symbol gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_classify_symbol): Return early if the rtx is not SYMBOL_REF.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions