http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940
--- Comment #2 from Ludovic Brenta <ludo...@ludovic-brenta.org> 2011-08-02 17:39:02 UTC --- I found that declaring lwp_self in s-osinte-kfreebsd-gnu.ads similarly to the declaration in s-osinte-freebsd.ads fixed the problem. Patch submitted as http://gcc.gnu.org/ml/gcc-patches/2011-08/msg00139.html.