aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-22 05:27:58 +0000
committerAlan Modra <amodra@gmail.com>2007-04-22 05:27:58 +0000
commitd2bdaea822070bcb22937b7ac43a358d3d3a2569 (patch)
treee185538d714107cb7fb65119e64fd62cf9f1048a /gas
parent0224c58ec6e19eab37d0cb24691b6f1ccfcd6b10 (diff)
downloadgdb-d2bdaea822070bcb22937b7ac43a358d3d3a2569.zip
gdb-d2bdaea822070bcb22937b7ac43a358d3d3a2569.tar.gz
gdb-d2bdaea822070bcb22937b7ac43a358d3d3a2569.tar.bz2
* read.c (read_a_source_file): Skip multiple spaces to
cover hack in mmix md_start_line_hook which overwrites a colon with a space. Delete sermon and needless assertion.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/read.c15
2 files changed, 10 insertions, 11 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4e8de5f..0985ece 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-22 Alan Modra <amodra@bigpond.net.au>
+
+ * read.c (read_a_source_file): Skip multiple spaces to
+ cover hack in mmix md_start_line_hook which overwrites a
+ colon with a space. Delete sermon and needless assertion.
+
2007-04-21 Alan Modra <amodra@bigpond.net.au>
* config/atof-vax.c (atof_vax_sizeof): Change return type to unsigned.
diff --git a/gas/read.c b/gas/read.c
index de5f661..b8fc157 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -695,18 +695,11 @@ read_a_source_file (char *name)
Depending on what compiler is used, the order of these tests
may vary to catch most common case 1st.
- Each test is independent of all other tests at the (top) level.
- PLEASE make a compiler that doesn't use this assembler.
- It is crufty to waste a compiler's time encoding things for this
- assembler, which then wastes more time decoding it.
- (And communicating via (linear) files is silly!
- If you must pass stuff, please pass a tree!) */
- if ((c = *input_line_pointer++) == '\t'
- || c == ' '
- || c == '\f')
+ Each test is independent of all other tests at the (top)
+ level. */
+ do
c = *input_line_pointer++;
-
- know (c != ' '); /* No further leading whitespace. */
+ while (c == '\t' || c == ' ' || c == '\f');
#ifndef NO_LISTING
/* If listing is on, and we are expanding a macro, then give