Hi Ed,
However, there is a problem with this because gcc may store integer value in floating point registers around a function call.
Are you talking about FP registers being allocated for integer values such that you dont know if FP registers are used in integer application and you have to be conservative and save it? Isn’t this problem may occur in other targets like x86 as well? At least x86 defines TARGET_SPILL_CLASS hooks so that integer registers can be spilled to SSE_REGS instead of memory by the register allocator. Shouldn’t this have the same issue?
Thanks, Kugan