This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: EP9312, Maverick Crunch fixes


	Hi Nick,

In binutils-2.14/gas/config/tc-arm.c line 10227 says:

	if (cpu_variant & ARM_CEXT_MAVERICK)

At some point this has been (same file, line 11718) changed to:

	if (cpu_variant & FPU_ARCH_MAVERICK)

In the first case when you invoke gas with "-mcpu=ep9312" it'll add
"Maverick float format" flag to the resulting .o file.  In the latter it
won't.

Since ep9312 does have Maverick Crunch coprocessor i would think passing
"-mcpu=ep9312" should be sufficient to set this flag.  The good effect is
that running gcc with this switch will end up generating an object file
with "Maverick float format".

I wonder if we should change the code to:

	if (cpu_variant & (FPU_ARCH_MAVERICK | ARM_CEXT_MAVERICK))

This way both "-mcpu=ep9312" and "-Wa,-mfpu=maverick" (from gcc
point of view) will do the same thing.  However, i am not sure if this
will break some gas/gcc convention(s) i don't know about.


thanks,
Petko


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