Now that we require C++ 11, we can safely forward declare rtx_code
so that we can use it in target hooks.
gcc/ChangeLog
* coretypes.h (rtx_code): Add forward declaration.
* rtl.h (rtx_code): Make compatible with forward declaration.
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. */
/* 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 */