aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@cs.tamu.edu>2005-06-09 17:41:37 +0000
committerGabriel Dos Reis <gdr@cs.tamu.edu>2005-06-09 17:41:37 +0000
commit91b9770f0b1896916c7a7ea9cdc4c824fa974fa6 (patch)
treeb3762385888427b63671b9ef7c72ac900943b344 /gcc/rtl.h
parent8c8a2da63b8600c3ba79b80981b6117d3dd9d060 (diff)
* machmode.h (to_machine_mode): New.
* rtl.h (to_rtx_code): Likewise. * read-rtl.c (apply_mode_macro): Convert mode to machine_mode. (print_c_condition): Convert return value of htab_find(). (apply_code_macro): Add explicit cast when convertin to enums. (apply_mode_maps): Likewise. (check_code_macro): Likewise. (read_rtx_1): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@100804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 69091ab36d0..bbd1c62a421 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -51,6 +51,8 @@ enum rtx_code {
#define NUM_RTX_CODE ((int) LAST_AND_UNUSED_RTX_CODE)
/* The cast here, saves many elsewhere. */
+#define to_rtx_code(CODE) ((enum rtx_code) (CODE))
+
/* Register Transfer Language EXPRESSIONS CODE CLASSES */
enum rtx_class {