Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Simulator: prevent inlining in C++ mode
@ 2019-01-11  9:59 Павел Крюков
  2019-01-15 23:07 ` Simon Marchi
  0 siblings, 1 reply; 7+ messages in thread
From: Павел Крюков @ 2019-01-11  9:59 UTC (permalink / raw)
  To: gdb-patches

Simulator: prevent inlining in C++ mode

sim-arange.c contains C code and cannot be built with C++ compiler.
Instead, it should be built separately by C compiler w/o inlining.

sim/common/Changelog:
2019-01-11  Pavel I. Kryukov  <kryukov@frtk.ru>

        * sim-inline.h: don't define HAVE_INLINE with __cplusplus

diff --git a/sim/common/sim-inline.h b/sim/common/sim-inline.h
index b2a3fc3..e9fb5c7 100644
--- a/sim/common/sim-inline.h
+++ b/sim/common/sim-inline.h
@@ -282,7 +282,7 @@


 #ifndef HAVE_INLINE
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__cplusplus)
 #define HAVE_INLINE
 #endif
 #endif


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

end of thread, other threads:[~2019-01-17 13:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-11  9:59 [PATCH] Simulator: prevent inlining in C++ mode Павел Крюков
2019-01-15 23:07 ` Simon Marchi
2019-01-15 23:31   ` Павел Крюков
2019-01-16 18:29     ` Pavel I. Kryukov
2019-01-16 19:51       ` Simon Marchi
2019-01-17  9:53         ` Alan Hayward
2019-01-17 13:20           ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox