* Makefile.in (INTL_SRC): Define.
[deliverable/binutils-gdb.git] / sim / ppc / std-config.h
index 1a3349c3efbbf637446aa2589631cd84c1602218..c48e3654fc212f99024d943e9871af6dbb808a59 100644 (file)
@@ -1,6 +1,6 @@
 /*  This file is part of the program psim.
 
-    Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
+    Copyright 1994, 1995, 2002 Andrew Cagney <cagney@highland.com.au>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -294,7 +294,7 @@ extern int current_model_issue;
 #define DO_USE_STDIO                   1
 
 #ifndef WITH_STDIO
-#define WITH_STDIO                     DO_USE_STDIO
+#define WITH_STDIO                     0
 #endif
 
 extern int current_stdio;
@@ -340,7 +340,7 @@ extern int current_stdio;
          the module is included into a file being compiled, calls to
         its funtions can be eliminated. 2 implies 1.
 
-      INLINE_LOCALS:
+      PSIM_INLINE_LOCALS:
 
          Make internal (static) functions within the module `inline'.
 
@@ -348,7 +348,7 @@ extern int current_stdio;
 
       INCLUDE_MODULE == (REVEAL_MODULE | INLINE_MODULE)
 
-      ALL_INLINE == (REVEAL_MODULE | INLINE_MODULE | INLINE_LOCALS)
+      ALL_INLINE == (REVEAL_MODULE | INLINE_MODULE | PSIM_INLINE_LOCALS)
 
    In addition to this, modules have been put into two categories.
 
@@ -438,7 +438,7 @@ extern int current_stdio;
    local function.
 
    Because of the way that GCC parses __attribute__(), the macro's
-   need to be adjacent to the functioin name rather then at the start
+   need to be adjacent to the function name rather than at the start
    of the line vis:
 
        int STATIC_INLINE_MODULE f(void);
@@ -449,7 +449,7 @@ extern int current_stdio;
 #define REVEAL_MODULE                  1
 #define INLINE_MODULE                  2
 #define INCLUDE_MODULE                 (INLINE_MODULE | REVEAL_MODULE)
-#define INLINE_LOCALS                  4
+#define PSIM_INLINE_LOCALS                     4
 #define ALL_INLINE                     7
 
 /* Your compilers inline reserved word */
@@ -469,12 +469,14 @@ extern int current_stdio;
 #define WITH_REGPARM                   0
 #endif
 
+/* Your compilers use an alternative calling sequence reserved word */
+
 #ifndef WITH_STDCALL
 #define WITH_STDCALL                   0
 #endif
 
 #if !defined REGPARM
-#if (defined(i386) || defined(i486) || defined(i586) || defined(__i386__) || defined(__i486__) || defined(__i586__))
+#if defined(__GNUC__) && (defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__))
 #if (WITH_REGPARM && WITH_STDCALL)
 #define REGPARM __attribute__((__regparm__(WITH_REGPARM),__stdcall__))
 #else
@@ -483,14 +485,16 @@ extern int current_stdio;
 #else
 #if (!WITH_REGPARM && WITH_STDCALL)
 #define REGPARM __attribute__((__stdcall__))
-#else
-#define REGPARM
 #endif
 #endif
 #endif
 #endif
 #endif
 
+#if !defined REGPARM
+#define REGPARM
+#endif
+
 
 
 /* Default prefix for static functions */
@@ -502,7 +506,7 @@ extern int current_stdio;
 /* Default macro to simplify control several of key the inlines */
 
 #ifndef DEFAULT_INLINE
-#define        DEFAULT_INLINE                  INLINE_LOCALS
+#define        DEFAULT_INLINE                  PSIM_INLINE_LOCALS
 #endif
 
 /* Code that converts between hosts and target byte order.  Used on
@@ -576,7 +580,15 @@ extern int current_stdio;
    a jump table. */
 
 #ifndef DEVICE_INLINE
-#define DEVICE_INLINE                  INLINE_LOCALS
+#define DEVICE_INLINE                  (DEFAULT_INLINE ? PSIM_INLINE_LOCALS : 0)
+#endif
+
+/* Code called used while the device tree is being built.
+
+   Inlining this is of no benefit */
+
+#ifndef TREE_INLINE
+#define TREE_INLINE                    (DEFAULT_INLINE ? PSIM_INLINE_LOCALS : 0)
 #endif
 
 /* Code called whenever information on a Special Purpose Register is
@@ -616,7 +628,7 @@ extern int current_stdio;
    code is reduced. */
 
 #ifndef SUPPORT_INLINE
-#define SUPPORT_INLINE                 INLINE_LOCALS
+#define SUPPORT_INLINE                 PSIM_INLINE_LOCALS
 #endif
 
 /* Model specific code used in simulating functional units.  Note, it actaully
@@ -641,13 +653,13 @@ extern int current_stdio;
    into this file */
 
 #ifndef IDECOCE_INLINE
-#define IDECODE_INLINE                 INLINE_LOCALS
+#define IDECODE_INLINE                 PSIM_INLINE_LOCALS
 #endif
 
 /* psim, isn't actually inlined */
 
 #ifndef PSIM_INLINE
-#define PSIM_INLINE                    INLINE_LOCALS
+#define PSIM_INLINE                    PSIM_INLINE_LOCALS
 #endif
 
 /* Code to emulate os or rom compatibility.  This code is called via a
This page took 0.02673 seconds and 4 git commands to generate.