+2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * f-lang.c (evaluate_subexp_f): New function.
+ (exp_descriptor_f): New global.
+ (f_language_defn): Use exp_descriptor_f instead of
+ exp_descriptor_standard.
+
2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
* f-exp.y (struct token): Add comments.
text, word, ":", code);
}
+/* Special expression evaluation cases for Fortran. */
+struct value *
+evaluate_subexp_f (struct type *expect_type, struct expression *exp,
+ int *pos, enum noside noside)
+{
+ /* Currently no special handling is required. */
+ return evaluate_subexp_standard (expect_type, exp, pos, noside);
+}
+
static const char *f_extensions[] =
{
".f", ".F", ".for", ".FOR", ".ftn", ".FTN", ".fpp", ".FPP",
NULL
};
+/* Expression processing for Fortran. */
+static const struct exp_descriptor exp_descriptor_f =
+{
+ print_subexp_standard,
+ operator_length_standard,
+ operator_check_standard,
+ op_name_standard,
+ dump_subexp_body_standard,
+ evaluate_subexp_f
+};
+
extern const struct language_defn f_language_defn =
{
"fortran",
array_column_major,
macro_expansion_no,
f_extensions,
- &exp_descriptor_standard,
+ &exp_descriptor_f,
f_parse, /* parser */
null_post_parser,
f_printchar, /* Print character constant */