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: [RFA:] grep rtl-expand for "(call" for hard_float


Hans-Peter Nilsson wrote:
Finally.  I'm not replacing it, just augmenting with a better
default-value than hard_float=1 for all but mips* and xtensa-*.
One reason to keep the old method as an override was that from
reading the port, it seems xtensa doesn't have "hardware"
doubles (only floats), so there may be actual need for an
override.  Or may not; I'm not sure it should validly be called
hard_float.  Or in retrospect maybe we should just really check
the type float here and have a separate hard_double.

Your observation about Xtensa is correct: there is currently a single-precision hardware FP option, but no double-precision hardware support. I usually run the testsuite with an Xtensa processor configuration that doesn't include any hardware floating-point so the current code works OK for that. It seems like it is probably still not right when the hardware FP is enabled.


I think your new-and-improved code would handle the Xtensa situation nicely. Feel free to remove the Xtensa-specific override, or if you prefer, I can do that later, assuming your patch is approved.

Thanks for working on this.

--Bob


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