PR ada/77968
commit0dfdb37a710d9c50f78cf54f0a3442dbb86738dd
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2016 10:28:27 +0000 (14 10:28 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2016 10:28:27 +0000 (14 10:28 +0000)
treeb89ba7982c5fdf0b1462b5b6c43da034b5ce2ca5
parentd923797a9d9467ad61638a082dc9b83fcd15dec1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241154 138bc75d-0d04-0410-961f-82ee72b054a4
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]