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: [m68k ICE] Fix HARD_REGNO_MODE_OK for FPU register usage


On Wed, Oct 22, 2003 at 11:51:34AM +0200, Gunther Nikl wrote:
> 	* config/m68k/m68k.h (HARD_REGNO_MODE_OK): Only permit FPU register
> 	usage if 68881 use is enabled; update comment.

Not ok.

This needs to be handled differently.  What we do not have, at the 
moment, is some way for the backend to tell the frontend of the
registers that don't exist due to command-line switches.  That is
the void that must be filled to fix this bug properly.

I suggest a new target hook 

	bool (* register_extant) (unsigned int regno)

The default definition would return true.


r~


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