mips: Avoid out-of-bounds access in mips_symbol_insns [PR98491]
authorXi Ruoyao <xry111@mengyan1223.wang>
Wed, 17 Feb 2021 11:57:13 +0000 (11:57 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 17 Feb 2021 11:57:13 +0000 (11:57 +0000)
commit06505e701dcfdb1b9855601d6cf0aa1caea62975
treea6c1d2b7c0afff9075d4791ee2e20856d936239d
parent78a6d0e30d7950216dc0c5be5d65d0cbed13924c
mips: Avoid out-of-bounds access in mips_symbol_insns [PR98491]

An invalid use of MSA_SUPPORTED_MODE_P was causing an ICE on
mips64el with -mmsa.  The detailed analysis is posted on bugzilla.

gcc/ChangeLog:

2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>

PR target/98491
* config/mips/mips.c (mips_symbol_insns): Do not use
MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
gcc/config/mips/mips.c