On Mon, 8 Jul 2019 16:42:15 -0500 Segher Boessenkool <seg...@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