public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@sourceware.org>
To: binutils-cvs@sourceware.org
Subject: [binutils-gdb] gas: .irp/.irpc are macro-like
Date: Fri, 28 Jun 2024 06:20:10 +0000 (GMT)	[thread overview]
Message-ID: <20240628062010.D207B3830B5C@sourceware.org> (raw)

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

commit f63d85cc78e73e7df93e6eedc953a08b713cfa43
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Jun 28 08:17:41 2024 +0200

    gas: .irp/.irpc are macro-like
    
    ... 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.

Diff:
---
 gas/read.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gas/read.c b/gas/read.c
index ce458777288..5b411e94f53 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -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);

                 reply	other threads:[~2024-06-28  6:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240628062010.D207B3830B5C@sourceware.org \
    --to=jbeulich@sourceware.org \
    --cc=binutils-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).