This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Fix Ada on GNU/kFreeBSD
- From: Arnaud Charlet <charlet at adacore dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Apr 2008 14:57:21 +0200
- Subject: Re: [PATCH 1/2] Fix Ada on GNU/kFreeBSD
- References: <20080401125234.GA575@volta.aurel32.net>
> 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.