2003-04-22 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Apr 2003 17:46:51 +0000 (17:46 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 22 Apr 2003 17:46:51 +0000 (17:46 +0000)
* app.c (do_scrub_chars): Check for valid label.

gas/ChangeLog
gas/app.c

index 53b3f66..f65f950 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-22  H.J. Lu <hjl@gnu.org>
+
+       * app.c (do_scrub_chars): Check for valid label.
+
 2003-04-22  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
 
        * doc/as.texinfo: Replace references to Mitsubishi M32R with
index 8485b07..cbde88b 100644 (file)
--- a/gas/app.c
+++ b/gas/app.c
@@ -1297,7 +1297,8 @@ do_scrub_chars (get, tostart, tolen)
          /* Some relatively `normal' character.  */
          if (state == 0)
            {
-             state = 11;       /* Now seeing label definition */
+             if (IS_SYMBOL_COMPONENT (ch))
+               state = 11;     /* Now seeing label definition */
            }
          else if (state == 1)
            {
@@ -1305,7 +1306,7 @@ do_scrub_chars (get, tostart, tolen)
            }
          else if (state == 9)
            {
-             if (lex[ch] != LEX_IS_SYMBOL_COMPONENT)
+             if (!IS_SYMBOL_COMPONENT (ch))
                state = 3;
            }
          else if (state == 10)