From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id A2D753858C3A for ; Mon, 1 Nov 2021 03:53:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A2D753858C3A Received: by smtp.gentoo.org (Postfix, from userid 559) id 334A5342D71; Mon, 1 Nov 2021 03:53:31 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 1/2] sim: ppc: switch core types to stdint.h types Date: Sun, 31 Oct 2021 23:53:30 -0400 Message-Id: <20211101035331.8717-1-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2021 03:53:33 -0000 There's no need to define these ourselves anymore, so switch to the stdint.h types. This will be important when we start using PRI* defines with printf formats. --- sim/ppc/words.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/sim/ppc/words.h b/sim/ppc/words.h index 641f22514ecc..406bb1fdfaea 100644 --- a/sim/ppc/words.h +++ b/sim/ppc/words.h @@ -46,31 +46,30 @@ /* This must come before any other includes. */ #include "defs.h" +#include + /* bit based */ typedef char natural8; typedef short natural16; typedef int natural32; -typedef signed char signed8; -typedef signed short signed16; -typedef signed int signed32; - -typedef unsigned char unsigned8; -typedef unsigned short unsigned16; -typedef unsigned int unsigned32; - #ifdef __GNUC__ typedef long long natural64; -typedef signed long long signed64; -typedef unsigned long long unsigned64; #endif #ifdef _MSC_VER typedef __int64 natural64; -typedef signed __int64 signed64; -typedef unsigned __int64 unsigned64; #endif +typedef int8_t signed8; +typedef int16_t signed16; +typedef int32_t signed32; +typedef int64_t signed64; + +typedef uint8_t unsigned8; +typedef uint16_t unsigned16; +typedef uint32_t unsigned32; +typedef uint64_t unsigned64; /* byte based */ typedef natural8 natural_1; -- 2.33.0