From 2092f134b7180cd2542cff93bd8a876b3e59a77b Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 15 May 2019 12:57:32 +0000 Subject: [PATCH] tree-into-ssa.c (pass_build_ssa::execute): Run update_address_taken before going into SSA. 2019-05-15 Richard Biener * tree-into-ssa.c (pass_build_ssa::execute): Run update_address_taken before going into SSA. From-SVN: r271209 --- gcc/ChangeLog | 5 +++++ gcc/tree-into-ssa.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ef2c8240be..8bb14cf131d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-05-15 Richard Biener + + * tree-into-ssa.c (pass_build_ssa::execute): Run + update_address_taken before going into SSA. + 2019-05-15 Richard Biener * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 061521d20d5..0ec2f56216f 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); -- 2.30.2