public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "laurent at guerby dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/38400] Acats faillures due to undefined pthread_setrunon_np Date: Wed, 10 Dec 2008 11:55:00 -0000 [thread overview] Message-ID: <20081210115431.24049.qmail@sourceware.org> (raw) In-Reply-To: <bug-38400-17038@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from laurent at guerby dot net 2008-12-10 11:54 ------- The missing function is called only in one place, visibly to set thread affinity: gcc/ada/s-taprop-irix.adb if Self_ID.Common.Task_Info /= null and then Self_ID.Common.Task_Info.Scope = PTHREAD_SCOPE_SYSTEM and then Self_ID.Common.Task_Info.Runon_CPU /= ANY_CPU then Result := pthread_setrunon_np (To_Int (Self_ID.Common.Task_Info.Runon_CPU)); pragma Assert (Result = 0); end if; The simplest thing to do would be to add #ifdef to define this function in gcc/ada/adaint.c as dummy returning zero when IRIX. I don't have access to an IRIX system so I don't know what #ifdef are available (or may be configure test): 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, -- laurent at guerby dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |laurent at guerby dot net Keywords| |link-failure http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38400
next prev parent reply other threads:[~2008-12-10 11:55 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-12-04 13:42 [Bug ada/38400] New: " J dot J dot vanderHeijden at gmail dot com 2008-12-10 11:55 ` laurent at guerby dot net [this message] 2008-12-11 11:09 ` [Bug ada/38400] " J dot J dot vanderHeijden at gmail dot com 2008-12-11 11:15 ` Arnaud Charlet 2008-12-11 11:16 ` charlet at adacore dot com 2008-12-15 16:42 ` J dot J dot vanderHeijden at gmail dot com 2008-12-15 16:50 ` J dot J dot vanderHeijden at gmail dot com [not found] <bug-38400-4@http.gcc.gnu.org/bugzilla/> 2011-07-19 14:49 ` ro at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20081210115431.24049.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).