varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.

2004-08-18  Andrew Pinski  <apinski@apple.com>

        * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.

From-SVN: r86237
This commit is contained in:
Andrew Pinski 2004-08-19 06:16:37 +00:00 committed by Andrew Pinski
parent 8c78a388c1
commit f17327513a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-08-18 Andrew Pinski <apinski@apple.com>
* varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
2004-08-18 Mark Mitchell <mark@codesourcery.com>
* config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.

View File

@ -779,7 +779,7 @@ set_user_assembler_name (tree decl, const char *name)
int
decode_reg_name (const char *asmspec)
{
if (asmspec != 0)
if (asmspec != 0 && strlen (asmspec) != 0)
{
int i;