Unify all operators into std-operator.def

This removes ada-operator.def and fortran-operator.def, merging their
contents into std-operator.def.

Note that the comment for OP_EXTENDED0 is a bit wrong.  IMO this
constant could be removed, as it is only used for a single assert that
does not provide much value.  However, I haven't done so here.

gdb/ChangeLog
2020-12-09  Tom Tromey  <tromey@adacore.com>

	* expprint.c (op_name): Update.
	* expression.h (enum exp_opcode): Update.
	* std-operator.def: Add more opcodes.
	* ada-operator.def, fortran-operator.def: Remove, moving contents
	into std-operator.def.
This commit is contained in:
Tom Tromey
2020-12-09 13:43:44 -07:00
parent 6ad368b8ca
commit d9c3a9c036
6 changed files with 113 additions and 144 deletions

View File

@ -61,15 +61,6 @@ enum exp_opcode : uint8_t
#include "std-operator.def"
/* First extension operator. Individual language modules define extra
operators in *.def include files below with numbers higher than
OP_EXTENDED0. */
OP (OP_EXTENDED0)
/* Language specific operators. */
#include "ada-operator.def"
#include "fortran-operator.def"
#undef OP
/* Existing only to swallow the last comma (',') from last .inc file. */