aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1992-10-15 18:29:53 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1992-10-15 18:29:53 +0000
commitc903545b967a35ef41771e5f52ba2517ba83f492 (patch)
tree202a06580a03ad5fbd767b67c9f88bd9d250aa26 /gcc
parent907b71792398b821ba524be1fd48dcaf8fd51144 (diff)
downloadgcc-c903545b967a35ef41771e5f52ba2517ba83f492.zip
gcc-c903545b967a35ef41771e5f52ba2517ba83f492.tar.gz
gcc-c903545b967a35ef41771e5f52ba2517ba83f492.tar.bz2
Allow spaces in tag names.
From-SVN: r2479
Diffstat (limited to 'gcc')
-rw-r--r--gcc/mips-tfile.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c
index 8fa7e9b..94ecc55 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;