http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

--- Comment #1 from charlet at adacore dot com <charlet at adacore dot com> 
2011-08-02 13:46:01 UTC ---
> 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.

Reply via email to