OSDN Git Service

2004-08-18 Andrew Pinski <apinski@apple.com>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Aug 2004 06:16:37 +0000 (06:16 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Aug 2004 06:16:37 +0000 (06:16 +0000)
        * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86237 138bc75d-0d04-0410-961f-82ee72b054a4

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;