[binutils-gdb] gas: drop dead check for double quote

Jan Beulich jbeulich@sourceware.org
Thu Mar 28 10:56:06 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=09be89098e3a85785429130030842d4ab11e57e5

commit 09be89098e3a85785429130030842d4ab11e57e5
Author: Jan Beulich <jbeulich@suse.com>
Date:   Thu Mar 28 11:54:25 2024 +0100

    gas: drop dead check for double quote
    
    FB and dollar label definitions can't be enclosed in double quotes. In
    fact at that point nul_char is the same as next_char, which we know is a
    digit.

Diff:
---
 gas/read.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gas/read.c b/gas/read.c
index 61a3f172674..8026a6cdb65 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1262,9 +1262,6 @@ read_a_source_file (const char *name)
 
 	      temp = next_char - '0';
 
-	      if (nul_char == '"')
-		++ input_line_pointer;
-
 	      /* Read the whole number.  */
 	      while (ISDIGIT (*input_line_pointer))
 		{


More information about the Binutils-cvs mailing list