From a25c045a58c5e368fc1c8cddc03447e14e236238 Mon Sep 17 00:00:00 2001 From: Timothy Wall Date: Thu, 10 Feb 2000 21:03:12 +0000 Subject: [PATCH] Check label validity with TC_START_LABEL_WITHOUT_COLON if defined. --- gas/ChangeLog | 5 +++++ gas/read.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 537f702..f12ee84 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2000-02-10 Timothy Wall + * 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 + * app.c (do_scrub_chars): Handle "||" for parallel instructions when DOUBLEBAR_PARALLEL is defined. Avoid stripping whitespace around colons when KEEP_WHITE_AROUND_COLON is defined. diff --git a/gas/read.c b/gas/read.c index c510893..c6d42e9 100644 --- a/gas/read.c +++ b/gas/read.c @@ -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, -- 2.7.4