From dd0ae678ee0607a9d7bd758785bcecd654471dfa Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Wed, 17 Aug 2005 19:25:12 +0000 Subject: [PATCH] * varasm.c (decode_reg_name): Skip empty aqdditional register names. From-SVN: r103222 --- gcc/ChangeLog | 4 ++++ gcc/varasm.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 */