This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR gas/11356: "as -alm" returns very long lines
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Mon, 8 Mar 2010 14:51:39 -0800
- Subject: PATCH: PR gas/11356: "as -alm" returns very long lines
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
My fix for PR 9966 didn't check EOL for `\`. This patc fixes it. OK
to install?
Thanks.
H.J.
---
2010-03-08 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11356
* listing.c (listing_newline): Check EOL for `\`.
diff --git a/gas/listing.c b/gas/listing.c
index 9a71c76..87fea48 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -347,7 +347,8 @@ listing_newline (char *ps)
|| is_end_of_line [(unsigned char) *copy] != 1);
copy++)
{
- if (*copy == '\\')
+ if (*copy == '\\'
+ && is_end_of_line [(unsigned char) copy[1]] == 1)
seen_slash = ! seen_slash;
else if (*copy == '"' && seen_slash)
seen_quote = ! seen_quote;