mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
gas: correct .irpc handling with empty string
Following 69cab370cf ("gas: adjust handling of quotes for .irpc") the
closing quote was mistakenly treated as the first quoted character.
This commit is contained in:
@@ -1389,6 +1389,7 @@ expand_irp (int irpc, size_t idx, sb *in, sb *out, size_t (*get_line) (sb *))
|
|||||||
if (idx >= in->len)
|
if (idx >= in->len)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
sb_reset (&f.actual);
|
sb_reset (&f.actual);
|
||||||
sb_add_char (&f.actual, in->ptr[idx]);
|
sb_add_char (&f.actual, in->ptr[idx]);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.irpc c, " ab" cd " ef"
|
.irpc c, " ab" cd " ef" ""
|
||||||
.print ">\c<"
|
.print ">\c<"
|
||||||
.endr
|
.endr
|
||||||
.irpc c, "12 " 34 "56 "
|
.irpc c, "" "12 " 34 "56 "
|
||||||
.print ">\c<"
|
.print ">\c<"
|
||||||
.endr
|
.endr
|
||||||
|
|||||||
Reference in New Issue
Block a user