aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-03-30 14:08:48 +0200
committerJan Beulich <jbeulich@suse.com>2021-03-30 14:08:48 +0200
commit346848622660e06b352613d425fe6ad67194ed14 (patch)
tree0496b3e75a3aff2756eb607f32265f02c7ff1275 /opcodes
parent6288d05f11827f993308e6a2693516e2c123c0fb (diff)
downloadgdb-346848622660e06b352613d425fe6ad67194ed14.zip
gdb-346848622660e06b352613d425fe6ad67194ed14.tar.gz
gdb-346848622660e06b352613d425fe6ad67194ed14.tar.bz2
x86: drop REGNAM_{AL,AX,EAX}
The former two are unused anyway. And having such constants isn't very helpful either, when they live in a place where updating the register table wouldn't even allow noticing the need to adjust these constants.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/i386-opc.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 5acb021..fb5b8c7 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,9 @@
2021-03-30 Jan Beulich <jbeulich@suse.com>
+ * i386-opc.h (REGNAM_AL, REGNAM_AX, REGNAM_EAX): Delete.
+
+2021-03-30 Jan Beulich <jbeulich@suse.com>
+
* i386-opc.h (REGNAM_AL, REGNAM_AX, REGNAM_EAX): Adjust values.
* i386-reg.tbl (st): Move down.
(st(0)): Delete. Extend comment.
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index a2a657e..9c451de 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -990,11 +990,6 @@ typedef struct
}
reg_entry;
-/* Entries in i386_regtab. */
-#define REGNAM_AL 0
-#define REGNAM_AX 24
-#define REGNAM_EAX 40
-
extern const reg_entry i386_regtab[];
extern const unsigned int i386_regtab_size;