public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
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	[thread overview]
Message-ID: <20211101035331.8717-1-vapier@gentoo.org> (raw)

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 <stdint.h>
+
 /* 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


             reply	other threads:[~2021-11-01  3:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-01  3:53 Mike Frysinger [this message]
2021-11-01  3:53 ` [PATCH 2/2] sim: ppc: clean up printf format handling Mike Frysinger

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=20211101035331.8717-1-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gdb-patches@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).