-
- Downloads
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. From-SVN: r108074
Showing
- gcc/ChangeLog 21 additions, 0 deletionsgcc/ChangeLog
- gcc/c-common.c 12 additions, 4 deletionsgcc/c-common.c
- gcc/config/darwin.c 1 addition, 0 deletionsgcc/config/darwin.c
- gcc/doc/extend.texi 8 additions, 5 deletionsgcc/doc/extend.texi
- gcc/gthr-dce.h 1 addition, 1 deletiongcc/gthr-dce.h
- gcc/gthr-posix.h 1 addition, 1 deletiongcc/gthr-posix.h
- gcc/gthr-posix95.h 1 addition, 1 deletiongcc/gthr-posix95.h
- gcc/gthr-solaris.h 1 addition, 1 deletiongcc/gthr-solaris.h
- gcc/gthr-tpf.h 1 addition, 1 deletiongcc/gthr-tpf.h
- gcc/testsuite/ChangeLog 9 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.old-deja/g++.abi/vtable2.C 2 additions, 2 deletionsgcc/testsuite/g++.old-deja/g++.abi/vtable2.C
- gcc/testsuite/gcc.dg/attr-weakref-1.c 49 additions, 53 deletionsgcc/testsuite/gcc.dg/attr-weakref-1.c
- gcc/testsuite/gcc.dg/attr-weakref-1b.c 20 additions, 0 deletionsgcc/testsuite/gcc.dg/attr-weakref-1b.c
- gcc/testsuite/gcc.dg/attr-weakref-2.c 7 additions, 0 deletionsgcc/testsuite/gcc.dg/attr-weakref-2.c
- gcc/testsuite/gcc.dg/darwin-weakref-1.c 28 additions, 0 deletionsgcc/testsuite/gcc.dg/darwin-weakref-1.c
- gcc/varasm.c 17 additions, 11 deletionsgcc/varasm.c
Loading
Please register or sign in to comment