+2005-06-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * rtl.h (to_rtx_code): Remove.
+ * machmode.h (to_machine_mode): Likewise.
+ * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
+ explicit cast.
+ (apply_mode_maps): Likewise.
+ (read_rtx_1): Likewise.
+ (apply_code_macro): Replace to to_rtx_code with explicit cast.
+ (check_code_macro): Likewise.
+ (read_rtx_1): Likewise.
+
2005-06-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
* c-typeck.c (convert_for_assignment): Avoid checking
static void
apply_mode_macro (rtx x, int mode)
{
- PUT_MODE (x, to_machine_mode (mode));
+ PUT_MODE (x, (enum machine_mode) mode);
}
/* Implementations of the macro_group callbacks for codes. */
static void
apply_code_macro (rtx x, int code)
{
- PUT_CODE (x, to_rtx_code (code));
+ PUT_CODE (x, (enum rtx_code) code);
}
/* Map a code or mode attribute string P to the underlying string for
v = map_attr_string (pm->string, macro, value);
if (v)
- PUT_MODE (x, to_machine_mode (find_mode (v->string, infile)));
+ PUT_MODE (x, (enum machine_mode) find_mode (v->string, infile));
else
*unknown = pm->string;
return;
struct map_value *v;
enum rtx_code bellwether;
- bellwether = to_rtx_code (macro->values->number);
+ bellwether = (enum rtx_code) macro->values->number;
for (v = macro->values->next; v != 0; v = v->next)
if (strcmp (GET_RTX_FORMAT (bellwether), GET_RTX_FORMAT (v->number)) != 0)
fatal_with_file_and_line (infile, "code macro `%s' combines "
check_code_macro (read_mapping (&codes, codes.macros, infile), infile);
goto again;
}
- real_code = to_rtx_code (find_macro (&codes, tmp_char, infile));
+ real_code = (enum rtx_code) find_macro (&codes, tmp_char, infile);
bellwether_code = BELLWETHER_CODE (real_code);
/* If we end up with an insn expression then we free this space below. */
mode = find_macro (&modes, tmp_char, infile);
else
mode = mode_attr_index (mode_maps, tmp_char);
- PUT_MODE (return_rtx, to_machine_mode (mode));
+ PUT_MODE (return_rtx, (enum machine_mode) mode);
if (GET_MODE (return_rtx) != mode)
fatal_with_file_and_line (infile, "mode too large");
}