[binutils-gdb] aarch64: Enable `-M notes' by default

Alice Carlotti acarlotti@sourceware.org
Thu Dec 4 16:24:46 GMT 2025


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

commit 4e80f6037f92b4af504d956090e5189d50ef07ce
Author: Alice Carlotti <alice.carlotti@arm.com>
Date:   Tue Nov 4 12:22:52 2025 +0000

    aarch64: Enable `-M notes' by default
    
    We already print other instruction comments, such as condition code
    aliases, by default.  The `-M no-notes' option has been available in
    Binutils for over 7 years, so if anyone does need the notes to be
    disabled then they can do so explicitly.

Diff:
---
 gas/testsuite/gas/aarch64/sysreg/sysreg.d | 2 +-
 opcodes/aarch64-dis.c                     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gas/testsuite/gas/aarch64/sysreg/sysreg.d b/gas/testsuite/gas/aarch64/sysreg/sysreg.d
index 36d9b592bee..afcadadb946 100644
--- a/gas/testsuite/gas/aarch64/sysreg/sysreg.d
+++ b/gas/testsuite/gas/aarch64/sysreg/sysreg.d
@@ -38,7 +38,7 @@ Disassembly of section \.text:
 .*:	d53f0f00 	mrs	x0, s3_7_c0_c15_0
 .*:	d5184b00 	msr	s3_0_c4_c11_0, x0
 .*:	d5384b00 	mrs	x0, s3_0_c4_c11_0
-.*:	d5110300 	msr	trcstatr, x0
+.*:	d5110300 	msr	trcstatr, x0  // note: writing to a read-only register
 .*:	d5310300 	mrs	x0, trcstatr
 .*:	d53804e0 	mrs	x0, id_aa64fpfr0_el1
 .*:	d5380440 	mrs	x0, id_aa64pfr2_el1
diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c
index c9e60a97152..2a6fde3ed67 100644
--- a/opcodes/aarch64-dis.c
+++ b/opcodes/aarch64-dis.c
@@ -52,8 +52,8 @@ static bfd_vma last_mapping_addr = 0;
 
 /* Other options */
 static int no_aliases = 0;	/* If set disassemble as most general inst.  */
-
static int no_notes = 1;	/* If set do not print disassemble notes in the
-				  output as comments.  */
+static int no_notes = 0;	/* If set do not print disassemble notes in the
+				   output as comments.  */
 
 /* Currently active instruction sequence.  */
 static aarch64_instr_sequence insn_sequence;


More information about the Binutils-cvs mailing list