This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] arc: prototype arc_get_mach in opcodes/arc.h
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Cc: Trevor Saunders <tbsaunde+binutils at tbsaunde dot org>
- Date: Sun, 26 Jun 2016 06:21:59 -0400
- Subject: [PATCH] arc: prototype arc_get_mach in opcodes/arc.h
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
hi,
built and tested arc-elf, ok?
Trev
bfd/ChangeLog:
2016-06-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* cpu-arc.c (arc_get_mach): Remove prototpye.
include/ChangeLog:
2016-06-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* opcode/arc.h (arc_get_mach): New prototype.
gas/ChangeLog:
2016-06-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-arc.c (arc_get_mach): Remove prototype.
---
bfd/cpu-arc.c | 5 +----
gas/config/tc-arc.c | 2 --
include/opcode/arc.h | 4 ++++
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/bfd/cpu-arc.c b/bfd/cpu-arc.c
index 07a052b..099524d 100644
--- a/bfd/cpu-arc.c
+++ b/bfd/cpu-arc.c
@@ -22,6 +22,7 @@
#include "sysdep.h"
#include "bfd.h"
#include "libbfd.h"
+#include "opcode/arc.h"
#define ARC(mach, print_name, default_p, next) \
{ \
@@ -57,10 +58,6 @@ const bfd_arch_info_type bfd_arc_arch =
/* Utility routines. */
-/* Given cpu type NAME, return its bfd_mach_arc_xxx value.
- Returns -1 if not found. */
-int arc_get_mach (char *name);
-
int
arc_get_mach (char *name)
{
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 5755821..83de47c 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -134,8 +134,6 @@ static segT arcext_section;
/* By default relaxation is disabled. */
static int relaxation_state = 0;
-extern int arc_get_mach (char *);
-
/* Forward declarations. */
static void arc_lcomm (int);
static void arc_option (int);
diff --git a/include/opcode/arc.h b/include/opcode/arc.h
index f0fefbb..ae74d58 100644
--- a/include/opcode/arc.h
+++ b/include/opcode/arc.h
@@ -608,6 +608,10 @@ extern const unsigned char arg_32bit_rc[MAX_INSN_ARGS + 1];
extern const unsigned char arg_32bit_u6[MAX_INSN_ARGS + 1];
extern const unsigned char arg_32bit_limm[MAX_INSN_ARGS + 1];
+/* Given cpu type NAME, return its bfd_mach_arc_xxx value.
+ Returns -1 if not found. */
+int arc_get_mach (char *name);
+
#ifdef __cplusplus
}
#endif
--
2.8.1