This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: arm-elf MULTILIBS_DEFAULT
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Cc: Richard dot Earnshaw at arm dot com, GCC List <gcc at gcc dot gnu dot org>, Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Fri, 28 Feb 2003 10:15:40 +0000
- Subject: Re: arm-elf MULTILIBS_DEFAULT
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Below is the patch I am currently using and which AFAIS seems to
> implement the desired behavior.
>
> Ralf
Nearly, but not quite.
> +
> +/* Because TARGET_DEFAULT sets ARM_FLAG_SOFT_FLOAT */
> +#undef SUBTARGET_EXTRA_ASM_SPEC
> +#define SUBTARGET_EXTRA_ASM_SPEC "\
> + %{!mhard-float: \
> + %{!msoft-float:-mno-fpu}}"
>
This should be in SUBTARGET_ASM_FLOAT_SPEC.
Also, the order of your include files looks suspect (in config.gcc); I
think it should be
dbxelf.h elfos.h arm/rtems-elf.h rtems.h arm/elf.h arm/aout.h arm/arm.h
Note that arm/unknown-elf.h should not be included -- it's for an unknown
OS environment and is bogus in this instance (if there really is a
definition in this file that you rely on, copy it to arm/rtems-elf.h).
Once you have the include order correct it won't be necessary to keep
undefining macros before defining variants.
R.