[PATCH] Perform case-insensitive comparison when decoding register names (PR target/70320)

Jozef Lawrynowicz jozef.l@mittosystems.com
Tue Jul 9 21:21:00 GMT 2019


On Mon, 8 Jul 2019 16:42:15 -0500
Segher Boessenkool <segher@kernel.crashing.org> wrote:

> > Ok, yes a DEFHOOKPOD or similar sounds like a good idea, I'll look into this
> > alternative.  
> 
> What is that, like target macros?  But with some indirection?

Yes its for target macros, it looks like the "POD" in DEFHOOKPOD stands for
"piece-of-data", i.e. the hook represents a variable rather than function.

So we can just have a hook like TARGET_CASE_INSENSITIVE_REGISTER_NAME set to
false by default, and then check targetm.case_insensitive_register_name before
comparing the given regname with the names defined by the backend.

> 
> Making this target-specific sounds good, thanks Jozef.
> 
> 
> Segher

Thanks,
Jozef



More information about the Gcc-patches mailing list