[PATCH 3/4] sim: cgen: namespace mode_names a bit

Mike Frysinger vapier@gentoo.org
Wed May 5 02:07:32 GMT 2021


These are exported in the library linkage, so add a cgen_ prefix.
---
 sim/common/cgen-types.h | 4 ++--
 sim/common/cgen-utils.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sim/common/cgen-types.h b/sim/common/cgen-types.h
index 6a2351431141..c002876803c7 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 a430427bf12a..602abcba1820 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",
-- 
2.31.1



More information about the Gdb-patches mailing list