diff options
-rw-r--r-- | gcc/coretypes.h | 4 | ||||
-rw-r--r-- | gcc/rtl.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/coretypes.h b/gcc/coretypes.h index 3e9a2f1..f86dc16 100644 --- a/gcc/coretypes.h +++ b/gcc/coretypes.h @@ -101,6 +101,10 @@ typedef gimple *gimple_seq; struct gimple_stmt_iterator; class code_helper; +/* Forward declare rtx_code, so that we can use it in target hooks without + needing to pull in rtl.h. */ +enum rtx_code : unsigned; + /* Forward decls for leaf gimple subclasses (for individual gimple codes). Keep this in the same order as the corresponding codes in gimple.def. */ @@ -45,7 +45,7 @@ class predefined_function_abi; /* Register Transfer Language EXPRESSIONS CODES */ #define RTX_CODE enum rtx_code -enum rtx_code { +enum rtx_code : unsigned { #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) ENUM , #include "rtl.def" /* rtl expressions are documented here */ |