This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Another patch: Re: objc FAILs under hpux/-threads with gcc-2.96 CVS
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: Another patch: Re: objc FAILs under hpux/-threads with gcc-2.96 CVS
- From: Ovidiu Predescu <ovidiu at cup dot hp dot com>
- Date: Tue, 05 Sep 2000 23:59:32 -0700
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
Thanks, I applied it.
Ovidiu
On Tue, 5 Sep 2000 14:21:18 -0400 (EDT), "John David Anglin"
<dave@hiauly1.hia.nrc.ca> wrote:
> This is the complement to the previous patch. Tested with bootstrap
> and check.
>
> Dave
> --
> J. David Anglin dave.anglin@nrc.ca
> National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
>
> 2000-09-02 J. David Anglin <dave@hiauly1.hia.nrc.ca>
>
> * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
>
> --- gthr-dce.h.orig Fri Sep 1 19:17:41 2000
> +++ gthr-dce.h Sat Sep 2 14:37:18 2000
> @@ -294,9 +294,14 @@
> static inline int
> __gthread_objc_mutex_deallocate(objc_mutex_t mutex)
> {
> - if (__gthread_active_p ()
> - && pthread_mutex_destroy((pthread_mutex_t *)mutex->backend))
> - return -1;
> + if (__gthread_active_p ())
> + {
> + if (pthread_mutex_destroy((pthread_mutex_t *)mutex->backend))
> + return -1;
> +
> + objc_free(mutex->backend);
> + mutex->backend = NULL;
> + }
>
> return 0;
> }
>
PGP signature