diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3acb28946da..25c6dfd25b9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-08-17 J"orn Rennecke + + * varasm.c (decode_reg_name): Skip empty aqdditional register names. + 2005-08-16 Zdenek Dvorak * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name, diff --git a/gcc/varasm.c b/gcc/varasm.c index 6c5a5333024..a3ef4fda272 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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 */