From: Andrew Pinski Date: Thu, 19 Aug 2004 06:16:37 +0000 (+0000) Subject: varasm.c (ecode_reg_name): Do nothing if the asmspec is empty. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f17327513a24cedd4fddb7100a557baa7f4f399f;p=gcc.git varasm.c (ecode_reg_name): Do nothing if the asmspec is empty. 2004-08-18 Andrew Pinski * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty. From-SVN: r86237 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba100470283..5cd40eeb5ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-08-18 Andrew Pinski + + * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty. + 2004-08-18 Mark Mitchell * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility. diff --git a/gcc/varasm.c b/gcc/varasm.c index e363bf134b9..ba25f6587f9 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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;