This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/38400] Acats faillures due to undefined pthread_setrunon_np
- From: "J dot J dot vanderHeijden at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2008 11:07:49 -0000
- Subject: [Bug ada/38400] Acats faillures due to undefined pthread_setrunon_np
- References: <bug-38400-17038@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from J dot J dot vanderHeijden at gmail dot com 2008-12-11 11:07 -------
Subject: Re: Acats faillures due to undefined pthread_setrunon_np
On Wed, Dec 10, 2008 at 12:54 PM, laurent at guerby dot net
<gcc-bugzilla@gcc.gnu.org> wrote:
>
>
> Could you try to add in gcc/ada/adaint.c the following definition:
>
> int pthread_setrunon_np (int cpu) { return 0; }
>
> Then see if it fixes the ACATS failures, then try to find out #ifdef that
> trigger only on IRIX 6.2.
>
> Thanks in advance,
Sounds like a plan.
The offending piece of code is pretty useless btw, even on IRIX 6.5.
The cpu# in question is always initialized in s-tasinf-irix.ads with
CPU_ANY so the end result is the same as when you wouldn't call
pthread_setrunon_np() at all. So my initial fix was to simply remove
this functionality entirely.
I'll have to dig up an old SGI running IRIX 6.2, yet fast enough to
finish the regression test. Usually I run 6.2 regression tests inside
a sandbox on a much faster SGI running IRIX 6.5, but this sandbox is
limited: it always fails anything linked to the pthreads library.
Jan-Jaap
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38400