diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-08 07:27:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-08 07:28:42 -0700 |
commit | d357570da8c055765d243a140be2fae9811a051d (patch) | |
tree | fcdab4625ce20840e3d40581179744a64aff3f0b | |
parent | 0922dc847e90e6ab53acd2ef7725103e027126b9 (diff) | |
download | gdb-d357570da8c055765d243a140be2fae9811a051d.zip gdb-d357570da8c055765d243a140be2fae9811a051d.tar.gz gdb-d357570da8c055765d243a140be2fae9811a051d.tar.bz2 |
Remove unused Modula-2 opcodes
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-03-08 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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/std-operator.def | 9 |
2 files changed, 5 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 541bd5f..01084b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2021-03-08 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. + +2021-03-08 Tom Tromey <tom@tromey.com> + * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove. * ada-lang.c (ada_binop_minmax): Update. * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation): diff --git a/gdb/std-operator.def b/gdb/std-operator.def index c1d3091..4bca294 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 |