]> git.ipfire.org Git - thirdparty/gcc.git/commit
mips: Fix up mips_atomic_assign_expand_fenv [PR94780]
authorXi Ruoyao <xry111@mengyan1223.wang>
Fri, 30 Jul 2021 15:44:14 +0000 (23:44 +0800)
committerXi Ruoyao <xry111@mengyan1223.wang>
Fri, 30 Jul 2021 17:08:29 +0000 (01:08 +0800)
commit7db1795abedc8a8a8d7da1280613c30c438a4126
tree7e82ca61bd923293a23c4fcd4172efccd73b1ef1
parent2a47ee788c068e88789598a13fc7e81207d8d9ba
mips: Fix up mips_atomic_assign_expand_fenv [PR94780]

Commit message shamelessly copied from 1777beb6b129 by jakub:

This function, because it is sometimes called even outside of function
bodies, uses create_tmp_var_raw rather than create_tmp_var.  But in order
for that to work, when first referenced, the VAR_DECLs need to appear in a
TARGET_EXPR so that during gimplification the var gets the right
DECL_CONTEXT and is added to local decls.

gcc/

PR target/94780
* config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
  TARGET_EXPR instead of MODIFY_EXPR.

(cherry picked from commit 2065654435e3d97676366f82b939bc9273382dbe)
gcc/config/mips/mips.c