This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 20/20] MIPS/GAS: Remove dead format specifier code
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: Catherine Moore <clm at codesourcery dot com>, binutils at sourceware dot org
- Date: Fri, 10 Dec 2010 00:38:15 +0000 (GMT)
- Subject: Re: [PATCH 20/20] MIPS/GAS: Remove dead format specifier code
- References: <alpine.DEB.1.10.1012021621500.14129@tp.orcam.me.uk> <87bp4xajvo.fsf@firetop.home>
On Tue, 7 Dec 2010, Richard Sandiford wrote:
> > gas/
> > * config/tc-mips.c (mips_ip): Remove dead format specifier code.
>
> OK, thanks. I wonder if the 'G' confusion came from someone misinterpreting:
>
> if (ok)
> {
> lastregno = regno;
> continue;
> }
> else
> break;
>
> as fallthrough?
Yes, this well could be indeed, good point. I haven't thought about this
arrangement being a possible cause.
Another possibility is simply a remnant from before cooked CP0 register
names were introduced -- I would expect 'G' to have been handled like 'd'
back then without dedicated outermost switch statement's case code.
> if (ok)
> {
> lastregno = regno;
> continue;
> }
> break;
>
> would be more usual. Maybe I'll tweak it after the microMIPS stuff
> has gone in.
Well, I have actually removed the oddity with the microMIPS patch as the
case had to be heavily tweaked anyway. I also removed a couple of similar
oddities, where a "break" or "continue" was included at the end in a block
rather than following it within the microMIPS patch itself, but I have
just noticed a couple escaped me. I'll clean them up as well as they may
make one wonder if the closing brace is the end of a (misindented)
compound selection or iteration statement.
Maciej