]> gcc.gnu.org Git - gcc.git/commit
pr94780.c fails with ICE on aarch64 [PR94820]
authorHaijian Zhang <z.zhanghaijian@huawei.com>
Wed, 29 Apr 2020 08:23:11 +0000 (10:23 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 29 Apr 2020 08:23:11 +0000 (10:23 +0200)
commitd81bc2af7d2700888e414eb5a322ff5f5b0df0bb
tree2ba7735877adce981a59c2f7bd3b525c356001e4
parenta5d0bc12e1bfa956941cd9c49d5b978256bd11ec
pr94780.c fails with ICE on aarch64 [PR94820]

This is a simple fix for pr94820.
The PR was only fixed on i386, the same error was also reported on aarch64.
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. Without that, e.g. tree-nested.c ICEs on those.

2020-04-29  Haijian Zhang  <z.zhanghaijian@huawei.com>

PR target/94820
* config/aarch64/aarch64-builtins.c
(aarch64_atomic_assign_expand_fenv): Use TARGET_EXPR instead of
MODIFY_EXPR for first assignment to fenv_cr, fenv_sr and
new_fenv_var.
gcc/ChangeLog
gcc/config/aarch64/aarch64-builtins.c
This page took 0.067959 seconds and 6 git commands to generate.