Check label validity with TC_START_LABEL_WITHOUT_COLON if defined.
authorTimothy Wall <twall@alum.mit.edu>
Thu, 10 Feb 2000 21:03:12 +0000 (21:03 +0000)
committerTimothy Wall <twall@alum.mit.edu>
Thu, 10 Feb 2000 21:03:12 +0000 (21:03 +0000)
gas/ChangeLog
gas/read.c

index 537f7025d9621eb75d12676f6b356ee3a74cd42b..f12ee84060074d6023f59c98732b48b0226503f5 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-10  Timothy Wall  <twall@redhat.com>
+
+       * read.c (read_a_source_file): If TC_START_LABEL_WITHOUT_COLON is
+       defined, use it to verify the symbol just read should be a label.
+
 2000-02-10  Timothy Wall  <twall@redhat.com>
 
        * app.c (do_scrub_chars): Handle "||" for parallel instructions
index c5108933c8f64252f7aa0a955c378bb009a9b8b1..c6d42e9a09967f8163f871d9570cb159aa6df420 100644 (file)
@@ -599,7 +599,12 @@ read_a_source_file (name)
                      /* In MRI mode, we need to handle the MACRO
                          pseudo-op specially: we don't want to put the
                          symbol in the symbol table.  */
-                     if (! mri_line_macro)
+                     if (! mri_line_macro 
+#ifdef TC_START_LABEL_WITHOUT_COLON
+                          && TC_START_LABEL_WITHOUT_COLON(c, 
+                                                          input_line_pointer)
+#endif
+                          )
                        line_label = colon (line_start);
                      else
                        line_label = symbol_create (line_start,