Skip to content

Commit 1000608

Browse files
committed
saving and restoring input_line_pointer while parsing labels
1 parent 6c892a0 commit 1000608

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gas/config/tc-kpu.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,14 @@ char *
587587
mark_label(char *s)
588588
{
589589
expressionS e;
590+
char * save_input_pointer;
590591

591592
e.X_md = 0;
593+
594+
save_input_pointer = input_line_pointer;
592595
input_line_pointer = s;
593596
expression (&e);
597+
input_line_pointer = save_input_pointer;
594598

595599
if (e.X_op == O_absent)
596600
as_fatal (_("missing operand"));

0 commit comments

Comments
 (0)