trans.c (add_decl_expr): Minor tweak.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 11 Jul 2016 08:16:48 +0000 (08:16 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 11 Jul 2016 08:16:48 +0000 (08:16 +0000)
commit7352723b9e9a7f04d68aca3f09386d1a14c87f7e
treebc751dc234498dcd1192cf177d53d0f58422dcc5
parent833c1dbc609404a69b30d7f045b50935c058302b
trans.c (add_decl_expr): Minor tweak.

* gcc-interface/trans.c (add_decl_expr): Minor tweak.
* gcc-interface/utils.c (create_var_decl): For an external variable,
also clear TREE_READONLY in LTO mode if the initializer is not a valid
constant and set DECL_READONLY_ONCE_ELAB instead.

From-SVN: r238206
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c