diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-03-09 23:23:14 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-03-09 23:23:14 +0100 |
commit | 2956d3a8ddf9b1c676ab54b1a081a007f5081b8e (patch) | |
tree | 4ae4bf3c6ce9de041908d06861f612eccc5d20dd /gcc/config/rs6000 | |
parent | 1577f10a637352b4fe7fb4a4c0fd672a96c84f58 (diff) | |
download | gcc-2956d3a8ddf9b1c676ab54b1a081a007f5081b8e.zip gcc-2956d3a8ddf9b1c676ab54b1a081a007f5081b8e.tar.gz gcc-2956d3a8ddf9b1c676ab54b1a081a007f5081b8e.tar.bz2 |
re PR target/84772 (powerpc-spe: Spurious "is used uninitialized" warning, or possibly incorrect codegen for va_arg(long double))
PR target/84772
* config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Mark va_arg_tmp
temporary TREE_ADDRESSABLE before gimplification of BUILT_IN_MEMCPY.
* config/powerpcspe/powerpcspe.c (rs6000_gimplify_va_arg): Likewise.
* gcc.dg/pr84772.c: New test.
From-SVN: r258399
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 63f62d4..cdb1918 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -13537,6 +13537,7 @@ rs6000_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p, tree copy = build_call_expr (builtin_decl_implicit (BUILT_IN_MEMCPY), 3, dest_addr, addr, size_int (rsize * 4)); + TREE_ADDRESSABLE (tmp) = 1; gimplify_and_add (copy, pre_p); addr = dest_addr; |