gdb/fortran: add support for 'SIZE' keyword
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 59638cc479e3aa85f8b4042349f0388cec2b87ef..0a163539a74377abf0eec5b00e4cfe7fd52f5054 100644 (file)
@@ -1,3 +1,16 @@
+2021-03-09  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
+       of this function.
+       (expr::fortran_array_size_1arg): New type.
+       (expr::fortran_array_size_2arg): Likewise.
+       * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
+       UNOP_OR_BINOP_INTRINSIC.
+       (f77_keywords): Add "size" keyword.
+       * f-lang.c (fortran_array_size): New function.
+       (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
+       * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
+
 2021-03-09  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * f-exp.h (eval_op_f_rank): Declare.
This page took 0.024301 seconds and 4 git commands to generate.