public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix build failure with sim-arange inlining
@ 2018-12-02 13:05 Stafford Horne
  2018-12-02 13:05 ` [PATCH 2/3] include/dis-asm.h: Fix warning: Include "string.h" for strchr Stafford Horne
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stafford Horne @ 2018-12-02 13:05 UTC (permalink / raw)
  To: GDB patches; +Cc: Stafford Horne

Hello,

When building the OpenRISC sim without any CLFAGS set or -O0, I get a failure
due to some bad inlining definitions in sim-arange.  To fix this I have
converted sim-arange inlining to use the more standard sim-inline inlining
framework.  This seems to work fine and makes the code a bit easier to follow in
my opinion.

I have tested this on a few other targets, nios, arm, lm32 etc and it seems to
not break the build or cause issues.

During the build I also noticed several other warnings.  Which I think is good
to also fix up so I am including these in the series.

Stafford Horne (3):
  sim/common: convert sim-arange to use sim-inline
  include/dis-asm.h: Fix warning: Include "string.h" for strchr
  sim/common: Fix warnings: "warning: implicit declaration of
    function..."

 include/dis-asm.h         |  4 ++++
 sim/common/Make-common.in |  3 +--
 sim/common/hw-device.c    |  4 ++++
 sim/common/hw-events.c    |  3 +++
 sim/common/hw-handles.c   |  3 +++
 sim/common/sim-arange.c   | 26 ++++++++++----------------
 sim/common/sim-arange.h   | 31 ++++++++++---------------------
 sim/common/sim-base.h     |  1 +
 sim/common/sim-basics.h   |  1 -
 sim/common/sim-fpu.c      |  3 +++
 sim/common/sim-inline.c   |  5 ++++-
 sim/common/sim-inline.h   | 32 ++++++++++++++++++++++++++++++++
 sim/common/sim-options.c  |  2 ++
 sim/common/sim-watch.c    |  2 ++
 14 files changed, 79 insertions(+), 41 deletions(-)

-- 
2.19.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-02-12 21:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-02 13:05 [PATCH 0/3] Fix build failure with sim-arange inlining Stafford Horne
2018-12-02 13:05 ` [PATCH 2/3] include/dis-asm.h: Fix warning: Include "string.h" for strchr Stafford Horne
2019-01-22 17:07   ` Simon Marchi
2019-01-27  4:22     ` Stafford Horne
2019-02-12 21:55       ` Tom Tromey
2018-12-02 13:05 ` [PATCH 1/3] sim/common: convert sim-arange to use sim-inline Stafford Horne
2018-12-02 13:05 ` [PATCH 3/3] sim/common: Fix warnings: "warning: implicit declaration of function..." Stafford Horne

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).