]> gcc.gnu.org Git - gcc.git/commit - gcc/ada/ChangeLog
adaint.c, adaint.h (__gnat_cpu_alloc, [...]): Create these wrappers around the CPU_AL...
authorJose Ruiz <ruiz@adacore.com>
Thu, 1 Sep 2011 13:40:48 +0000 (13:40 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 1 Sep 2011 13:40:48 +0000 (15:40 +0200)
commit9d1e0e72dbd7a6cd71bd18adeb8d4c8e5cd2d86f
tree43c635534492841d32b301dc46c16759c59ad6a5
parenta95be2d47a4e851e44f04765e549e34c43b2f006
adaint.c, adaint.h (__gnat_cpu_alloc, [...]): Create these wrappers around the CPU_ALLOC...

2011-09-01  Jose Ruiz  <ruiz@adacore.com>

* adaint.c, adaint.h (__gnat_cpu_alloc, __gnat_cpu_alloc_size,
__gnat_cpu_set_free): Create these wrappers around the CPU_ALLOC,
CPU_ALLOC_SIZE and CPU_FREE linux macros.
(__gnat_cpu_zero, __gnat_cpu_set): Use the CPU_ZERO_S and
CPU_SET_S respectively because we are now using dynamically allocated
CPU sets which are more portable across different glibc versions.
* s-osinte-linux.ads (cpu_set_t_ptr, CPU_ALLOC, CPU_ALLOC_SIZE,
CPU_FREE): Add this type and subprograms to be able to create cpu_set_t
masks dynamically according to the number of processors in the target
platform.
(CPU_ZERO, CPU_SET): They are now mapped to the CPU_ZERO_S and CPU_SET_S
respectively, so we need to pass the size of the masks as
parameters.
* s-taprop-linux.adb (Create_Task, Set_Task_Affinity): Use dynamically
created cpu_set_t masks
with the number of processors available in the target platform,
instead of static bit arrays. It enhances portability because
it uses the information from the target platform.
* sem_ch8.adb: (Attribute_Renaming): When checking whether we
are using a restricted run-time library, use the flag
Configurable_Run_Time_Mode instead of Restricted_Profile.

From-SVN: r178416
gcc/ada/ChangeLog
gcc/ada/adaint.c
gcc/ada/adaint.h
gcc/ada/s-osinte-linux.ads
gcc/ada/s-taprop-linux.adb
gcc/ada/sem_ch8.adb
This page took 0.060518 seconds and 5 git commands to generate.