Skip whitespace after .size or .type pseudo-op. This should probably be in

some more generic place, for all pseudo-ops, but this at least allows us to
parse gcc's current output.
This commit is contained in:
mycroft 1993-12-06 11:41:02 +00:00
parent dfe9d8c6c7
commit fdbd81b474

View File

@ -19,7 +19,7 @@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint #ifndef lint
static char rcsid[] = "$Id: read.c,v 1.4 1993/11/20 22:20:51 pk Exp $"; static char rcsid[] = "$Id: read.c,v 1.5 1993/12/06 11:41:02 mycroft Exp $";
#endif #endif
#define MASK_CHAR (0xFF) /* If your chars aren't 8 bits, you will #define MASK_CHAR (0xFF) /* If your chars aren't 8 bits, you will
@ -1136,6 +1136,7 @@ void s_size() {
expressionS *exp; expressionS *exp;
segT seg; segT seg;
SKIP_WHITESPACE();
name = input_line_pointer; name = input_line_pointer;
c = get_symbol_end(); c = get_symbol_end();
/* just after name is now '\0' */ /* just after name is now '\0' */
@ -1187,6 +1188,7 @@ void s_type() {
register symbolS *symbolP; register symbolS *symbolP;
int aux; int aux;
SKIP_WHITESPACE();
name = input_line_pointer; name = input_line_pointer;
c = get_symbol_end(); c = get_symbol_end();
/* just after name is now '\0' */ /* just after name is now '\0' */