]> gcc.gnu.org Git - gcc.git/commit
rs6000: Fix rs6000_atomic_assign_expand_fenv [PR94826]
authorJakub Jelinek <jakub@redhat.com>
Wed, 29 Apr 2020 13:55:39 +0000 (15:55 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 16 Sep 2020 17:24:47 +0000 (19:24 +0200)
commit540e1de23a70360fe9b626df8420be704d02e3a7
treecada9e20e05c5a701be21f47483eb6fe60f34147
parent029d813ddf3595bfc93bfb4afad645dd033d21bf
rs6000: Fix rs6000_atomic_assign_expand_fenv [PR94826]

This is the rs6000 version of the earlier committed x86, aarch64 and arm
fixes, as create_tmp_var_raw is used because the C FE can call this outside
of function context, we need to make sure the first references to those
VAR_DECLs are through a TARGET_EXPR, so that it gets gimple_add_tmp_var
marked in whatever function it gets expanded in.  Without that DECL_CONTEXT
is NULL and the vars aren't added as local decls of the containing function.

2020-04-29  Jakub Jelinek  <jakub@redhat.com>

PR target/94826
* config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Use
TARGET_EXPR instead of MODIFY_EXPR for first assignment to
fenv_var, fenv_clear and old_fenv variables.  For fenv_addr
take address of TARGET_EXPR of fenv_var with void_node initializer.
Formatting fixes.

(cherry picked from commit c7137fcc7cbc1f1f14f9fed75adcc6bd8f1d418c)
gcc/config/rs6000/rs6000.c
This page took 0.065043 seconds and 6 git commands to generate.