PR gas/11356

* listing.c (listing_newline): Correct backslash quote logic.
This commit is contained in:
Alan Modra 2010-03-09 00:41:24 +00:00
parent 840a467a0a
commit 4199fe1239
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2010-03-09 Alan Modra <amodra@gmail.com>
PR gas/11356
* listing.c (listing_newline): Correct backslash quote logic.
2010-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/tc-i386.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define.

View File

@ -347,10 +347,12 @@ listing_newline (char *ps)
|| is_end_of_line [(unsigned char) *copy] != 1);
copy++)
{
if (*copy == '\\')
seen_slash = ! seen_slash;
else if (*copy == '"' && seen_slash)
seen_quote = ! seen_quote;
if (seen_slash)
seen_slash = 0;
else if (*copy == '\\')
seen_slash = 1;
else if (*copy == '"')
seen_quote = !seen_quote;
}
len = copy - input_line_pointer + 1;