This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/34466] s-tasinf.ads:81:42: "cpu_set_t" not declared in "OS_Interface"
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jan 2008 01:01:33 -0000
- Subject: [Bug ada/34466] s-tasinf.ads:81:42: "cpu_set_t" not declared in "OS_Interface"
- References: <bug-34466-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from danglin at gcc dot gnu dot org 2008-01-11 01:01 -------
Subject: Bug 34466
Author: danglin
Date: Fri Jan 11 01:00:48 2008
New Revision: 131457
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131457
Log:
PR ada/34466
* s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
sysconf call.
(bit_field): New packed boolean type used by cpu_set_t.
(cpu_set_t): New type corresponding to the C type with
the same name. Note that on the Ada side we use a bit
field array for the affinity mask. There is not need
for the C macro for setting individual bit.
(pthread_setaffinity_np): New imported routine.
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/s-osinte-linux-hppa.ads
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34466