[PATCH 192/203] Remove unused Modula-2 opcodes
Tom Tromey
tom@tromey.com
Fri Jan 1 21:47:12 GMT 2021
As noted in an earlier patch, Modula-2 defined some opcodes but then
never implemented them. This patch removes the unnecessary constants.
gdb/ChangeLog
2021-01-01 Tom Tromey <tom@tromey.com>
* std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
(UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
---
gdb/ChangeLog | 5 +++++
gdb/std-operator.def | 9 ---------
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/gdb/std-operator.def b/gdb/std-operator.def
index de3d9ec18a9..ab94636b83f 100644
--- a/gdb/std-operator.def
+++ b/gdb/std-operator.def
@@ -230,19 +230,10 @@ OP (UNOP_ALIGNOF) /* Unary alignof (followed by expression) */
OP (UNOP_PLUS) /* Unary plus */
-OP (UNOP_CAP) /* Modula-2 standard (unary) procedures */
-OP (UNOP_CHR)
-OP (UNOP_ORD)
OP (UNOP_ABS)
-OP (UNOP_FLOAT)
OP (UNOP_HIGH)
-OP (UNOP_MAX)
-OP (UNOP_MIN)
-OP (UNOP_ODD)
-OP (UNOP_TRUNC)
OP (OP_BOOL) /* Modula-2 builtin BOOLEAN type */
-OP (OP_M2_STRING) /* Modula-2 string constants */
/* STRUCTOP_... operate on a value from a following subexpression
by extracting a structure component specified by a string
--
2.26.2
More information about the Gdb-patches
mailing list