From: tbsaunde+binutils@tbsaunde.org
To: binutils@sourceware.org
Subject: [PATCH 1/2] change the type of some fields to bfd_reloc_code_real_type
Date: Wed, 18 May 2016 03:25:00 -0000 [thread overview]
Message-ID: <1463541902-11708-1-git-send-email-tbsaunde+binutils@tbsaunde.org> (raw)
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
HI,
$subject, they only ever hold values of the enum so this seems clearer.
built and regtested cross to dlx-elf, and tic4x-coff, ok?
Trev
gas/ChangeLog:
2016-05-17 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.
---
gas/config/tc-dlx.c | 2 +-
gas/config/tc-tic4x.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gas/config/tc-dlx.c b/gas/config/tc-dlx.c
index b636cec..03e8de9 100644
--- a/gas/config/tc-dlx.c
+++ b/gas/config/tc-dlx.c
@@ -52,7 +52,7 @@ struct machine_it
int pcrel;
int size;
int reloc_offset; /* Offset of reloc within insn. */
- int reloc;
+ bfd_reloc_code_real_type reloc;
int HI;
int LO;
}
diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c
index 97f830c..16fa8b2 100644
--- a/gas/config/tc-tic4x.c
+++ b/gas/config/tc-tic4x.c
@@ -124,7 +124,7 @@ typedef struct tic4x_insn
unsigned int nchars; /* This is always 4 for the C30. */
unsigned long opcode; /* Opcode number. */
expressionS exp; /* Expression required for relocation. */
- int reloc; /* Relocation type required. */
+ bfd_reloc_code_real_type reloc; /* Relocation type required. */
int pcrel; /* True if relocation PC relative. */
char *pname; /* Name of instruction in parallel. */
unsigned int num_operands; /* Number of operands in total. */
--
2.7.0
next reply other threads:[~2016-05-18 3:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 3:25 tbsaunde+binutils [this message]
2016-05-18 3:25 ` [PATCH 2/2] rx: make field type enum tbsaunde+binutils
2016-05-18 4:14 ` Alan Modra
2016-05-18 4:13 ` [PATCH 1/2] change the type of some fields to bfd_reloc_code_real_type Alan Modra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1463541902-11708-1-git-send-email-tbsaunde+binutils@tbsaunde.org \
--to=tbsaunde+binutils@tbsaunde.org \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).