summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-18 01:10:12 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-18 01:10:12 +0000
commit6a3697bbb31059af0e7640a5f3f681a7c0b9d24e (patch)
tree6c6d9cfe38742347fc3e657a253bd1f6cdcf94ad
parent27559c4e528ec67d18aac8c81bbb5438f16d3346 (diff)
downloadgcc-6a3697bbb31059af0e7640a5f3f681a7c0b9d24e.tar.gz
* defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
* system.h: Poison it. * doc/tm.texi: Delete its documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90840 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/darwin.h4
-rw-r--r--gcc/defaults.h11
-rw-r--r--gcc/doc/tm.texi9
-rw-r--r--gcc/system.h2
5 files changed, 8 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 310f99b414e..1e2265ce874 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
+2004-11-17 Zack Weinberg <zack@codesourcery.com>
+
+ * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
+ * system.h: Poison it.
+ * doc/tm.texi: Delete its documentation.
+
2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
- Mark Mitchell <mark@codesourcery.com>
+ Mark Mitchell <mark@codesourcery.com>
* config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
* config/i386/i386.c (i386_solaris_elf_named_section): New
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index c1d6b8f07ff..a4d18281a18 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -408,10 +408,6 @@ extern const char *darwin_fix_and_continue_switch;
links to, so there's no need for weak-ness for that. */
#define GTHREAD_USE_WEAK 0
-/* We support hidden visibility */
-#undef TARGET_SUPPORTS_HIDDEN
-#define TARGET_SUPPORTS_HIDDEN 1
-
/* 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
diff --git a/gcc/defaults.h b/gcc/defaults.h
index b69ae13f332..1e1bdc87e08 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -270,17 +270,6 @@ do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
# endif
#endif
-/* This determines whether this target supports hidden visibility.
- This is a weaker condition than HAVE_GAS_HIDDEN, which probes for
- specific assembler syntax. */
-#ifndef TARGET_SUPPORTS_HIDDEN
-# ifdef HAVE_GAS_HIDDEN
-# define TARGET_SUPPORTS_HIDDEN 1
-# else
-# define TARGET_SUPPORTS_HIDDEN 0
-# 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
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index a87256a4822..afc029b1955 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -6839,15 +6839,6 @@ restrictions require weak symbols to be left out of a static archive's
table of contents.
@end defmac
-@defmac TARGET_SUPPORTS_HIDDEN
-A C expression that evaluates to true if the target supports hidden
-visibility. By default this expression is true if and only if
-@code{HAS_GAS_HIDDEN} is defined. Set this macro if the
-@code{HAS_GAS_HIDDEN} macro gives the wrong answer for this
-target. (For example, if the target's mechanism for supporting
-hidden visibility is not the same as GAS's.)
-@end defmac
-
@defmac ASM_OUTPUT_EXTERNAL (@var{stream}, @var{decl}, @var{name})
A C statement (sans semicolon) to output to the stdio stream
@var{stream} any text necessary for declaring the name of an external
diff --git a/gcc/system.h b/gcc/system.h
index 2cdafb96fdf..05b5150da76 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -614,7 +614,7 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
DEFAULT_SHORT_ENUMS SPLIT_COMPLEX_ARGS MD_ASM_CLOBBERS \
HANDLE_PRAGMA_REDEFINE_EXTNAME HANDLE_PRAGMA_EXTERN_PREFIX \
MUST_PASS_IN_STACK FUNCTION_ARG_PASS_BY_REFERENCE \
- VECTOR_MODE_SUPPORTED_P
+ VECTOR_MODE_SUPPORTED_P TARGET_SUPPORTS_HIDDEN
/* Other obsolete target macros, or macros that used to be in target
headers and were not used, and may be obsolete or may never have