diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-10-15 18:29:53 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-10-15 18:29:53 +0000 |
commit | ac2417d3c8c17e3e375177bdb52236cb6d5b2e97 (patch) | |
tree | 202a06580a03ad5fbd767b67c9f88bd9d250aa26 /gcc/mips-tfile.c | |
parent | 68b21d10fa668878c75022ca61ddc1e3db368ea0 (diff) | |
download | gcc-ac2417d3c8c17e3e375177bdb52236cb6d5b2e97.tar.gz |
Allow spaces in tag names.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2479 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 24 |
1 files changed, 14 insertions, 10 deletions
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<long unsigned int>; .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; |