gdb/fortran: Support for single/double type modifiers
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 3 Dec 2019 10:52:05 +0000 (10:52 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 4 Dec 2019 20:29:53 +0000 (20:29 +0000)
commit36c8fb93c9d4135ce3c1561f5f3886b1b0bf31f6
treecc79ca29a04f21c9712ba4b9121170ddfdb84aab
parentc6170c2c141866bc3fd158db17a1e0b87b43ef07
gdb/fortran: Support for single/double type modifiers

Extend the Fortran parser to support 'single precision' and 'double
precision' types as well 'single complex' and 'double complex' types.

gdb/ChangeLog:

* f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
tokens.
(typebase): New patterns for complex, single/double precision, and
single/double complex.
(f77_keywords): Change token for complex keyword, and add single,
double, and precision keywords.

gdb/testsuite/ChangeLog:

* gdb.fortran/type-kinds.exp (test_cast_1_to_type_kind): Handle
casting to type with no kind specified.
(test_basic_parsing_of_type_kinds): Additional tests for types
with no kind specified, and add tests for single/double
precision/complex types.

Change-Id: I9c82f4d392c58607747bd08862c1ee330723a1ba
gdb/ChangeLog
gdb/f-exp.y
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/type-kinds.exp