type_p structures = NULL;
pair_p variables = NULL;
-static type_p adjust_field_tree_exp (type_p t, options_p opt);
static type_p adjust_field_rtx_def (type_p t, options_p opt);
/* Define S as a typedef to T at POS. */
nodot, NULL);
}
-/* Handle `special("tree_exp")'. This is a special case for
- field `operands' of struct tree_exp, which although it claims to contain
- pointers to trees, actually sometimes contains pointers to RTL too.
- Passed T, the old type of the field, and OPT its options. Returns
- a new type for the field. */
-
-static type_p
-adjust_field_tree_exp (type_p t, options_p opt ATTRIBUTE_UNUSED)
-{
- pair_p flds;
- options_p nodot;
-
- if (t->kind != TYPE_ARRAY)
- {
- error_at_line (&lexer_line,
- "special `tree_exp' must be applied to an array");
- return &string_type;
- }
-
- nodot = create_string_option (NULL, "dot", "");
-
- flds = create_field (NULL, t, "");
- flds->opt = create_string_option (nodot, "length",
- "TREE_OPERAND_LENGTH ((tree) &%0)");
- flds->opt = create_string_option (flds->opt, "default", "");
-
- return new_structure ("tree_exp_subunion", TYPE_UNION, &lexer_line, flds,
- nodot, NULL);
-}
-
/* Perform any special processing on a type T, about to become the type
of a field. Return the appropriate type for the field.
At present:
&& opt->kind == OPTION_STRING)
{
const char *special_name = opt->info.string;
- if (strcmp (special_name, "tree_exp") == 0)
- t = adjust_field_tree_exp (t, opt);
- else if (strcmp (special_name, "rtx_def") == 0)
+ if (strcmp (special_name, "rtx_def") == 0)
t = adjust_field_rtx_def (t, opt);
else
error_at_line (&lexer_line, "unknown special `%s'", special_name);