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 ba10047028327517c9884afeb7ffd5252b738e7c..5cd40eeb5ac7ba3e3e99a7513b116feb845bc377 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 e363bf134b9801e79e3395291662cb2f9c899df9..ba25f6587f92dacfcd037625cdd68b2a4609df43 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;