[Ada] Make GNAT.Array_Split a preelaborable unit
authorHristian Kirtchev <kirtchev@adacore.com>
Mon, 11 Jun 2018 09:18:44 +0000 (09:18 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 11 Jun 2018 09:18:44 +0000 (09:18 +0000)
commit24d124a42aefdb882f393f6c2211d9c9c3914c70
tree09b1d39b3ba5a4b76cea4abe16e1432d92f24b31
parent63254915a9dc280e52f033da0fe40441727758c0
[Ada] Make GNAT.Array_Split a preelaborable unit

This patch makes GNAT.Array_Split a preelaborable unit. As a result, it can be
withed by other preelaborated untis.

2018-06-11  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

* libgnat/g-arrspl.ads: Add pragma Preelaborate.

gcc/testsuite/

* gnat.dg/gnat_array_split1.adb, gnat.dg/gnat_array_split1.ads: New
testcase.

From-SVN: r261419
gcc/ada/ChangeLog
gcc/ada/libgnat/g-arrspl.ads
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/gnat_array_split1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/gnat_array_split1.ads [new file with mode: 0644]