Implement several Fortran operations
authorTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:27:57 +0000 (07:27 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:28:26 +0000 (07:28 -0700)
commit9dcd3e295774f93ec0cdcd687481c98e2d5e606c
treea1281e5edc4e639b412c0372ed88f04638ab194d
parentfc715eb288a8f364616c7adc16afd8ba74849d62
Implement several Fortran operations

This implements several straightforward Fortran operations, primarily
by reusing existing template classes.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

* f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
(eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
(eval_op_f_kind): No longer static.  Add "opcode" parameter.
(evaluate_subexp_f): Update.
* f-exp.h: New file.
gdb/ChangeLog
gdb/f-exp.h [new file with mode: 0644]
gdb/f-lang.c