These are exported in the library linkage, so add a cgen_ prefix.
+2021-05-08 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-types.h (mode_names): Rename to ...
+ (cgen_mode_names): ... this.
+ (MODE_NAME): Use cgen_mode_names.
+ * cgen-utils.c (mode_names): Rename to ...
+ (cgen_mode_names): ... this.
+
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-ops.h (cgen_rtx_error): Declare.
#define MAX_TARGET_MODES ((int) MODE_TARGET_MAX)
#define MAX_MODES ((int) MODE_MAX)
-extern const char * const mode_names[];
-#define MODE_NAME(m) (mode_names[m])
+extern const char * const cgen_mode_names[];
+#define MODE_NAME(m) (cgen_mode_names[m])
typedef void VOID;
typedef unsigned char BI;
#define SEMOPS_DEFINE_INLINE
#include "cgen-ops.h"
-const char * const mode_names[] = {
+const char * const cgen_mode_names[] = {
"VOID",
"BI",
"QI",