public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] GAS/MIPS: add "--defsym r6=" for default when it's r6
@ 2023-11-15 13:45 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2023-11-15 13:45 UTC (permalink / raw)
  To: bfd-cvs

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
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-15 13:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-15 13:45 [binutils-gdb] GAS/MIPS: add "--defsym r6=" for default when it's r6 Nick Clifton

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).