diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-26 21:47:18 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-26 21:47:18 +0000 |
commit | f97cd9ed0b1432d8325c6746e72262bdedc6c1a8 (patch) | |
tree | 983b14293a1a8d578aebadf7cbe504b569ff89b4 | |
parent | 7882e02ecda7e4f9828800a5b9f69a01e10c9b14 (diff) | |
download | gcc-f97cd9ed0b1432d8325c6746e72262bdedc6c1a8.tar.gz |
* system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
* defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
* config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188999 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/darwin.h | 7 | ||||
-rw-r--r-- | gcc/defaults.h | 6 | ||||
-rw-r--r-- | gcc/system.h | 3 |
4 files changed, 8 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 307a315e1cb..53a213faf1d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-06-26 Steven Bosscher <steven@gcc.gnu.org> + + * system.h (USE_COMMON_FOR_ONE_ONLY): Poison. + * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default. + * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define. + 2012-06-26 Alexandre Oliva <aoliva@redhat.com> * var-tracking.c (vt_add_function_parameter): Use a preserved diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 6bc7f73f679..d2f47f8cbb4 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -464,13 +464,6 @@ extern GTY(()) int darwin_ms_struct; links to, so there's no need for weak-ness for that. */ #define GTHREAD_USE_WEAK 0 -/* The Darwin linker imposes two limitations on common symbols: they - can't have hidden visibility, and they can't appear in dylibs. As - a consequence, we should never use common symbols to represent - vague linkage. */ -#undef USE_COMMON_FOR_ONE_ONLY -#define USE_COMMON_FOR_ONE_ONLY 0 - /* The Darwin linker doesn't want coalesced symbols to appear in a static archive's table of contents. */ #undef TARGET_WEAK_NOT_IN_ARCHIVE_TOC diff --git a/gcc/defaults.h b/gcc/defaults.h index 296bb6a9ce6..cfd44babb0f 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -332,12 +332,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see # endif #endif -/* Determines whether we may use common symbols to represent one-only - semantics (a.k.a. "vague linkage"). */ -#ifndef USE_COMMON_FOR_ONE_ONLY -# define USE_COMMON_FOR_ONE_ONLY 1 -#endif - /* By default we can assume that all global symbols are in one namespace, across all shared libraries. */ #ifndef MULTIPLE_SYMBOL_SPACES diff --git a/gcc/system.h b/gcc/system.h index 5fa926fe00b..f12ac9cf7da 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -894,7 +894,8 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; REAL_VALUE_TRUNCATE REVERSE_CONDEXEC_PREDICATES_P \ TARGET_ALIGN_ANON_BITFIELDS TARGET_NARROW_VOLATILE_BITFIELDS \ IDENT_ASM_OP UNALIGNED_SHORT_ASM_OP UNALIGNED_INT_ASM_OP \ - UNALIGNED_LONG_ASM_OP UNALIGNED_DOUBLE_INT_ASM_OP + UNALIGNED_LONG_ASM_OP UNALIGNED_DOUBLE_INT_ASM_OP \ + USE_COMMON_FOR_ONE_ONLY /* Hooks that are no longer used. */ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \ |