riscv: Fix up riscv_atomic_assign_expand_fenv [PR94950]
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 May 2020 07:40:33 +0000 (09:40 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 6 May 2020 07:40:33 +0000 (09:40 +0200)
commitb4ace720e004f736f1ee46b374c12f9826aad630
treed5586818acce882d5f7ed57417f60b3117506be8
parentf14848aea70066777faf201c0b6eb3c5520bfab9
riscv: Fix up riscv_atomic_assign_expand_fenv [PR94950]

Similarly to the fixes on many other targets, riscv needs to use TARGET_EXPR
to avoid having the create_tmp_var_raw temporaries without proper DECL_CONTEXT
and not mentioned in local decls.

2020-05-06  Jakub Jelinek  <jakub@redhat.com>

PR target/94950
* config/riscv/riscv-builtins.c (riscv_atomic_assign_expand_fenv): Use
TARGET_EXPR instead of MODIFY_EXPR for first assignment to old_flags.
gcc/ChangeLog
gcc/config/riscv/riscv-builtins.c