This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [15/25] Specs cleanup: config/rs6000/sysv4.h SHARED_LIB_SUPPORT
On Mon, 17 Jan 2011, David Edelsohn wrote:
> On Thu, Jan 13, 2011 at 7:12 PM, Joseph S. Myers
> <joseph@codesourcery.com> wrote:
> > config/rs6000/sysv4.h has a conditional on SHARED_LIB_SUPPORT, which
> > is nowhere defined. ?Removing this allows a conditional definition of
> > LINK_SHLIB_SPEC to be removed, which this patch does. ?OK to commit?
> >
> > 2011-01-13 ?Joseph Myers ?<joseph@codesourcery.com>
> >
> > ? ? ? ?* config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
> > ? ? ? ?(NO_SHARED_LIB_SUPPORT): Remove.
> > ? ? ? ?(LINK_SHLIB_SPEC): Remove one conditional definition.
>
> Okay.
>
> Thanks, David
>
> P.S. Any idea where this block came from?
It appeared in 2.8, presumably from
Wed Jun 5 16:25:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* rs6000.h (ASM_DEFAULT_SPEC): Default to "", not -mpwr.
* sysv4.h (SUBTARGET_SWITCHES): Add -mshlib.
(LINK_PATH_SPEC): Add -compat-bsd support from Solaris.
(LINK_SPEC): Eliminate %{b} and %{G}, since they conflict with GCC
switches. Defer shared library support to LINK_SHLIB_SPEC. Defer
target selection to LINK_TARGET_SPEC.
(LINK_SHLIB_SPEC): Provide two different versions, depending on
whether shared libraries are default or not. Make shared
libraries not default until linker is fixed.
(LINK_OS_*_SPEC): New specs for OS specific linker switches.
(SUBTARGET_EXTRA_SPECS): Add new specs.
* {sol2,sysv4}.h (LINK_SPEC): Move Solaris link into general link spec.
* {sysv4,sysv4le,eabile}.h (LINK_TARGET_SPEC): Only pass -oformat
to the linker if the user is changing the default endian format.
* {sol2,linux,eabisim,eabilesim}.h (LINK_OS_DEFAULT_SPEC): Define
to use the appropriate OS link spec.
which now appears to be r12167, part of a port to PowerPC Solaris.
Support for PowerPC Solaris was removed in r47232
<http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01329.html>.
--
Joseph S. Myers
joseph@codesourcery.com