public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] GAS/MIPS: add "--defsym r6=" for default when it's r6
Date: Wed, 15 Nov 2023 13:45:05 +0000 (GMT)	[thread overview]
Message-ID: <20231115134505.3B5A63858D35@sourceware.org> (raw)

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

commit 56172576da018d55fc03b25ba73e17cc6625dc36
Author: YunQiang Su <yunqiang.su@cipunited.com>
Date:   Wed Nov 15 13:44:42 2023 +0000

    GAS/MIPS: add "--defsym r6=" for default when it's r6
    
      * testsuite/gas/mips/mips.exp (mips_arch_create): Add "--defsym r6=" to as_flags for r6 targets.

Diff:
---
 gas/ChangeLog                   | 5 +++++
 gas/testsuite/gas/mips/mips.exp | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index c7ff5cadb6d..cbe2a57dfee 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2023-11-15  YunQiang Su  <yunqiang.su@cipunited.com>
+
+	* testsuite/gas/mips/mips.exp (mips_arch_create): Add "--defsym
+	r6=" to as_flags for r6 targets.
+
 2023-11-15  Arsen Arsenović  <arsen@aarsen.me>
 
 	* aclocal.m4: Regenerate.
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index dd52d5a9a67..777ae6536f0 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -163,6 +163,11 @@ proc mips_arch_create {arch gprsize extends props as_flags objdump_flags
     	    set archdata(as_flags) ""
 	    set archdata(objdump_flags) ""
 
+	    if { [string compare $arch mips32r6] == 0
+		 ||  [string compare $arch mips64r6] == 0} {
+		set archdata(as_flags) "--defsym r6="
+	    }
+
 	    set mips_arches(default) [array get archdata]
 	    break
 	}

                 reply	other threads:[~2023-11-15 13:45 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=20231115134505.3B5A63858D35@sourceware.org \
    --to=nickc@sourceware.org \
    --cc=bfd-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).