arm-elf MULTILIBS_DEFAULT
Richard Earnshaw
rearnsha@arm.com
Fri Feb 28 10:55:00 GMT 2003
> 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.
More information about the Gcc
mailing list