]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas: .irp/.irpc are macro-like
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Jun 2024 06:17:41 +0000 (08:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Jun 2024 06:17:41 +0000 (08:17 +0200)
... for the purposes of get_line_sb() and _find_end_of_line(): They
support \@ just like macros do, and hence the special casing there also
needs applying.

gas/read.c

index ce45877728807f7c370d07ef84aa80bc7bec59af..5b411e94f53ddfebac09b86836238a6e66168541 100644 (file)
@@ -262,7 +262,7 @@ static int hex_float (int, char *);
 static segT get_known_segmented_expression (expressionS * expP);
 static void pobegin (void);
 static void poend (void);
-static size_t get_non_macro_line_sb (sb *);
+static size_t get_macro_line_sb (sb *);
 static void generate_file_debug (void);
 static char *_find_end_of_line (char *, int, int, int);
 \f
@@ -2402,7 +2402,7 @@ s_irp (int irpc)
 
   sb_new (&out);
 
-  err = expand_irp (irpc, 0, &s, &out, get_non_macro_line_sb);
+  err = expand_irp (irpc, 0, &s, &out, get_macro_line_sb);
   if (err != NULL)
     as_bad_where (file, line, "%s", err);