[PATCH 00/11] Fortran Parser Cleanup, KIND Support, and Intrinsic Functions

Andrew Burgess
2019-02-12T16:11:10Z

A series of patches all relating to GDB's Fortran support, though
there's a range of different features worked on in this series they do
all build on each other.

#1, #2, #3, #4, #5 - Are clean up and restructuring commits.

#6, #7, #8, #9, #11 - All relate to type creation in the Fortran parser.

#10 - Adds an intrinsic function

All tested on X86-64 GNU/Linux with 'GNU Fortran (GCC) 7.3.1 20180712
(Red Hat 7.3.1-6)' installed.

Thanks,
Andrew

---

Andrew Burgess (11):
gdb/fortran: Remove some duplicate tests
gdb/fortran: Cleanup code for parsing logical constants
gdb/fortran: Simplify handling of Fortran dot operations and keywords
gdb/fortran: Add new function to evaluate Fortran expressions
gdb/fortran: Enable debugging of the Fortran parser
gdb/fortran: Add Fortran 'kind' intrinsic and keyword
gdb/fortran: Expand the set of types that support (kind=N)
gdb/fortran: Add builtin 8-byte integer type with (kind=8) support
gdb/fortran: Use TYPE_CODE_CHAR for character types
gdb/fortran: Add support for the ABS intrinsic function
gdb/fortran: Handle older TYPE*SIZE typenames

gdb/ChangeLog | 76 +++++++++
gdb/expprint.c | 1 +
gdb/f-exp.y | 256 ++++++++++++++++++++++---------
gdb/f-lang.c | 102 +++++++++++-
gdb/f-lang.h | 1 +
gdb/parse.c | 1 +
gdb/parser-defs.h | 3 +-
gdb/std-operator.def | 1 +
gdb/testsuite/ChangeLog | 42 +++++
gdb/testsuite/gdb.fortran/dot-ops.exp | 123 +++++++++++++++
gdb/testsuite/gdb.fortran/intrinsics.exp | 51 ++++++
gdb/testsuite/gdb.fortran/intrinsics.f90 | 39 +++++
gdb/testsuite/gdb.fortran/type-kinds.exp | 83 ++++++++++
gdb/testsuite/gdb.fortran/types.exp | 9 +-
14 files changed, 711 insertions(+), 77 deletions(-)
create mode 100644 gdb/testsuite/gdb.fortran/dot-ops.exp
create mode 100644 gdb/testsuite/gdb.fortran/intrinsics.exp
create mode 100644 gdb/testsuite/gdb.fortran/intrinsics.f90
create mode 100644 gdb/testsuite/gdb.fortran/type-kinds.exp

--
2.14.5