[Ada] Fix retrieval of number of CPUs on QNX
authorJerome Lambourg <lambourg@adacore.com>
Tue, 22 May 2018 13:26:49 +0000 (13:26 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 22 May 2018 13:26:49 +0000 (13:26 +0000)
commit9820b3897803c38f66f8515dc15cdb3e10c7ad20
tree5200ed8a157dd822e2fb3d68b2ae0a75efe2ef6f
parent817659c5f32786062f09befbf7132723441556b6
[Ada] Fix retrieval of number of CPUs on QNX

Although the sysconf SC_NPROCESSORS_ONLN is also defined by the API, the
only documented way to retrieve the number of CPUs is by using the syspage.

This also better organise the QNX-specific macros in adaint.c

2018-05-22  Jerome Lambourg  <lambourg@adacore.com>

gcc/ada/

* adaint.c: Reorganize QNX-specific macros, use syspage to retreive the
number of CPUs.

From-SVN: r260531
gcc/ada/ChangeLog
gcc/ada/adaint.c