+2002-01-29 Andrew Cagney <ac131313@redhat.com>
+
+ * parse.c (target_map_name_to_register): Simplify, search regs and
+ pseudo-regs using a single loop.
+
2002-01-30 Andrew Cagney <ac131313@redhat.com>
* PROBLEMS: Note that the i386 fix was missing from 5.1.1.
{
int i;
- /* Search architectural register name space. */
- for (i = 0; i < NUM_REGS; i++)
- if (REGISTER_NAME (i) && len == strlen (REGISTER_NAME (i))
- && STREQN (str, REGISTER_NAME (i), len))
- {
- return i;
- }
-
- /* Try pseudo-registers, if any. */
- for (i = NUM_REGS; i < NUM_REGS + NUM_PSEUDO_REGS; i++)
+ /* Search register name space. */
+ for (i = 0; i < NUM_REGS + NUM_PSEUDO_REGS; i++)
if (REGISTER_NAME (i) && len == strlen (REGISTER_NAME (i))
&& STREQN (str, REGISTER_NAME (i), len))
{