]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: Enable `-M notes' by default
authorAlice Carlotti <alice.carlotti@arm.com>
Tue, 4 Nov 2025 12:22:52 +0000 (12:22 +0000)
committerAlice Carlotti <alice.carlotti@arm.com>
Thu, 4 Dec 2025 16:21:55 +0000 (16:21 +0000)
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.

gas/testsuite/gas/aarch64/sysreg/sysreg.d
opcodes/aarch64-dis.c

index 36d9b592bee99b2fd06f623f421b4117243b71ca..afcadadb946fd00d1b08ee6fac6b86301d2519f1 100644 (file)
@@ -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
index c9e60a971521f417aa29186f6e852d34f9d973f4..2a6fde3ed672e13dd294bbc609386de15f3c6190 100644 (file)
@@ -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.  */
-\fstatic 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;