This is the mail archive of the gcc@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: arm-elf MULTILIBS_DEFAULT


> 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.


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