From: Mike Frysinger via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed] sim: mn10300: tweak static inlines
Date: Thu, 17 Jun 2021 00:14:47 -0400 [thread overview]
Message-ID: <20210617041447.3008-1-vapier@gentoo.org> (raw)
In-Reply-To: <1d11e4f9-bdd2-c8cc-dd8c-7ea9dd2816e4@polymtl.ca>
Use INLINE2 instead of INLINE to fix builds when -O0 are used -- the
latter define is omitted at -O0 levels while the former is always
set to inline. These helper funcs are used by defines in here but
the defines aren't always called.
---
sim/mn10300/ChangeLog | 4 ++++
sim/mn10300/mn10300_sim.h | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index e4db482bd298..0e2c36f5672d 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-17 Mike Frysinger <vapier@gentoo.org>
+
+ * mn10300_sim.h (u642dw, dw2u64): Change INLINE to INLINE2.
+
2021-06-16 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/mn10300/mn10300_sim.h b/sim/mn10300/mn10300_sim.h
index c63efaa6c769..1f696d5b7bef 100644
--- a/sim/mn10300/mn10300_sim.h
+++ b/sim/mn10300/mn10300_sim.h
@@ -158,7 +158,7 @@ sim_core_read_unaligned_4 (STATE_CPU (simulator, 0), PC, read_map, (ADDR))
u642dw (sim_core_read_unaligned_8 (STATE_CPU (simulator, 0), \
PC, read_map, (ADDR)))
-static INLINE dword
+static INLINE2 dword
u642dw (unsigned64 dw)
{
dword r;
@@ -185,7 +185,7 @@ sim_core_write_unaligned_4 (STATE_CPU (simulator, 0), \
sim_core_write_unaligned_8 (STATE_CPU (simulator, 0), \
PC, write_map, (ADDR), dw2u64 (DATA))
-static INLINE unsigned64
+static INLINE2 unsigned64
dw2u64 (dword data)
{
return data.low | (((unsigned64)data.high) << 32);
--
2.31.1
prev parent reply other threads:[~2021-06-17 4:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 3:47 [PATCH/committed 1/2] sim: mn10300: switch abort to sim_engine_abort Mike Frysinger via Gdb-patches
2021-06-15 3:47 ` [PATCH/committed 2/2] sim: mn10300: enable -Werror Mike Frysinger via Gdb-patches
2021-06-16 15:35 ` Simon Marchi via Gdb-patches
2021-06-16 15:47 ` Simon Marchi via Gdb-patches
2021-06-16 17:52 ` Mike Frysinger via Gdb-patches
2021-06-16 18:01 ` Simon Marchi via Gdb-patches
2021-06-17 4:14 ` Mike Frysinger via Gdb-patches [this message]
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=20210617041447.3008-1-vapier@gentoo.org \
--to=gdb-patches@sourceware.org \
--cc=vapier@gentoo.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