This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] rx: make field type enum
- From: Trevor Saunders <tbsaunde at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 18 May 2016 10:26:46 -0000
- Subject: [binutils-gdb] rx: make field type enum
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=42e58860e260edf7d92734c01b95fccf9ddb2431
commit 42e58860e260edf7d92734c01b95fccf9ddb2431
Author: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Date: Sat May 14 04:33:53 2016 -0400
rx: make field type enum
gas/ChangeLog:
2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-rx.c (struct cpu_type): Change the type of a field from
int to enum rx_cpu_types.
Diff:
---
gas/ChangeLog | 5 +++++
gas/config/tc-rx.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1cd95a5..aa50770 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+ * config/tc-rx.c (struct cpu_type): Change the type of a field from
+ int to enum rx_cpu_types.
+
+2016-05-18 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
* config/tc-dlx.c (struct machine_it): change the type of a field from
int to bfd_reloc_code_real_type.
* config/tc-tic4x.c: Likewise.
diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c
index a1590ac..f87aac1 100644
--- a/gas/config/tc-rx.c
+++ b/gas/config/tc-rx.c
@@ -109,7 +109,7 @@ size_t md_longopts_size = sizeof (md_longopts);
struct cpu_type
{
const char *cpu_name;
- int type;
+ enum rx_cpu_types type;
};
struct cpu_type cpu_type_list[] =