diff options
author | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-01 21:44:02 +0000 |
---|---|---|
committer | oldham <oldham@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-01 21:44:02 +0000 |
commit | fb31551a25058c1a66711b7848fce83ce715b8d4 (patch) | |
tree | 9d598b5a7c34ac7a9f902b2d5f86d6c02bcc81ec /boehm-gc | |
parent | 0ce56e18ec0423ee7e2547a7a205e97c49ca7da3 (diff) | |
download | gcc-fb31551a25058c1a66711b7848fce83ce715b8d4.tar.gz |
2001-05-01 Jeffrey Oldham <oldham@codesourcery.com>
* gc_priv.h (UNLOCK): Change type of GC_noop1 argument.
(GC_noop1): Change declaration to take one argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41738 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r-- | boehm-gc/ChangeLog | 5 | ||||
-rw-r--r-- | boehm-gc/gc_priv.h | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 8846689a2fe..f62b7f3d2bf 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,8 @@ +2001-05-01 Jeffrey Oldham <oldham@codesourcery.com> + + * gc_priv.h (UNLOCK): Change type of GC_noop1 argument. + (GC_noop1): Change declaration to take one argument. + 2001-04-26 Alexandre Oliva <aoliva@redhat.com> * configure.in: Obtain THREADS with `gcc -v'. diff --git a/boehm-gc/gc_priv.h b/boehm-gc/gc_priv.h index 314eced8525..260566eb3a2 100644 --- a/boehm-gc/gc_priv.h +++ b/boehm-gc/gc_priv.h @@ -628,7 +628,7 @@ void GC_print_callers (/* struct callinfo info[NFRAMES] */); # ifdef HPUX_THREADS # define LOCK() { if (!GC_test_and_clear(&GC_allocate_lock)) GC_lock(); } /* The following is INCORRECT, since the memory model is too weak. */ -# define UNLOCK() { GC_noop1(&GC_allocate_lock); \ +# define UNLOCK() { GC_noop1((word)&GC_allocate_lock); \ *(volatile unsigned long *)(&GC_allocate_lock) = 1; } # else # define LOCK() { if (GC_test_and_set(&GC_allocate_lock, 1)) GC_lock(); } @@ -641,7 +641,7 @@ void GC_print_callers (/* struct callinfo info[NFRAMES] */); /* This is probably not necessary for ucode or gcc 2.8. */ /* It may be necessary for Ragnarok and future gcc */ /* versions. */ -# define UNLOCK() { GC_noop1(&GC_allocate_lock); \ +# define UNLOCK() { GC_noop1((word)&GC_allocate_lock); \ *(volatile unsigned long *)(&GC_allocate_lock) = 0; } # endif # endif @@ -1851,7 +1851,7 @@ void GC_dump(); GC_API void GC_noop(); # endif -void GC_noop1(/* word arg */); +void GC_noop1(word); /* Logging and diagnostic output: */ GC_API void GC_printf GC_PROTO((char * format, long, long, long, long, long, long)); |