Provide Task_Info.Number_Of_Processors on Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 23 Sep 2019 09:13:21 +0000 (09:13 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 23 Sep 2019 09:13:21 +0000 (09:13 +0000)
commite25427723608118c1441aac4c4808e2360eb0b6c
tree8e93c5682c82a055e989daddadffaea2f4612035
parent193410e311002ebe1013a7b18ad30c0c2e8f31b1
Provide Task_Info.Number_Of_Processors on Solaris

gcc/ada:
* libgnarl/s-osinte__solaris.ads (sysconf): Declare.
(SC_NPROCESSORS_ONLN): Define.
* libgnarl/s-tasinf__solaris.ads (Number_Of_Processors): Declare.
* libgnarl/s-tasinf__solaris.adb (N_CPU): New variable.
(Number_Of_Processors): New function.

gcc/testsuite:
* gnat.dg/system_info1.adb: Sort dg-do target list.
Add *-*-solaris2.*.

From-SVN: r276049
gcc/ada/ChangeLog
gcc/ada/libgnarl/s-osinte__solaris.ads
gcc/ada/libgnarl/s-tasinf__solaris.adb
gcc/ada/libgnarl/s-tasinf__solaris.ads
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/system_info1.adb