This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Perform case-insensitive comparison when decoding register names (PR target/70320)
- From: Jozef Lawrynowicz <jozef dot l at mittosystems dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: Richard Sandiford <richard dot sandiford at arm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 9 Jul 2019 22:16:31 +0100
- Subject: Re: [PATCH] Perform case-insensitive comparison when decoding register names (PR target/70320)
- References: <20190704133259.3a063d91@jozef-kubuntu> <20190704224416.GG18316@gate.crashing.org> <email@example.com> <20190708222129.59562c2e@jozef-kubuntu> <20190708214215.GI30355@gate.crashing.org>
On Mon, 8 Jul 2019 16:42:15 -0500
Segher Boessenkool <firstname.lastname@example.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.