1 /* The common simulator framework for GDB, the GNU Debugger.
3 Copyright 2002-2015 Free Software Foundation, Inc.
5 Contributed by Andrew Cagney and Red Hat.
7 This file is part of GDB.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
27 /* INLINE CODE SELECTION:
29 GCC -O3 attempts to inline any function or procedure in scope. The
30 options below facilitate finer grained control over what is and
31 what is not inlined. In particular, it allows the selection of
32 modules for inlining. Doing this allows the compiler to both
33 eliminate the overhead of function calls and (as a consequence)
34 also eliminate further dead code.
36 On a CISC (x86) I've found that I can achieve an order of magnitude
37 speed improvement (x3-x5). In the case of RISC (sparc) while the
38 performance gain isn't as great it is still significant.
40 Each module is controled by the macro <module>_INLINE which can
41 have the values described below
45 Do not inline any thing for the given module
47 The following bit fields values can be combined:
52 Include the C file for the module into the file being
53 compiled. The actual inlining is controlled separatly.
55 While of no apparent benefit, this makes it possible for the
56 included module, when compiled, to inline its calls to what
57 would otherwize be external functions.
59 {C_,H_} Determines where the module is inlined. A
60 H_REVEALS_MODULE will be included everywhere.
64 Make external functions within the module `inline'. Thus if
65 the module is included into a file being compiled, calls to
66 the included modules funtions can be eliminated. INLINE_MODULE
67 implies REVEAL_MODULE.
71 Make internal (static) functions within the module `inline'.
76 The inline ability is enabled by specifying every data and function
77 declaration and definition using one of the following methods:
80 GLOBAL INLINE FUNCTIONS:
82 Such functions are small and used heavily. Inlining them
83 will eliminate an unnecessary function call overhead.
85 .h: INLINE_OURPKG (void) ourpkg_func
89 .c: INLINE_OURPKG (void)
97 GLOBAL INLINE VARIABLES:
99 This doesn't make much sense.
102 GLOBAL NON-INLINE (EXTERN) FUNCTIONS AND VARIABLES:
104 These include functions with varargs parameters. It can
105 also include large rarely used functions that contribute
108 .h: extern int ourpkg_print
110 extern int a_global_variable;
112 .c: #if EXTERN_OURPKG_P
114 ourpkg_print (char *fmt,
121 int a_global_variable = 1;
125 LOCAL (STATIC) FUNCTIONS:
127 These can either be marked inline or just static static vis:
129 .h: STATIC_INLINE_OURPKG (int) ourpkg_staticf (void);
130 .c: STATIC_INLINE_OURPKG (int)
131 ourpkg_staticf (void)
136 .h: STATIC_OURPKG (int) ourpkg_staticf (void);
137 .c: STATIC_OURPKG (int)
138 ourpkg_staticf (void)
147 All modules must wrap their .h code in the following:
154 In addition, modules that want to allow global inlining must
155 include the lines (below) at the end of the .h file. (FIXME:
156 Shouldn't be needed).
158 #if H_REVEALS_MODULE_P (OURPKG_INLINE)
165 All modules must wrap their .c code in the following
177 Since no inlining is defined. All macro's get standard defaults
178 (extern, static, ...).
182 H_REVEALS_MODULE (alt includes our):
185 altprog.c defines ALTPROG_C and then includes sim-inline.h.
187 In sim-inline.h the expression `` H_REVEALS_MODULE_P
188 (OURPROG_INLINE) && ! defined (OURPROG_C) && REVEAL_MODULE_P
189 (OURPROG_INLINE) '' is TRUE so it defines *_OURPROG as static
190 and EXTERN_OURPROG_P as FALSE.
192 altprog.c includes ourprog.h.
194 In ourprog.h the expression ``H_REVEALS_MODULE_P
195 (OURPROG_INLINE)'' is TRUE so it includes ourprog.c.
197 Consequently, all the code in ourprog.c is visible and static in
202 H_REVEALS_MODULE (our includes our):
205 ourprog.c defines OURPROG_C and then includes sim-inline.h.
207 In sim-inline.h the term `` ! defined (OURPROG_C) '' is FALSE so
208 it defines *_OURPROG as non-static and EXTERN_OURPROG_P as TRUE.
210 ourprog.c includes ourprog.h.
212 In ourprog.h the expression ``H_REVEALS_MODULE_P
213 (OURPROG_INLINE)'' is true so it includes ourprog.c.
215 In ourprog.c (second include) the expression defined (OURPROG_C)
216 and so the body is not re-included.
218 Consequently, ourprog.o will contain a non-static copy of all
219 the exported symbols.
223 C_REVEALS_MODULE (alt includes our):
226 altprog.c defines ALTPROG_C and then includes sim-inline.c
228 sim-inline.c defines C_INLINE_C and then includes sim-inline.h
230 In sim-inline.h the expression `` defined (SIM_INLINE) && !
231 defined (OURPROG_C) && REVEAL_MODULE_P (OURPROG_INLINE) '' is
232 true so it defines *_OURPROG as static and EXTERN_OURPROG_P as
235 In sim-inline.c the expression ``C_REVEALS_MODULE_P
236 (OURPROG_INLINE)'' is true so it includes ourprog.c.
238 Consequently, all the code in ourprog.c is visible and static in
243 C_REVEALS_MODULE (our includes our):
246 ourprog.c defines OURPROG_C and then includes sim-inline.c
248 sim-inline.c defines C_INLINE_C and then includes sim-inline.h
250 In sim-inline.h the term `` ! defined (OURPROG_C) '' is FALSE
251 so it defines *_OURPROG as non-static and EXTERN_OURPROG_P as
254 Consequently, ourprog.o will contain a non-static copy of all
255 the exported symbols.
261 This is not for the faint hearted. I've seen GCC get up to 500mb
262 trying to compile what this can create. */
264 #define H_REVEALS_MODULE 1
265 #define C_REVEALS_MODULE 2
266 #define INLINE_GLOBALS 4
267 #define INLINE_LOCALS 8
269 #define REGPARM_MODULE 32
271 #define ALL_H_INLINE (H_REVEALS_MODULE | INLINE_GLOBALS | INLINE_LOCALS)
272 #define ALL_C_INLINE (C_REVEALS_MODULE | INLINE_GLOBALS | INLINE_LOCALS)
275 /* Default macro to simplify control several of key the inlines */
277 #ifndef DEFAULT_INLINE
278 #define DEFAULT_INLINE INLINE_LOCALS
281 #define REVEAL_MODULE_P(X) (X & (H_REVEALS_MODULE | C_REVEALS_MODULE))
282 #define H_REVEALS_MODULE_P(X) ((X & H_REVEALS_MODULE))
283 #define C_REVEALS_MODULE_P(X) ((X & C_REVEALS_MODULE))
293 /* Your compilers inline prefix */
296 #if defined (__GNUC__) && defined (__OPTIMIZE__)
297 #define INLINE __inline__
299 #define INLINE /*inline*/
303 /* ??? Temporary, pending decision to always use extern inline and do a vast
304 cleanup of inline support. */
306 #if defined (__GNUC_GNU_INLINE__) || defined (__GNUC_STDC_INLINE__)
307 #define INLINE2 __inline__ __attribute__ ((__gnu_inline__))
308 #elif defined (__GNUC__)
309 #define INLINE2 __inline__
311 #define INLINE2 /*inline*/
316 /* Your compiler's static inline prefix */
318 #ifndef STATIC_INLINE
319 #define STATIC_INLINE static INLINE
323 /* Your compiler's extern inline prefix */
325 #ifndef EXTERN_INLINE
326 #define EXTERN_INLINE extern INLINE2
330 /* Your compiler's no-return reserved word */
338 /* Your compilers's unused reserved word */
340 #if !defined (UNUSED)
341 #if (!defined (__GNUC__) \
343 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7))
346 #define UNUSED __attribute__((__unused__))
353 /* Your compilers nonstandard function call mechanism prefix */
356 #if defined (__GNUC__) && (defined (__i386__) || defined (__i486__) || defined (__i586__) || defined (__i686__))
357 #if (WITH_REGPARM && WITH_STDCALL)
358 #define REGPARM __attribute__((__regparm__(WITH_REGPARM),__stdcall__))
360 #if (WITH_REGPARM && !WITH_STDCALL)
361 #define REGPARM __attribute__((__regparm__(WITH_REGPARM)))
363 #if (!WITH_REGPARM && WITH_STDCALL)
364 #define REGPARM __attribute__((__stdcall__))
378 sim-bits and sim-endian are treated differently from the rest
379 of the modules below. Their default value is ALL_H_INLINE.
380 The rest are ALL_C_INLINE. Don't blink, you'll miss it!
386 #if !defined (SIM_BITS_INLINE) && (DEFAULT_INLINE)
387 # define SIM_BITS_INLINE (ALL_H_INLINE)
390 #if (SIM_BITS_INLINE & REGPARM_MODULE)
391 # define REGPARM_SIM_BITS REGPARM
393 # define REGPARM_SIM_BITS
396 #if ((H_REVEALS_MODULE_P (SIM_BITS_INLINE) || defined (SIM_INLINE_C)) \
397 && !defined (SIM_BITS_C) \
398 && (REVEAL_MODULE_P (SIM_BITS_INLINE)))
399 # if (SIM_BITS_INLINE & INLINE_GLOBALS)
400 # define INLINE_SIM_BITS(TYPE) static INLINE TYPE UNUSED
401 # define EXTERN_SIM_BITS_P 0
403 # define INLINE_SIM_BITS(TYPE) static TYPE UNUSED REGPARM_SIM_BITS
404 # define EXTERN_SIM_BITS_P 0
407 # define INLINE_SIM_BITS(TYPE) TYPE REGPARM_SIM_BITS
408 # define EXTERN_SIM_BITS_P 1
411 #if (SIM_BITS_INLINE & INLINE_LOCALS)
412 # define STATIC_INLINE_SIM_BITS(TYPE) static INLINE TYPE
414 # define STATIC_INLINE_SIM_BITS(TYPE) static TYPE REGPARM_SIM_BITS
417 #define STATIC_SIM_BITS(TYPE) static TYPE
423 #if !defined (SIM_CORE_INLINE) && (DEFAULT_INLINE)
424 # define SIM_CORE_INLINE ALL_C_INLINE
427 #if (SIM_CORE_INLINE & REGPARM_MODULE)
428 # define REGPARM_SIM_CORE REGPARM
430 # define REGPARM_SIM_CORE
433 #if ((H_REVEALS_MODULE_P (SIM_CORE_INLINE) || defined (SIM_INLINE_C)) \
434 && !defined (SIM_CORE_C) \
435 && (REVEAL_MODULE_P (SIM_CORE_INLINE)))
436 # if (SIM_CORE_INLINE & INLINE_GLOBALS)
437 # define INLINE_SIM_CORE(TYPE) static INLINE TYPE UNUSED
438 # define EXTERN_SIM_CORE_P 0
440 # define INLINE_SIM_CORE(TYPE) static TYPE UNUSED REGPARM_SIM_CORE
441 # define EXTERN_SIM_CORE_P 0
444 # define INLINE_SIM_CORE(TYPE) TYPE REGPARM_SIM_CORE
445 # define EXTERN_SIM_CORE_P 1
448 #if (SIM_CORE_INLINE & INLINE_LOCALS)
449 # define STATIC_INLINE_SIM_CORE(TYPE) static INLINE TYPE
451 # define STATIC_INLINE_SIM_CORE(TYPE) static TYPE REGPARM_SIM_CORE
454 #define STATIC_SIM_CORE(TYPE) static TYPE
460 #if !defined (SIM_ENDIAN_INLINE) && (DEFAULT_INLINE)
461 # define SIM_ENDIAN_INLINE ALL_H_INLINE
464 #if (SIM_ENDIAN_INLINE & REGPARM_MODULE)
465 # define REGPARM_SIM_ENDIAN REGPARM
467 # define REGPARM_SIM_ENDIAN
470 #if ((H_REVEALS_MODULE_P (SIM_ENDIAN_INLINE) || defined (SIM_INLINE_C)) \
471 && !defined (SIM_ENDIAN_C) \
472 && (REVEAL_MODULE_P (SIM_ENDIAN_INLINE)))
473 # if (SIM_ENDIAN_INLINE & INLINE_GLOBALS)
474 # define INLINE_SIM_ENDIAN(TYPE) static INLINE TYPE UNUSED
475 # define EXTERN_SIM_ENDIAN_P 0
477 # define INLINE_SIM_ENDIAN(TYPE) static TYPE UNUSED REGPARM_SIM_ENDIAN
478 # define EXTERN_SIM_ENDIAN_P 0
481 # define INLINE_SIM_ENDIAN(TYPE) TYPE REGPARM_SIM_ENDIAN
482 # define EXTERN_SIM_ENDIAN_P 1
485 #if (SIM_ENDIAN_INLINE & INLINE_LOCALS)
486 # define STATIC_INLINE_SIM_ENDIAN(TYPE) static INLINE TYPE
488 # define STATIC_INLINE_SIM_ENDIAN(TYPE) static TYPE REGPARM_SIM_ENDIAN
491 #define STATIC_SIM_ENDIAN(TYPE) static TYPE
497 #if !defined (SIM_EVENTS_INLINE) && (DEFAULT_INLINE)
498 # define SIM_EVENTS_INLINE ALL_C_INLINE
501 #if (SIM_EVENTS_INLINE & REGPARM_MODULE)
502 # define REGPARM_SIM_EVENTS REGPARM
504 # define REGPARM_SIM_EVENTS
507 #if ((H_REVEALS_MODULE_P (SIM_EVENTS_INLINE) || defined (SIM_INLINE_C)) \
508 && !defined (SIM_EVENTS_C) \
509 && (REVEAL_MODULE_P (SIM_EVENTS_INLINE)))
510 # if (SIM_EVENTS_INLINE & INLINE_GLOBALS)
511 # define INLINE_SIM_EVENTS(TYPE) static INLINE TYPE UNUSED
512 # define EXTERN_SIM_EVENTS_P 0
514 # define INLINE_SIM_EVENTS(TYPE) static TYPE UNUSED REGPARM_SIM_EVENTS
515 # define EXTERN_SIM_EVENTS_P 0
518 # define INLINE_SIM_EVENTS(TYPE) TYPE REGPARM_SIM_EVENTS
519 # define EXTERN_SIM_EVENTS_P 1
522 #if (SIM_EVENTS_INLINE & INLINE_LOCALS)
523 # define STATIC_INLINE_SIM_EVENTS(TYPE) static INLINE TYPE
525 # define STATIC_INLINE_SIM_EVENTS(TYPE) static TYPE REGPARM_SIM_EVENTS
528 #define STATIC_SIM_EVENTS(TYPE) static TYPE
534 #if !defined (SIM_FPU_INLINE) && (DEFAULT_INLINE)
535 # define SIM_FPU_INLINE ALL_C_INLINE
538 #if (SIM_FPU_INLINE & REGPARM_MODULE)
539 # define REGPARM_SIM_FPU REGPARM
541 # define REGPARM_SIM_FPU
544 #if ((H_REVEALS_MODULE_P (SIM_FPU_INLINE) || defined (SIM_INLINE_C)) \
545 && !defined (SIM_FPU_C) \
546 && (REVEAL_MODULE_P (SIM_FPU_INLINE)))
547 # if (SIM_FPU_INLINE & INLINE_GLOBALS)
548 # define INLINE_SIM_FPU(TYPE) static INLINE TYPE UNUSED
549 # define EXTERN_SIM_FPU_P 0
551 # define INLINE_SIM_FPU(TYPE) static TYPE UNUSED REGPARM_SIM_FPU
552 # define EXTERN_SIM_FPU_P 0
555 # define INLINE_SIM_FPU(TYPE) TYPE REGPARM_SIM_FPU
556 # define EXTERN_SIM_FPU_P 1
559 #if (SIM_FPU_INLINE & INLINE_LOCALS)
560 # define STATIC_INLINE_SIM_FPU(TYPE) static INLINE TYPE
562 # define STATIC_INLINE_SIM_FPU(TYPE) static TYPE REGPARM_SIM_FPU
565 #define STATIC_SIM_FPU(TYPE) static TYPE
571 #if (SIM_TYPES_INLINE & REGPARM_MODULE)
572 # define REGPARM_SIM_TYPES REGPARM
574 # define REGPARM_SIM_TYPES
577 #if ((H_REVEALS_MODULE_P (SIM_TYPES_INLINE) || defined (SIM_INLINE_C)) \
578 && !defined (SIM_TYPES_C) \
579 && (REVEAL_MODULE_P (SIM_TYPES_INLINE)))
580 # if (SIM_TYPES_INLINE & INLINE_GLOBALS)
581 # define INLINE_SIM_TYPES(TYPE) static INLINE TYPE UNUSED
582 # define EXTERN_SIM_TYPES_P 0
584 # define INLINE_SIM_TYPES(TYPE) static TYPE UNUSED REGPARM_SIM_TYPES
585 # define EXTERN_SIM_TYPES_P 0
588 # define INLINE_SIM_TYPES(TYPE) TYPE REGPARM_SIM_TYPES
589 # define EXTERN_SIM_TYPES_P 1
592 #if (SIM_TYPES_INLINE & INLINE_LOCALS)
593 # define STATIC_INLINE_SIM_TYPES(TYPE) static INLINE TYPE
595 # define STATIC_INLINE_SIM_TYPES(TYPE) static TYPE REGPARM_SIM_TYPES
598 #define STATIC_SIM_TYPES(TYPE) static TYPE
604 #if !defined (SIM_MAIN_INLINE) && (DEFAULT_INLINE)
605 # define SIM_MAIN_INLINE (ALL_C_INLINE)
608 #if (SIM_MAIN_INLINE & REGPARM_MODULE)
609 # define REGPARM_SIM_MAIN REGPARM
611 # define REGPARM_SIM_MAIN
614 #if ((H_REVEALS_MODULE_P (SIM_MAIN_INLINE) || defined (SIM_INLINE_C)) \
615 && !defined (SIM_MAIN_C) \
616 && (REVEAL_MODULE_P (SIM_MAIN_INLINE)))
617 # if (SIM_MAIN_INLINE & INLINE_GLOBALS)
618 # define INLINE_SIM_MAIN(TYPE) static INLINE TYPE UNUSED
619 # define EXTERN_SIM_MAIN_P 0
621 # define INLINE_SIM_MAIN(TYPE) static TYPE UNUSED REGPARM_SIM_MAIN
622 # define EXTERN_SIM_MAIN_P 0
625 # define INLINE_SIM_MAIN(TYPE) TYPE REGPARM_SIM_MAIN
626 # define EXTERN_SIM_MAIN_P 1
629 #if (SIM_MAIN_INLINE & INLINE_LOCALS)
630 # define STATIC_INLINE_SIM_MAIN(TYPE) static INLINE TYPE
632 # define STATIC_INLINE_SIM_MAIN(TYPE) static TYPE REGPARM_SIM_MAIN
635 #define STATIC_SIM_MAIN(TYPE) static TYPE
639 #if (ENGINE_INLINE & REGPARM_MODULE)
640 # define REGPARM_ENGINE REGPARM
642 # define REGPARM_ENGINE
645 #if ((H_REVEALS_MODULE_P (ENGINE_INLINE) || defined (SIM_INLINE_C)) \
646 && !defined (ENGINE_C) \
647 && (REVEAL_MODULE_P (ENGINE_INLINE)))
648 # if (ENGINE_INLINE & INLINE_GLOBALS)
649 # define INLINE_ENGINE(TYPE) static INLINE TYPE UNUSED
650 # define EXTERN_ENGINE_P 0
652 # define INLINE_ENGINE(TYPE) static TYPE UNUSED REGPARM_ENGINE
653 # define EXTERN_ENGINE_P 0
656 # define INLINE_ENGINE(TYPE) TYPE REGPARM_ENGINE
657 # define EXTERN_ENGINE_P 1
660 #if (ENGINE_INLINE & INLINE_LOCALS)
661 # define STATIC_INLINE_ENGINE(TYPE) static INLINE TYPE
663 # define STATIC_INLINE_ENGINE(TYPE) static TYPE REGPARM_ENGINE
666 #define STATIC_ENGINE(TYPE) static TYPE
672 #if (ICACHE_INLINE & REGPARM_MODULE)
673 # define REGPARM_ICACHE REGPARM
675 # define REGPARM_ICACHE
678 #if ((H_REVEALS_MODULE_P (ICACHE_INLINE) || defined (SIM_INLINE_C)) \
679 && !defined (ICACHE_C) \
680 && (REVEAL_MODULE_P (ICACHE_INLINE)))
681 # if (ICACHE_INLINE & INLINE_GLOBALS)
682 # define INLINE_ICACHE(TYPE) static INLINE TYPE UNUSED
683 # define EXTERN_ICACHE_P 0
685 # define INLINE_ICACHE(TYPE) static TYPE UNUSED REGPARM_ICACHE
686 # define EXTERN_ICACHE_P 0
689 # define INLINE_ICACHE(TYPE) TYPE REGPARM_ICACHE
690 # define EXTERN_ICACHE_P 1
693 #if (ICACHE_INLINE & INLINE_LOCALS)
694 # define STATIC_INLINE_ICACHE(TYPE) static INLINE TYPE
696 # define STATIC_INLINE_ICACHE(TYPE) static TYPE REGPARM_ICACHE
699 #define STATIC_ICACHE(TYPE) static TYPE
705 #if (IDECODE_INLINE & REGPARM_MODULE)
706 # define REGPARM_IDECODE REGPARM
708 # define REGPARM_IDECODE
711 #if ((H_REVEALS_MODULE_P (IDECODE_INLINE) || defined (SIM_INLINE_C)) \
712 && !defined (IDECODE_C) \
713 && (REVEAL_MODULE_P (IDECODE_INLINE)))
714 # if (IDECODE_INLINE & INLINE_GLOBALS)
715 # define INLINE_IDECODE(TYPE) static INLINE TYPE UNUSED
716 # define EXTERN_IDECODE_P 0
718 # define INLINE_IDECODE(TYPE) static TYPE UNUSED REGPARM_IDECODE
719 # define EXTERN_IDECODE_P 0
722 # define INLINE_IDECODE(TYPE) TYPE REGPARM_IDECODE
723 # define EXTERN_IDECODE_P 1
726 #if (IDECODE_INLINE & INLINE_LOCALS)
727 # define STATIC_INLINE_IDECODE(TYPE) static INLINE TYPE
729 # define STATIC_INLINE_IDECODE(TYPE) static TYPE REGPARM_IDECODE
732 #define STATIC_IDECODE(TYPE) static TYPE
738 #if (SEMANTICS_INLINE & REGPARM_MODULE)
739 # define REGPARM_SEMANTICS REGPARM
741 # define REGPARM_SEMANTICS
744 #if ((H_REVEALS_MODULE_P (SEMANTICS_INLINE) || defined (SIM_INLINE_C)) \
745 && !defined (SEMANTICS_C) \
746 && (REVEAL_MODULE_P (SEMANTICS_INLINE)))
747 # if (SEMANTICS_INLINE & INLINE_GLOBALS)
748 # define INLINE_SEMANTICS(TYPE) static INLINE TYPE UNUSED
749 # define EXTERN_SEMANTICS_P 0
751 # define INLINE_SEMANTICS(TYPE) static TYPE UNUSED REGPARM_SEMANTICS
752 # define EXTERN_SEMANTICS_P 0
755 # define INLINE_SEMANTICS(TYPE) TYPE REGPARM_SEMANTICS
756 # define EXTERN_SEMANTICS_P 1
759 #if EXTERN_SEMANTICS_P
760 # define EXTERN_SEMANTICS(TYPE) TYPE REGPARM_SEMANTICS
762 # define EXTERN_SEMANTICS(TYPE) static TYPE UNUSED REGPARM_SEMANTICS
765 #if (SEMANTICS_INLINE & INLINE_LOCALS)
766 # define STATIC_INLINE_SEMANTICS(TYPE) static INLINE TYPE
768 # define STATIC_INLINE_SEMANTICS(TYPE) static TYPE REGPARM_SEMANTICS
771 #define STATIC_SEMANTICS(TYPE) static TYPE
777 #if !defined (SUPPORT_INLINE) && (DEFAULT_INLINE)
778 # define SUPPORT_INLINE ALL_C_INLINE
781 #if (SUPPORT_INLINE & REGPARM_MODULE)
782 # define REGPARM_SUPPORT REGPARM
784 # define REGPARM_SUPPORT
787 #if ((H_REVEALS_MODULE_P (SUPPORT_INLINE) || defined (SIM_INLINE_C)) \
788 && !defined (SUPPORT_C) \
789 && (REVEAL_MODULE_P (SUPPORT_INLINE)))
790 # if (SUPPORT_INLINE & INLINE_GLOBALS)
791 # define INLINE_SUPPORT(TYPE) static INLINE TYPE UNUSED
792 # define EXTERN_SUPPORT_P 0
794 # define INLINE_SUPPORT(TYPE) static TYPE UNUSED REGPARM_SUPPORT
795 # define EXTERN_SUPPORT_P 0
798 # define INLINE_SUPPORT(TYPE) TYPE REGPARM_SUPPORT
799 # define EXTERN_SUPPORT_P 1
802 #if (SUPPORT_INLINE & INLINE_LOCALS)
803 # define STATIC_INLINE_SUPPORT(TYPE) static INLINE TYPE
805 # define STATIC_INLINE_SUPPORT(TYPE) static TYPE REGPARM_SUPPORT
808 #define STATIC_SUPPORT(TYPE) static TYPE