summaryrefslogtreecommitdiff
path: root/gcc/defaults.h
diff options
context:
space:
mode:
authoraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-03 23:15:01 +0000
committeraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-03 23:15:01 +0000
commit9bb1c6fde904e6304bff110ed68a35acba7405cf (patch)
tree4dfc88aeb614a38019098dbdc178d9f2bfbb2b83 /gcc/defaults.h
parentafd6038f0812811695ec8ff3a7892e76aecd9d3a (diff)
downloadgcc-9bb1c6fde904e6304bff110ed68a35acba7405cf.tar.gz
PR c++/15428
* default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense. * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise. * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite documentation to reflect the new macro name and to clarify its meaning. * cp/decl2.c (maybe_emit_vtables): If TARGET_WEAK_NOT_IN_ARCHIVE_TOC is nonzero, and if we see a noninline definition of a key method, make the vtables nonweak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82610 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r--gcc/defaults.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h
index cf8ad088179..e479affa4ef 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -238,11 +238,13 @@ do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
#endif
#endif
-/* Determines whether explicit template instantiations should
- be given link-once semantics. The C++ ABI requires this
- macro to be nonzero; see the documentation. */
-#ifndef TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY
-# define TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY 1
+/* This determines whether weak symbols must be left out of a static
+ archive's table of contents. Defining this macro to be nonzero has
+ the consequence that certain symbols will not be made weak that
+ otherwise would be. The C++ ABI requires this macro to be zero;
+ see the documentation. */
+#ifndef TARGET_WEAK_NOT_IN_ARCHIVE_TOC
+#define TARGET_WEAK_NOT_IN_ARCHIVE_TOC 0
#endif
/* This determines whether or not we need linkonce unwind information */