gdb/fortran: add symbol base comparison operators
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 11 Jan 2021 14:14:02 +0000 (14:14 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 12 Jan 2021 09:40:55 +0000 (09:40 +0000)
commit7c654b719d2c186bd645a560525dd3e9c86d15cd
treeca0796d3a81e868c0c293de82474d3ae50af5792
parente998918e9890d5efc0270ad6f140e098eaf0081f
gdb/fortran: add symbol base comparison operators

Fortran supports symbol based comparison operators as well as the
classic text based comparison operators, so we have:

   Text     | Symbol
   Operator | Operator
   ---------|---------
   .eq.     | ==
   .ne.     | /=
   .le.     | <=
   .ge.     | >=
   .gt.     | >
   .lt.     | <

This commit adds the symbol based operators as well as some tests.

gdb/ChangeLog:

* f-exp.y (dot_ops): Rename to...
(fortran_operators): ...this.  Add a header comment.  Add symbol
based operators.
(yylex): Update to use fortran_operators not dot_ops.  Remove
special handling for '**', this is now included in
fortran_operators.

gdb/testsuite/ChangeLog:

* gdb.fortran/dot-ops.exp: Add new tests.
gdb/ChangeLog
gdb/f-exp.y
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/dot-ops.exp