aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/std-config.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-08-06 15:55:32 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-08-06 15:55:32 +0000
commit2e913166b1be63e4a327c9c2f37f0115fece6595 (patch)
tree2242deb73e41d1fd8a29671bcf348690a20bbd78 /sim/ppc/std-config.h
parent5fac6a39dc2b8704850d7bec599bc9ae281af3bd (diff)
downloadgdb-2e913166b1be63e4a327c9c2f37f0115fece6595.zip
gdb-2e913166b1be63e4a327c9c2f37f0115fece6595.tar.gz
gdb-2e913166b1be63e4a327c9c2f37f0115fece6595.tar.bz2
7/30 release from Andrew
Diffstat (limited to 'sim/ppc/std-config.h')
-rw-r--r--sim/ppc/std-config.h37
1 files changed, 32 insertions, 5 deletions
diff --git a/sim/ppc/std-config.h b/sim/ppc/std-config.h
index 76750f9..1a3349c 100644
--- a/sim/ppc/std-config.h
+++ b/sim/ppc/std-config.h
@@ -289,13 +289,21 @@ extern int current_model_issue;
/* Whether or not input/output just uses stdio, or uses printf_filtered for
output, and polling input for input. */
-#define DONT_USE_STDIO 0
+
+#define DONT_USE_STDIO 2
#define DO_USE_STDIO 1
#ifndef WITH_STDIO
-#define WITH_STDIO DONT_USE_STDIO
+#define WITH_STDIO DO_USE_STDIO
#endif
+extern int current_stdio;
+#define CURRENT_STDIO (WITH_STDIO \
+ ? WITH_STDIO \
+ : current_stdio)
+
+
+
/* INLINE CODE SELECTION:
GCC -O3 attempts to inline any function or procedure in scope. The
@@ -454,15 +462,34 @@ extern int current_model_issue;
#endif
#endif
+
/* Your compilers pass parameters in registers reserved word */
+#ifndef WITH_REGPARM
+#define WITH_REGPARM 0
+#endif
+
+#ifndef WITH_STDCALL
+#define WITH_STDCALL 0
+#endif
+
#if !defined REGPARM
-#if (defined(i386) || defined(i486) || defined(i586) || defined(__i386__) || defined(__i486__) || defined(__i586__)) && WITH_REGPARM
+#if (defined(i386) || defined(i486) || defined(i586) || defined(__i386__) || defined(__i486__) || defined(__i586__))
+#if (WITH_REGPARM && WITH_STDCALL)
+#define REGPARM __attribute__((__regparm__(WITH_REGPARM),__stdcall__))
+#else
+#if (WITH_REGPARM && !WITH_STDCALL)
#define REGPARM __attribute__((__regparm__(WITH_REGPARM)))
#else
+#if (!WITH_REGPARM && WITH_STDCALL)
+#define REGPARM __attribute__((__stdcall__))
+#else
#define REGPARM
#endif
#endif
+#endif
+#endif
+#endif
@@ -572,7 +599,7 @@ extern int current_model_issue;
inline all of their called functions */
#ifndef SEMANTICS_INLINE
-#define SEMANTICS_INLINE DEFAULT_INLINE
+#define SEMANTICS_INLINE (DEFAULT_INLINE & ~INLINE_MODULE)
#endif
/* When using the instruction cache, code to decode an instruction and
@@ -580,7 +607,7 @@ extern int current_model_issue;
miss in the instruction cache. */
#ifndef ICACHE_INLINE
-#define ICACHE_INLINE DEFAULT_INLINE
+#define ICACHE_INLINE (DEFAULT_INLINE & ~INLINE_MODULE)
#endif
/* General functions called by semantics functions but part of the