------- Comment #28 from laurent at guerby dot net  2008-04-02 11:44 -------
I did not notice that s-taprop for rtems was the posix version

   procedure Initialize_TCB (Self_ID : Task_Id; Succeeded : out Boolean) is
      Mutex_Attr : aliased pthread_mutexattr_t;
      Result     : Interfaces.C.int;
      Cond_Attr  : aliased pthread_condattr_t;

   begin
...

         if Result /= 0 then
            Succeeded := False;
            return;
         end if;
...
      if Result = 0 then
         Succeeded := True;
      else
         if not Single_Lock then
            Result := pthread_mutex_destroy (Self_ID.Common.LL.L'Access);
            pragma Assert (Result = 0);
         end if;

         Succeeded := False;
      end if;
...

So it's now just a matter of finding which posix call in there fails.


-- 


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

Reply via email to