aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-01 22:11:41 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-08 12:29:00 -0400
commit1227922933da40205537983f1d079b1b3d08a090 (patch)
treeaaee02e129b165e04a1ac2ce0282d79d297d1960 /sim/common
parent6ae9091ab051a64a50678190a9c8f4d92b70933a (diff)
downloadgdb-1227922933da40205537983f1d079b1b3d08a090.zip
gdb-1227922933da40205537983f1d079b1b3d08a090.tar.gz
gdb-1227922933da40205537983f1d079b1b3d08a090.tar.bz2
sim: cgen: namespace mode_names a bit
These are exported in the library linkage, so add a cgen_ prefix.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog8
-rw-r--r--sim/common/cgen-types.h4
-rw-r--r--sim/common/cgen-utils.c2
3 files changed, 11 insertions, 3 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index a3f6f38..c17ec96 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,13 @@
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.
* cgen-utils.c (cgen_rtx_error): Add %s printf argument.
diff --git a/sim/common/cgen-types.h b/sim/common/cgen-types.h
index 6a23514..c002876 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 a430427..602abcb 100644
--- a/sim/common/cgen-utils.c
+++ b/sim/common/cgen-utils.c
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#define SEMOPS_DEFINE_INLINE
#include "cgen-ops.h"
-const char * const mode_names[] = {
+const char * const cgen_mode_names[] = {
"VOID",
"BI",
"QI",