system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
authorSteven Bosscher <steven@gcc.gnu.org>
Tue, 26 Jun 2012 21:47:18 +0000 (21:47 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Tue, 26 Jun 2012 21:47:18 +0000 (21:47 +0000)
* 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.

From-SVN: r188999

gcc/ChangeLog
gcc/config/darwin.h
gcc/defaults.h
gcc/system.h

index 307a315e1cba73c7bec4e0e586c7ec1ca9ed01d0..53a213faf1d2815905b92e6aee82af7462961d0c 100644 (file)
@@ -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
index 6bc7f73f679232ae0acb549c8f088881cdb07588..d2f47f8cbb414fef3fb2c0dd3e3fbaa449776a18 100644 (file)
@@ -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
index 296bb6a9ce6b57d56082c5159666bc51470db883..cfd44babb0f7b8cb7fc6da3b523403bbe8f74ec7 100644 (file)
@@ -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
index 5fa926fe00bcc88c366e598faab2d37aa1b2e5b6..f12ac9cf7da314c4ce957cc88483a7c82403d766 100644 (file)
@@ -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  \