re PR ada/77968 (ICEs with -flto on gnat.dg)
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 14 Oct 2016 10:28:27 +0000 (10:28 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 14 Oct 2016 10:28:27 +0000 (10:28 +0000)
commit14cf71a0df9c3f548052b752c7c1e2fd05fc7a8c
treeb89ba7982c5fdf0b1462b5b6c43da034b5ce2ca5
parent45b510b3704b96ae45f86e7f2e0fb62f07e99430
re PR ada/77968 (ICEs with -flto on gnat.dg)

PR ada/77968
* gcc-interface/utils.c (create_var_decl): Do not clear TREE_READONLY
in LTO mode for an external variable.
(can_materialize_object_renaming_p): Move up.

From-SVN: r241154
17 files changed:
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/lto15.adb
gcc/testsuite/gnat.dg/lto16.adb
gcc/testsuite/gnat.dg/lto17.adb
gcc/testsuite/gnat.dg/lto18.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto18.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto18_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto19.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto19_pkg1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto19_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto19_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto19_pkg2.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto20.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto20_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto20_pkg.ads [new file with mode: 0644]