* varasm.c (decode_reg_name): Skip empty aqdditional register names.

From-SVN: r103222
This commit is contained in:
J"orn Rennecke 2005-08-17 19:25:12 +00:00 committed by Joern Rennecke
parent e89b6c1c1e
commit dd0ae678ee
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
* varasm.c (decode_reg_name): Skip empty aqdditional register names.
2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
* tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,

View File

@ -844,7 +844,8 @@ decode_reg_name (const char *asmspec)
= ADDITIONAL_REGISTER_NAMES;
for (i = 0; i < (int) ARRAY_SIZE (table); i++)
if (! strcmp (asmspec, table[i].name))
if (table[i].name[0]
&& ! strcmp (asmspec, table[i].name))
return table[i].number;
}
#endif /* ADDITIONAL_REGISTER_NAMES */