varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
authorAndrew Pinski <apinski@apple.com>
Thu, 19 Aug 2004 06:16:37 +0000 (06:16 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 19 Aug 2004 06:16:37 +0000 (23:16 -0700)
2004-08-18  Andrew Pinski  <apinski@apple.com>

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

From-SVN: r86237

gcc/ChangeLog
gcc/varasm.c

index ba10047..5cd40ee 100644 (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.
index e363bf1..ba25f65 100644 (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;