PATCH: PR gas/11356: "as -alm" returns very long lines
H.J. Lu
hongjiu.lu@intel.com
Tue Mar 9 00:40:00 GMT 2010
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;
More information about the Binutils
mailing list