aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-05-15 12:57:32 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-05-15 12:57:32 +0000
commit2092f134b7180cd2542cff93bd8a876b3e59a77b (patch)
tree5da47eee662dee141251b85a89ddf7a723e0c840 /gcc
parent186dabf2926eb049e9a954dae6fa765687dc353c (diff)
downloadgcc-2092f134b7180cd2542cff93bd8a876b3e59a77b.zip
gcc-2092f134b7180cd2542cff93bd8a876b3e59a77b.tar.gz
gcc-2092f134b7180cd2542cff93bd8a876b3e59a77b.tar.bz2
tree-into-ssa.c (pass_build_ssa::execute): Run update_address_taken before going into SSA.
2019-05-15 Richard Biener <rguenther@suse.de> * tree-into-ssa.c (pass_build_ssa::execute): Run update_address_taken before going into SSA. From-SVN: r271209
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-into-ssa.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8ef2c82..8bb14cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2019-05-15 Richard Biener <rguenther@suse.de>
+ * tree-into-ssa.c (pass_build_ssa::execute): Run
+ update_address_taken before going into SSA.
+
+2019-05-15 Richard Biener <rguenther@suse.de>
+
* tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
as __BIT_FIELD_REF with type with -gimple.
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c
index 061521d..0ec2f56 100644
--- a/gcc/tree-into-ssa.c
+++ b/gcc/tree-into-ssa.c
@@ -2425,6 +2425,12 @@ pass_build_ssa::execute (function *fun)
bitmap_head *dfs;
basic_block bb;
+ /* Increase the set of variables we can rewrite into SSA form
+ by clearing TREE_ADDRESSABLE and setting DECL_GIMPLE_REG_P
+ and transform the IL to support this. */
+ if (optimize)
+ execute_update_addresses_taken ();
+
/* Initialize operand data structures. */
init_ssa_operands (fun);