diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-07-23 19:30:39 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-07-23 19:30:39 +0000 |
commit | 8d224215b6c4ef329dd86b68ceeb3f547832275d (patch) | |
tree | d68c4dd321fb2246862d54d7da884d8d69b7900c /gcc/mips-tfile.c | |
parent | 61777626797d42e794ccee5c45d9dfed260ca0e7 (diff) | |
download | gcc-8d224215b6c4ef329dd86b68ceeb3f547832275d.tar.gz |
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 183b3b6d5db..93275e09f5f 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -2912,14 +2912,19 @@ parse_def (name_start) /* Search for the end of the name being defined. */ - for (name_end_p1 = name_start; (ch = *name_end_p1) != ';'; name_end_p1++) + /* Allow spaces and such in names for G++ templates, which produce stabs + that look like: + + #.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++) + ; + + if (ch == '\0') { - if (ch == '\0' || isspace (ch)) - { - error_line = __LINE__; - saber_stop (); - goto bomb_out; - } + error_line = __LINE__; + saber_stop (); + goto bomb_out; } /* Parse the remaining subdirectives now. */ |