From ac2417d3c8c17e3e375177bdb52236cb6d5b2e97 Mon Sep 17 00:00:00 2001 From: meissner Date: Thu, 15 Oct 1992 18:29:53 +0000 Subject: Allow spaces in tag names. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2479 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/mips-tfile.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'gcc/mips-tfile.c') diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 8fa7e9b8a93..94ecc558f8f 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -2926,7 +2926,7 @@ parse_def (name_start) #.def SMANIP; .scl 10; .type 0x8; .size 8; .endef */ - for (name_end_p1 = name_start; (ch = *name_end_p1) != ';' || ch == '\0'; name_end_p1++) + for (name_end_p1 = name_start; (ch = *name_end_p1) != ';' && ch != '\0'; name_end_p1++) ; if (ch == '\0') @@ -2992,16 +2992,20 @@ parse_def (name_start) } if (!arg_was_number) - for (arg_end_p1 = arg_start+1; (ch = *arg_end_p1) != ';'; arg_end_p1++) - { - if (ch == '\0' || isspace (ch)) - { - error_line = __LINE__; - saber_stop (); - goto bomb_out; - } - } + { + /* Allow spaces and such in names for G++ templates. */ + for (arg_end_p1 = arg_start+1; + (ch = *arg_end_p1) != ';' && ch != '\0'; + arg_end_p1++) + ; + if (ch == '\0') + { + error_line = __LINE__; + saber_stop (); + goto bomb_out; + } + } /* Classify the directives now. */ len = dir_end_p1 - dir_start; -- cgit v1.2.1