aarch64: PR target/95526: Fix gimplification of varargs
authorRichard Biener <rguenther@suse.de>
Thu, 4 Jun 2020 15:26:36 +0000 (16:26 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Thu, 4 Jun 2020 15:33:36 +0000 (16:33 +0100)
commitab56390384cd5168b548ff07e6f0c9c4d41420fb
tree3762fc509d08eb15184841a8ddd6d315bf7c73a8
parent1980ffec48c6fa41396bea66366f2e591798e1e1
aarch64: PR target/95526: Fix gimplification of varargs

This patch fixes a latent bug exposed by
eb72dc663e9070b281be83a80f6f838a3a878822 in the aarch64 backend that was
causing wrong codegen and several testsuite failures. See the discussion
on the bug for details.

Bootstrapped and regtested on aarch64-linux-gnu. Cleaned up several
failing tests and no new fails introduced.

2020-06-04  Richard Biener  <rguenther@suse.de>

gcc/:

* config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr):
Ensure that tmp_ha is marked TREE_ADDRESSABLE.
gcc/config/aarch64/aarch64.c