From 1227922933da40205537983f1d079b1b3d08a090 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 1 May 2021 22:11:41 -0400 Subject: [PATCH] sim: cgen: namespace mode_names a bit These are exported in the library linkage, so add a cgen_ prefix. --- sim/common/ChangeLog | 8 ++++++++ sim/common/cgen-types.h | 4 ++-- sim/common/cgen-utils.c | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index a3f6f38d7df..c17ec96587d 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,11 @@ +2021-05-08 Mike Frysinger + + * 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 * cgen-ops.h (cgen_rtx_error): Declare. diff --git a/sim/common/cgen-types.h b/sim/common/cgen-types.h index 6a235143114..c002876803c 100644 --- a/sim/common/cgen-types.h +++ b/sim/common/cgen-types.h @@ -56,8 +56,8 @@ typedef enum mode_type { #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; diff --git a/sim/common/cgen-utils.c b/sim/common/cgen-utils.c index a430427bf12..602abcba182 100644 --- a/sim/common/cgen-utils.c +++ b/sim/common/cgen-utils.c @@ -28,7 +28,7 @@ along with this program. If not, see . */ #define SEMOPS_DEFINE_INLINE #include "cgen-ops.h" -const char * const mode_names[] = { +const char * const cgen_mode_names[] = { "VOID", "BI", "QI", -- 2.30.2