summaryrefslogtreecommitdiffstats
path: root/gcc/configure
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-09 07:08:00 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-09 07:08:00 +0000
commitb909947591f293ed1ee57e54b116ec618d5f74a5 (patch)
treefacd661921ca763f2c6699b2804e74acd1049588 /gcc/configure
parentb74d9e7a4a76afe4fd769881525f89f89324be8c (diff)
downloadppe42-gcc-b909947591f293ed1ee57e54b116ec618d5f74a5.tar.gz
ppe42-gcc-b909947591f293ed1ee57e54b116ec618d5f74a5.zip
* configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
(gcc_cv_ld_hidden): Likewise. * configure: Regenerate. * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO. (ix86_stack_protect_fail): Mark unused. (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine. * config/rs6000/rs6000.c (rs6000_assemble_visibility) [TARGET_MACHO]: Don't define. (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise. (TARGET_STACK_PROTECT_FAIL): Likewise. (rs6000_stack_protect_fail): Mark unused. * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure
index a3735188280..cc4843188d8 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -21708,6 +21708,12 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
$as_echo "$gcc_cv_as_hidden" >&6; }
+case "${target}" in
+ *-*-darwin*)
+ # Darwin as has some visibility support, though with a different syntax.
+ gcc_cv_as_hidden=yes
+ ;;
+esac
# gnu_indirect_function type is an extension proposed at
# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
@@ -21812,6 +21818,10 @@ else
fi
else
case "${target}" in
+ *-*-darwin*)
+ # Darwin ld has some visibility support.
+ gcc_cv_ld_hidden=yes
+ ;;
hppa64*-*-hpux* | ia64*-*-hpux*)
gcc_cv_ld_hidden=yes
;;
OpenPOWER on IntegriCloud