This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] .hidden support on hppa64-hp-hpux* with HP linker
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Dec 2003 12:56:07 -0500 (EST)
- Subject: [committed] .hidden support on hppa64-hp-hpux* with HP linker
The patch fixes the configure problem noted in PR bootstrap/13386
and the visibility testsuite failures on hppa64-hp-hpux11.11. The
target check is sufficient in this case because the only linker
for this target other than GNU ld is HP ld. It only runs as a
native linker.
Tested on hppa64-hp-hpux11.11 and hppa2.0-hp-hpux11.11 with no
regressions. Installed to trunk.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2003-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR bootstrap/13386
* configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
using HP native linker.
* configure: Rebuilt.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.759
diff -u -3 -p -r1.759 configure.in
--- configure.in 11 Dec 2003 20:50:32 -0000 1.759
+++ configure.in 15 Dec 2003 19:31:06 -0000
@@ -1884,8 +1884,14 @@ changequote(,)dnl
changequote([,])dnl
fi
else
- # non-GNU linkers don't seem to support .hidden yet
- gcc_cv_ld_hidden=no
+ case "${target}" in
+ hppa64*-*-hpux*)
+ gcc_cv_ld_hidden=yes
+ ;;
+ *)
+ gcc_cv_ld_hidden=no
+ ;;
+ esac
fi
fi])
libgcc_visibility=no