This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Do not install specs file


On Jan 16, 2005, Richard Sandiford <rsandifo@redhat.com> wrote:

> This all raises the question of whether we still need o32 to be the
> default multilib.

Nope.

> but these days, the SONAMEs of all three libgccs are "libgcc_s.so.1".
> Did they used to be different?

Before multi-os-dir, I think so.

> Also, was the name of libgcc the only reason for making o32 the
> default multilib, or were there others?

Link-time pathname and SONAME were the two reasons.  With
multi-os-dir, the latter is addressed, and the former is not
essential, although I thought it was desirable at that time.

> 	* config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
> 	redundant target_cpu_default and extra_parts lines.  Use the default
> 	"from-abi" ISA.
> 	* config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
> 	(SUBTARGET_EXTRA_SPECS): Delete.
> 	(DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
> 	(SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
> 	* config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
> 	and "n32" for -mabi=n32.
> 	(SHLIB_INSTALL): If the link-time name ends in _32.so, create an
> 	equivalent .so link for 32-bit toolchains.

I like this.  Thanks for catching my mistake.

>  #define DRIVER_SELF_SPECS \
>  "%{!EB:%{!EL:%(endian_spec)}}", \
> -"%(driver_default_abi_self_spec)", \
> -"%{!mips*:%{!march=*:%{mabi=32:-mips1}%{mabi=n32|mabi=64:-mips3}}}"
> +"%{!mabi=*: -mabi=n32}"
 
Do you really need the explicit -mabi=n32 now?

> -%{mabi=64:-64} %{mabi=n32:-n32}"

Doesn't gas need these flags any more?

> +# Install a link that 32-bit toolchains can use.
> +SHLIB_INSTALL += ; \
> +	case $(SHLIB_SOLINK) in \
> +	  *_32.so) \
[...]

Neat!

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]