This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Fix Ada on GNU/kFreeBSD


> Please find a patch below to fix Ada on GNU/kFreeBSD. Please note that
> with this patch, GNU/kFreeBSD will use s-tasinf-linux.ad{s,b}, which
> despite their name are not Linux specific, but rather GNU libc specific.
> 
> 2008-04-01  Aurelien Jarno  <aurelien@aurel32.net>
> 
>         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
> 	constant 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.
> 	* Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
> 	on GNU/kFreeBSD.

This patch is OK.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]