From f17327513a24cedd4fddb7100a557baa7f4f399f Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 19 Aug 2004 06:16:37 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 4 ++++ gcc/varasm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2