This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR gas/11356: "as -alm" returns very long lines


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]