From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25747 invoked by alias); 18 May 2016 03:25:19 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 25723 invoked by uid 89); 18 May 2016 03:25:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,FSL_HELO_HOME,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=1247 X-HELO: paperclip.tbsaunde.org Received: from tbsaunde.org (HELO paperclip.tbsaunde.org) (66.228.47.254) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 May 2016 03:25:09 +0000 Received: from iceball.hitronhub.home (CPE00fc8d3ff2d3-CM00fc8d3ff2d0.cpe.net.cable.rogers.com [99.242.1.93]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id 60EC1C0AE for ; Wed, 18 May 2016 03:25:07 +0000 (UTC) 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 Message-Id: <1463541902-11708-1-git-send-email-tbsaunde+binutils@tbsaunde.org> X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00228.txt.bz2 From: Trevor Saunders 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 * 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