tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute TYPE_CANONICAL...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Dec 2019 16:41:30 +0000 (16:41 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 9 Dec 2019 16:41:30 +0000 (16:41 +0000)
commit43c2de7a5720e0d6fbc5df8fc6fb03f2dbf164ff
tree2e8a6937054d054b20ce6263b5b6ca97962bdc3a
parent9b4c16f2c93a089d81c9e6f3ea6d1abc36fd1ad1
tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute TYPE_CANONICAL from the element type...

* tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
TYPE_CANONICAL from the element type only if it is true.  Remove a few
obsolete lines and adjust recursive call.
(fld_process_array_type): Adjust call to build_array_type_1.
(build_array_type): Likewise.
(build_nonshared_array_type): Likewise.

From-SVN: r279133
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/lto23.adb [new file with mode: 0644]
gcc/tree.c