From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 1688F382A2FA; Fri, 28 Apr 2023 06:16:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1688F382A2FA Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Make bfd_byte an int8_t, flagword a uint32_t X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: 5a8e7e1332c35d4d5bed67adccd9d66f5cf62c4e X-Git-Newrev: 6b258591644cf1db97113cc00f5373135d8755ba Message-Id: <20230428061620.1688F382A2FA@sourceware.org> Date: Fri, 28 Apr 2023 06:16:20 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2023 06:16:20 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D6b258591644c= f1db97113cc00f5373135d8755ba commit 6b258591644cf1db97113cc00f5373135d8755ba Author: Alan Modra Date: Wed Apr 26 21:06:29 2023 +0930 Make bfd_byte an int8_t, flagword a uint32_t =20 * bfd-in.h (bfd_byte): Typedef as int8_t. (flagword): Typedef as uint32_t. (bfd_vma, bfd_signed_vma, bfd_size_type, symvalue): Use stdint types in !BFD64 case. * bfd-in2.h: Regenerate. Diff: --- bfd/bfd-in.h | 12 ++++++------ bfd/bfd-in2.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index c3f92c142a5..eb6ee9cf816 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -115,10 +115,10 @@ typedef uint64_t symvalue; =20 #else /* not BFD64 */ =20 -typedef unsigned long bfd_vma; -typedef long bfd_signed_vma; -typedef unsigned long symvalue; -typedef unsigned long bfd_size_type; +typedef uint32_t bfd_vma; +typedef int32_t bfd_signed_vma; +typedef uint32_t bfd_size_type; +typedef uint32_t symvalue; =20 #endif /* not BFD64 */ =20 @@ -135,8 +135,8 @@ extern void bfd_fprintf_vma (bfd *, void *, bfd_vma); =20 #define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x) =20 -typedef unsigned int flagword; /* 32 bits of flags */ -typedef unsigned char bfd_byte; +typedef uint32_t flagword; /* 32 bits of flags */ +typedef uint8_t bfd_byte; =0C /* File formats. */ =20 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index a04e97eda67..fcfd22662f3 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -122,10 +122,10 @@ typedef uint64_t symvalue; =20 #else /* not BFD64 */ =20 -typedef unsigned long bfd_vma; -typedef long bfd_signed_vma; -typedef unsigned long symvalue; -typedef unsigned long bfd_size_type; +typedef uint32_t bfd_vma; +typedef int32_t bfd_signed_vma; +typedef uint32_t bfd_size_type; +typedef uint32_t symvalue; =20 #endif /* not BFD64 */ =20 @@ -142,8 +142,8 @@ extern void bfd_fprintf_vma (bfd *, void *, bfd_vma); =20 #define bfd_printf_vma(abfd,x) bfd_fprintf_vma (abfd,stdout,x) =20 -typedef unsigned int flagword; /* 32 bits of flags */ -typedef unsigned char bfd_byte; +typedef uint32_t flagword; /* 32 bits of flags */ +typedef uint8_t bfd_byte; =0C /* File formats. */