This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Fix rtl-checking with .md macros
Hi Richard,
Richard Sandiford wrote:
Ooops, sorry about that. I hadn't realised we had a separate accessor
for 'T'. Fixed with the obvious second hunk of the patch below. But...
Indeed. I remember wondering about that at one point, but for some reason
I'd thought that build programs didn't run with checking enabled. Duh.
I can't think of any way around this other than to disable rtl checking
for read-rtl.c. It does very few field accesses itself, so I hope that's
acceptable.
Agreed. I can't see any other solution that doesn't require major surgery.
One thing to watch out for is CODES and MODES are limited to 16 and 8 bits resp.
I doubt if were anywhere near these limits at present but a check somehere
in the new md macro handling code should be performing a sanity check against
these limits.
Note that read-rtl.c shields the macro codes from other compilation units,
so there should be no impact there.
Cheers
Graham