This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
- From: Arnaud Charlet <charlet at adacore dot com>
- To: "ludovic at ludovic-brenta dot org" <gcc-bugzilla at gcc dot gnu dot org>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 15:45:06 +0200
- Subject: Re: [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
- References: <bug-49940-4@http.gcc.gnu.org/bugzilla/>
> The function __gnat_lwp_self exists in adaint.c only #if defined(linux),
> so it may not apply to kfreebsd-*. The problem exists because
> kfreebsd-* uses s-osinte-kfreebsd-gnu.ads, which does not import the
> function, but also uses s-taprop-linux.adb, which does use the function.
> (Note
> that s-taprop-posix.adb also calls lwp_self).
>
> I am not sure what to do:
>
> * introduce a new file s-taprop-kfreebsd-gnu.adb?
> * provide the function __gnat_lwp_self also on kfreebsd-* and import it in
> s-osinte-kfreebsd-gnu.ads?
Better would be to use s-taprop-posix.adb, that would avoid relying on
non portable code and would require minimal maintenance.