diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-05 20:38:37 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-05 20:38:37 +0000 |
commit | 0a3ecdc147a6b04d40d0638f979612644696cdf9 (patch) | |
tree | 5e7f04633347fa5f7ca0e1b9e1b991f1227bdea4 /gcc/gthr-tpf.h | |
parent | 91732c81f7e2e48b413e0b41c0ec0c6f33d03318 (diff) | |
download | gcc-0a3ecdc147a6b04d40d0638f979612644696cdf9.tar.gz |
Index: gcc/ChangeLog
2005-12-05 Geoffrey Keating <geoffk@apple.com>
* varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
A hidden weak object does bind locally. Strong linkonce data
counts like any other strong symbol for binding.
(weak_finish_1): Don't specially handle weakrefs, they no longer
arrive here.
(assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
* c-common.c (handle_alias_attribute): Allow static aliases
of variables.
(handle_weakref_attribute): Don't call declare_weak on weakrefs.
* gthr-dce.h: Make weakrefs static.
* gthr-tpf.h: Likewise.
* gthr-solaris.h: Likewise.
* gthr-posix.h: Likewise.
* gthr-posix95.h: Likewise.
* config/darwin.c (darwin_encode_section_info): static weakref
variables are not necessarily defined in this translation unit.
* doc/extend.texi (Function Attributes): Mention that an alias
attribute creates a definition for the thing it's attached to.
Change the documentation for weakref to say that the thing
it's attached to must be static.
Index: gcc/testsuite/ChangeLog
2005-12-05 Geoffrey Keating <geoffk@apple.com>
* g++.old-deja/g++.abi/vtable2.C: Make weakrefs static.
* gcc.dg/attr-weakref-1.c: Modify to not try to test public weakrefs,
and to work on Darwin.
* gcc.dg/attr-weakref-1b.c: New file.
* gcc.dg/attr-weakref-2.c: New test.
* gcc.dg/darwin-weakref-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108074 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-tpf.h')
-rw-r--r-- | gcc/gthr-tpf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gthr-tpf.h b/gcc/gthr-tpf.h index d54a6c80171..f797a49671f 100644 --- a/gcc/gthr-tpf.h +++ b/gcc/gthr-tpf.h @@ -70,7 +70,7 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t; #if SUPPORTS_WEAK && GTHREAD_USE_WEAK # define __gthrw(name) \ - extern __typeof(name) __gthrw_ ## name __attribute__ ((__weakref__(#name))) + static __typeof(name) __gthrw_ ## name __attribute__ ((__weakref__(#name))) #else # define __gthrw_asmname(cname) __gthrw_asmnamep (__USER_LABEL_PREFIX__, cname) # define __gthrw_asmnamep(prefix, cname) __gthrw_string (prefix) cname |