OSDN Git Service

a0a3961b7b635e9de1108d866c269919ecdc5a51
[pf3gnuchains/gcc-fork.git] / gcc / config / stormy16 / stormy16.h
1 /* Stormy16 cpu description.
2    Copyright (C) 1997, 1998, 1999, 2000, 2001
3    Free Software Foundation, Inc.
4    Contributed by Red Hat, Inc.
5
6 This file is part of GNU CC.
7
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING.  If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.  */
22
23 \f
24 /* Set up System V.4 (aka ELF) defaults.  */
25 #include "svr4.h"
26
27 \f
28 /* Driver configuration */
29
30 /* A C expression which determines whether the option `-CHAR' takes arguments.
31    The value should be the number of arguments that option takes-zero, for many
32    options.
33
34    By default, this macro is defined to handle the standard options properly.
35    You need not define it unless you wish to add additional options which take
36    arguments.
37
38    Defined in svr4.h.  */
39 /* #define SWITCH_TAKES_ARG(CHAR) */
40
41 /* A C expression which determines whether the option `-NAME' takes arguments.
42    The value should be the number of arguments that option takes-zero, for many
43    options.  This macro rather than `SWITCH_TAKES_ARG' is used for
44    multi-character option names.
45
46    By default, this macro is defined as `DEFAULT_WORD_SWITCH_TAKES_ARG', which
47    handles the standard options properly.  You need not define
48    `WORD_SWITCH_TAKES_ARG' unless you wish to add additional options which take
49    arguments.  Any redefinition should call `DEFAULT_WORD_SWITCH_TAKES_ARG' and
50    then check for additional options.
51
52    Defined in svr4.h.  */
53 /* #define WORD_SWITCH_TAKES_ARG(NAME) */
54
55 /* A string-valued C expression which is nonempty if the linker needs a space
56    between the `-L' or `-o' option and its argument.
57
58    If this macro is not defined, the default value is 0.  */
59 /* #define SWITCHES_NEED_SPACES "" */
60
61 /* A C string constant that tells the GNU CC driver program options to pass to
62    CPP.  It can also specify how to translate options you give to GNU CC into
63    options for GNU CC to pass to the CPP.
64
65    Do not define this macro if it does not need to do anything.  */
66 /* #define CPP_SPEC "" */
67
68 /* If this macro is defined, the preprocessor will not define the builtin macro
69    `__SIZE_TYPE__'.  The macro `__SIZE_TYPE__' must then be defined by
70    `CPP_SPEC' instead.
71
72    This should be defined if `SIZE_TYPE' depends on target dependent flags
73    which are not accessible to the preprocessor.  Otherwise, it should not be
74    defined.  */
75 /* #define NO_BUILTIN_SIZE_TYPE */
76
77 /* If this macro is defined, the preprocessor will not define the builtin macro
78    `__PTRDIFF_TYPE__'.  The macro `__PTRDIFF_TYPE__' must then be defined by
79    `CPP_SPEC' instead.
80
81    This should be defined if `PTRDIFF_TYPE' depends on target dependent flags
82    which are not accessible to the preprocessor.  Otherwise, it should not be
83    defined.  */
84 /* #define NO_BUILTIN_PTRDIFF_TYPE */
85
86 /* A C string constant that tells the GNU CC driver program options to pass to
87    CPP.  By default, this macro is defined to pass the option
88    `-D__CHAR_UNSIGNED__' to CPP if `char' will be treated as `unsigned char' by
89    `cc1'.
90
91    Do not define this macro unless you need to override the default definition.  */
92 /* #if DEFAULT_SIGNED_CHAR
93    #define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}"
94    #else
95    #define SIGNED_CHAR_SPEC "%{!fsigned-char:-D__CHAR_UNSIGNED__}"
96    #endif */
97
98 /* A C string constant that tells the GNU CC driver program options to pass to
99    `cc1'.  It can also specify how to translate options you give to GNU CC into
100    options for GNU CC to pass to the `cc1'.
101
102    Do not define this macro if it does not need to do anything.  */
103 /* #define CC1_SPEC "" */
104
105 /* A C string constant that tells the GNU CC driver program options to pass to
106    `cc1plus'.  It can also specify how to translate options you give to GNU CC
107    into options for GNU CC to pass to the `cc1plus'.
108
109    Do not define this macro if it does not need to do anything.  */
110 /* #define CC1PLUS_SPEC "" */
111
112 /* A C string constant that tells the GNU CC driver program options to pass to
113    the assembler.  It can also specify how to translate options you give to GNU
114    CC into options for GNU CC to pass to the assembler.  See the file `sun3.h'
115    for an example of this.
116
117    Do not define this macro if it does not need to do anything.
118
119    Defined in svr4.h.  */
120 #undef ASM_SPEC
121
122 /* A C string constant that tells the GNU CC driver program how to run any
123    programs which cleanup after the normal assembler.  Normally, this is not
124    needed.  See the file `mips.h' for an example of this.
125
126    Do not define this macro if it does not need to do anything.
127
128    Defined in svr4.h.  */
129 /* #define ASM_FINAL_SPEC "" */
130
131 /* A C string constant that tells the GNU CC driver program options to pass to
132    the linker.  It can also specify how to translate options you give to GNU CC
133    into options for GNU CC to pass to the linker.
134
135    Do not define this macro if it does not need to do anything.
136
137    Defined in svr4.h.  */
138 /* #define LINK_SPEC "" */
139
140 /* Another C string constant used much like `LINK_SPEC'.  The difference
141    between the two is that `LIB_SPEC' is used at the end of the command given
142    to the linker.
143
144    If this macro is not defined, a default is provided that loads the standard
145    C library from the usual place.  See `gcc.c'.
146
147    Defined in svr4.h.  */
148 #undef LIB_SPEC
149 #define LIB_SPEC "-( -lc %{msim:-lsim} -)"
150
151 /* Another C string constant that tells the GNU CC driver program how and when
152    to place a reference to `libgcc.a' into the linker command line.  This
153    constant is placed both before and after the value of `LIB_SPEC'.
154
155    If this macro is not defined, the GNU CC driver provides a default that
156    passes the string `-lgcc' to the linker unless the `-shared' option is
157    specified.  */
158 /* #define LIBGCC_SPEC "" */
159
160 /* Another C string constant used much like `LINK_SPEC'.  The difference
161    between the two is that `STARTFILE_SPEC' is used at the very beginning of
162    the command given to the linker.
163
164    If this macro is not defined, a default is provided that loads the standard
165    C startup file from the usual place.  See `gcc.c'.
166
167    Defined in svr4.h.  */
168 #undef STARTFILE_SPEC
169 #define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s"
170
171 /* Another C string constant used much like `LINK_SPEC'.  The difference
172    between the two is that `ENDFILE_SPEC' is used at the very end of the
173    command given to the linker.
174
175    Do not define this macro if it does not need to do anything.
176
177    Defined in svr4.h.  */
178 #undef ENDFILE_SPEC
179 #define ENDFILE_SPEC "crtend.o%s crtn.o%s"
180
181 /* Define this macro if the driver program should find the library `libgcc.a'
182    itself and should not pass `-L' options to the linker.  If you do not define
183    this macro, the driver program will pass the argument `-lgcc' to tell the
184    linker to do the search and will pass `-L' options to it.  */
185 /* #define LINK_LIBGCC_SPECIAL */
186
187 /* Define this macro if the driver program should find the library `libgcc.a'.
188    If you do not define this macro, the driver program will pass the argument
189    `-lgcc' to tell the linker to do the search.  This macro is similar to
190    `LINK_LIBGCC_SPECIAL', except that it does not affect `-L' options.  */
191 /* #define LINK_LIBGCC_SPECIAL_1 */
192
193 /* Define this macro to provide additional specifications to put in the `specs'
194    file that can be used in various specifications like `CC1_SPEC'.
195
196    The definition should be an initializer for an array of structures,
197    containing a string constant, that defines the specification name, and a
198    string constant that provides the specification.
199
200    Do not define this macro if it does not need to do anything.  */
201 /* #define EXTRA_SPECS {{}} */
202
203 /* Define this macro as a C expression for the initializer of an array of
204    string to tell the driver program which options are defaults for this target
205    and thus do not need to be handled specially when using `MULTILIB_OPTIONS'.
206
207    Do not define this macro if `MULTILIB_OPTIONS' is not defined in the target
208    makefile fragment or if none of the options listed in `MULTILIB_OPTIONS' are
209    set by default.  */
210 /* #define MULTILIB_DEFAULTS {} */
211
212 /* Define this macro to tell `gcc' that it should only translate a `-B' prefix
213    into a `-L' linker option if the prefix indicates an absolute file name. */
214 /* #define RELATIVE_PREFIX_NOT_LINKDIR */
215
216 /* Define this macro as a C string constant if you wish to override the
217    standard choice of `/usr/local/lib/gcc-lib/' as the default prefix to try
218    when searching for the executable files of the compiler. */
219 /* #define STANDARD_EXEC_PREFIX "" */
220
221 /* If defined, this macro is an additional prefix to try after
222    `STANDARD_EXEC_PREFIX'.  `MD_EXEC_PREFIX' is not searched when the `-b'
223    option is used, or the compiler is built as a cross compiler.
224
225    Defined in svr4.h for host compilers.  */
226 /* #define MD_EXEC_PREFIX "" */
227
228 /* Define this macro as a C string constant if you wish to override the
229    standard choice of `/usr/local/lib/' as the default prefix to try when
230    searching for startup files such as `crt0.o'. */
231 /* #define STANDARD_STARTFILE_PREFIX "" */
232
233 /* If defined, this macro supplies an additional prefix to try after the
234    standard prefixes.  `MD_EXEC_PREFIX' is not searched when the `-b' option is
235    used, or when the compiler is built as a cross compiler.
236
237    Defined in svr4.h for host compilers.  */
238 /* #define MD_STARTFILE_PREFIX "" */
239
240 /* If defined, this macro supplies yet another prefix to try after the standard
241    prefixes.  It is not searched when the `-b' option is used, or when the
242    compiler is built as a cross compiler. */
243 /* #define MD_STARTFILE_PREFIX_1 "" */
244
245 /* Define this macro as a C string constant if you with to set environment
246    variables for programs called by the driver, such as the assembler and
247    loader.  The driver passes the value of this macro to `putenv' to initialize
248    the necessary environment variables. */
249 /* #define INIT_ENVIRONMENT "" */
250
251 /* Define this macro as a C string constant if you wish to override the
252    standard choice of `/usr/local/include' as the default prefix to try when
253    searching for local header files.  `LOCAL_INCLUDE_DIR' comes before
254    `SYSTEM_INCLUDE_DIR' in the search order.
255
256    Cross compilers do not use this macro and do not search either
257    `/usr/local/include' or its replacement.  */
258 /* #define LOCAL_INCLUDE_DIR "" */
259
260 /* Define this macro as a C string constant if you wish to specify a
261    system-specific directory to search for header files before the standard
262    directory.  `SYSTEM_INCLUDE_DIR' comes before `STANDARD_INCLUDE_DIR' in the
263    search order.
264
265    Cross compilers do not use this macro and do not search the directory
266    specified. */
267 /* #define SYSTEM_INCLUDE_DIR "" */
268
269 /* Define this macro as a C string constant if you wish to override the
270    standard choice of `/usr/include' as the default prefix to try when
271    searching for header files.
272
273    Cross compilers do not use this macro and do not search either
274    `/usr/include' or its replacement. */
275 /* #define STANDARD_INCLUDE_DIR "" */
276
277 /* Define this macro if you wish to override the entire default search path for
278    include files.  The default search path includes `GCC_INCLUDE_DIR',
279    `LOCAL_INCLUDE_DIR', `SYSTEM_INCLUDE_DIR', `GPLUSPLUS_INCLUDE_DIR', and
280    `STANDARD_INCLUDE_DIR'.  In addition, `GPLUSPLUS_INCLUDE_DIR' and
281    `GCC_INCLUDE_DIR' are defined automatically by `Makefile', and specify
282    private search areas for GCC.  The directory `GPLUSPLUS_INCLUDE_DIR' is used
283    only for C++ programs.
284
285      The definition should be an initializer for an array of structures.  Each
286      array element should have two elements: the directory name (a string
287      constant) and a flag for C++-only directories.  Mark the end of the array
288      with a null element.  For example, here is the definition used for VMS:
289
290           #define INCLUDE_DEFAULTS \
291           {                                       \
292             { "GNU_GXX_INCLUDE:", 1},             \
293             { "GNU_CC_INCLUDE:", 0},              \
294             { "SYS$SYSROOT:[SYSLIB.]", 0},        \
295             { ".", 0},                            \
296             { 0, 0}                               \
297           }
298
299    Here is the order of prefixes tried for exec files:
300
301   1. Any prefixes specified by the user with `-B'.
302
303   2. The environment variable `GCC_EXEC_PREFIX', if any.
304
305   3. The directories specified by the environment variable
306      `COMPILER_PATH'.
307
308   4. The macro `STANDARD_EXEC_PREFIX'.
309
310   5. `/usr/lib/gcc/'.
311
312   6. The macro `MD_EXEC_PREFIX', if any.
313
314    Here is the order of prefixes tried for startfiles:
315
316   1. Any prefixes specified by the user with `-B'.
317
318   2. The environment variable `GCC_EXEC_PREFIX', if any.
319
320   3. The directories specified by the environment variable
321      `LIBRARY_PATH' (native only, cross compilers do not use this).
322
323   4. The macro `STANDARD_EXEC_PREFIX'.
324
325   5. `/usr/lib/gcc/'.
326
327   6. The macro `MD_EXEC_PREFIX', if any.
328
329   7. The macro `MD_STARTFILE_PREFIX', if any.
330
331   8. The macro `STANDARD_STARTFILE_PREFIX'.
332
333   9. `/lib/'.
334
335  10. `/usr/lib/'.  */
336 /* #define INCLUDE_DEFAULTS {{ }} */
337
338 \f
339 /* Run-time target specifications */
340
341 /* Define this to be a string constant containing `-D' options to define the
342    predefined macros that identify this machine and system.  These macros will
343    be predefined unless the `-ansi' option is specified.
344
345    In addition, a parallel set of macros are predefined, whose names are made
346    by appending `__' at the beginning and at the end.  These `__' macros are
347    permitted by the ANSI standard, so they are predefined regardless of whether
348    `-ansi' is specified.
349
350    For example, on the Sun, one can use the following value:
351
352         "-Dmc68000 -Dsun -Dunix"
353
354    The result is to define the macros `__mc68000__', `__sun__' and `__unix__'
355    unconditionally, and the macros `mc68000', `sun' and `unix' provided `-ansi'
356    is not specified.  */
357 #define CPP_PREDEFINES "-Dstormy16 -Amachine=stormy16 -D__INT_MAX__=32767"
358
359 /* This declaration should be present.  */
360 extern int target_flags;
361
362 /* This series of macros is to allow compiler command arguments to enable or
363    disable the use of optional features of the target machine.  For example,
364    one machine description serves both the 68000 and the 68020; a command
365    argument tells the compiler whether it should use 68020-only instructions or
366    not.  This command argument works by means of a macro `TARGET_68020' that
367    tests a bit in `target_flags'.
368
369    Define a macro `TARGET_FEATURENAME' for each such option.  Its definition
370    should test a bit in `target_flags'; for example:
371
372         #define TARGET_68020 (target_flags & 1)
373
374    One place where these macros are used is in the condition-expressions of
375    instruction patterns.  Note how `TARGET_68020' appears frequently in the
376    68000 machine description file, `m68k.md'.  Another place they are used is
377    in the definitions of the other macros in the `MACHINE.h' file.  */
378 /* #define TARGET_... */
379
380 /* This macro defines names of command options to set and clear bits in
381    `target_flags'.  Its definition is an initializer with a subgrouping for
382    each command option.
383
384    Each subgrouping contains a string constant, that defines the
385    option name, a number, which contains the bits to set in
386    `target_flags', and an optional second string which is the textual
387    description that will be displayed when the user passes --help on
388    the command line.  If the number entry is negative then the
389    specified bits will be cleared instead of being set.  If the second
390    string entry is present but empty, then no help information will be
391    displayed for that option, but it will not count as an undocumented
392    option.  The actual option name, as seen on the command line is
393    made by appending `-m' to the specified name.
394
395    One of the subgroupings should have a null string.  The number in this
396    grouping is the default value for `target_flags'.  Any target options act
397    starting with that value.
398
399    Here is an example which defines `-m68000' and `-m68020' with opposite
400    meanings, and picks the latter as the default:
401
402         #define TARGET_SWITCHES \
403           { { "68020",  1, ""},      \
404             { "68000", -1, "Compile for the m68000"},     \
405             { "",       1, }}
406
407    This declaration must be present.  */
408
409 #define TARGET_SWITCHES                                 \
410   {{ "sim", 0, "Provide libraries for the simulator" }, \
411    { "", 0, "" }}
412
413 /* This macro is similar to `TARGET_SWITCHES' but defines names of command
414    options that have values.  Its definition is an initializer with a
415    subgrouping for each command option.
416
417    Each subgrouping contains a string constant, that defines the fixed part of
418    the option name, the address of a variable, and an optional description string.
419    The variable, of type `char *', is set to the text following the fixed part of
420    the option as it is specified on the command line.  The actual option name is
421    made by appending `-m' to the specified name.
422
423    Here is an example which defines `-mshort-data-NUMBER'.  If the given option
424    is `-mshort-data-512', the variable `m88k_short_data' will be set to the
425    string `"512"'.
426
427         extern char *m88k_short_data;
428         #define TARGET_OPTIONS \
429          { { "short-data-", & m88k_short_data, \
430          "Specify the size of the short data section"  } }
431
432    This declaration is optional.  */
433 /* #define TARGET_OPTIONS */
434
435 /* This macro is a C statement to print on `stderr' a string describing the
436    particular machine description choice.  Every machine description should
437    define `TARGET_VERSION'.  For example:
438
439         #ifdef MOTOROLA
440         #define TARGET_VERSION \
441           fprintf (stderr, " (68k, Motorola syntax)");
442         #else
443         #define TARGET_VERSION \
444           fprintf (stderr, " (68k, MIT syntax)");
445         #endif  */
446 #define TARGET_VERSION fprintf (stderr, " (stormy16 cpu core)");
447
448 /* Sometimes certain combinations of command options do not make sense on a
449    particular target machine.  You can define a macro `OVERRIDE_OPTIONS' to
450    take account of this.  This macro, if defined, is executed once just after
451    all the command options have been parsed.
452
453    Don't use this macro to turn on various extra optimizations for `-O'.  That
454    is what `OPTIMIZATION_OPTIONS' is for.  */
455 /* #define OVERRIDE_OPTIONS */
456
457 /* Some machines may desire to change what optimizations are performed for
458    various optimization levels.  This macro, if defined, is executed once just
459    after the optimization level is determined and before the remainder of the
460    command options have been parsed.  Values set in this macro are used as the
461    default values for the other command line options.
462
463    LEVEL is the optimization level specified; 2 if `-O2' is specified, 1 if
464    `-O' is specified, and 0 if neither is specified.
465
466    SIZE is non-zero if `-Os' is specified, 0 otherwise.  
467
468    You should not use this macro to change options that are not
469    machine-specific.  These should uniformly selected by the same optimization
470    level on all supported machines.  Use this macro to enable machbine-specific
471    optimizations.
472
473    *Do not examine `write_symbols' in this macro!* The debugging options are
474    *not supposed to alter the generated code.  */
475 /* #define OPTIMIZATION_OPTIONS(LEVEL,SIZE) */
476
477 /* Define this macro if debugging can be performed even without a frame
478    pointer.  If this macro is defined, GNU CC will turn on the
479    `-fomit-frame-pointer' option whenever `-O' is specified.  */
480 #define CAN_DEBUG_WITHOUT_FP
481
482 \f
483 /* Storage Layout */
484
485 /* Define this macro to have the value 1 if the most significant bit in a byte
486    has the lowest number; otherwise define it to have the value zero.  This
487    means that bit-field instructions count from the most significant bit.  If
488    the machine has no bit-field instructions, then this must still be defined,
489    but it doesn't matter which value it is defined to.  This macro need not be
490    a constant.
491
492    This macro does not affect the way structure fields are packed into bytes or
493    words; that is controlled by `BYTES_BIG_ENDIAN'.  */
494 #define BITS_BIG_ENDIAN 1
495
496 /* Define this macro to have the value 1 if the most significant byte in a word
497    has the lowest number.  This macro need not be a constant.  */
498 #define BYTES_BIG_ENDIAN 0
499
500 /* Define this macro to have the value 1 if, in a multiword object, the most
501    significant word has the lowest number.  This applies to both memory
502    locations and registers; GNU CC fundamentally assumes that the order of
503    words in memory is the same as the order in registers.  This macro need not
504    be a constant.  */
505 #define WORDS_BIG_ENDIAN 0
506
507 /* Define this macro if WORDS_BIG_ENDIAN is not constant.  This must be a
508    constant value with the same meaning as WORDS_BIG_ENDIAN, which will be used
509    only when compiling libgcc2.c.  Typically the value will be set based on
510    preprocessor defines.  */
511 /* #define LIBGCC2_WORDS_BIG_ENDIAN */
512
513 /* Define this macro to have the value 1 if `DFmode', `XFmode' or `TFmode'
514    floating point numbers are stored in memory with the word containing the
515    sign bit at the lowest address; otherwise define it to have the value 0.
516    This macro need not be a constant.
517
518    You need not define this macro if the ordering is the same as for multi-word
519    integers.  */
520 /* #define FLOAT_WORDS_BIG_ENDIAN */
521
522 /* Define this macro to be the number of bits in an addressable storage unit
523    (byte); normally 8.  */
524 #define BITS_PER_UNIT 8
525
526 /* Number of bits in a word; normally 32.  */
527 #define BITS_PER_WORD 16
528
529 /* Maximum number of bits in a word.  If this is undefined, the default is
530    `BITS_PER_WORD'.  Otherwise, it is the constant value that is the largest
531    value that `BITS_PER_WORD' can have at run-time.  */
532 /* #define MAX_BITS_PER_WORD */
533
534 /* Number of storage units in a word; normally 4.  */
535 #define UNITS_PER_WORD 2
536
537 /* Minimum number of units in a word.  If this is undefined, the default is
538    `UNITS_PER_WORD'.  Otherwise, it is the constant value that is the smallest
539    value that `UNITS_PER_WORD' can have at run-time.  */
540 /* #define MIN_UNITS_PER_WORD */
541
542 /* Width of a pointer, in bits.  You must specify a value no wider than the
543    width of `Pmode'.  If it is not equal to the width of `Pmode', you must
544    define `POINTERS_EXTEND_UNSIGNED'.  */
545 #define POINTER_SIZE 16
546
547 /* A C expression whose value is nonzero if pointers that need to be extended
548    from being `POINTER_SIZE' bits wide to `Pmode' are sign-extended and zero if
549    they are zero-extended.
550
551    You need not define this macro if the `POINTER_SIZE' is equal to the width
552    of `Pmode'.  */
553 /* #define POINTERS_EXTEND_UNSIGNED */
554
555 /* A macro to update MODE and UNSIGNEDP when an object whose type is TYPE and
556    which has the specified mode and signedness is to be stored in a register.
557    This macro is only called when TYPE is a scalar type.
558
559    On most RISC machines, which only have operations that operate on a full
560    register, define this macro to set M to `word_mode' if M is an integer mode
561    narrower than `BITS_PER_WORD'.  In most cases, only integer modes should be
562    widened because wider-precision floating-point operations are usually more
563    expensive than their narrower counterparts.
564
565    For most machines, the macro definition does not change UNSIGNEDP.  However,
566    some machines, have instructions that preferentially handle either signed or
567    unsigned quantities of certain modes.  For example, on the DEC Alpha, 32-bit
568    loads from memory and 32-bit add instructions sign-extend the result to 64
569    bits.  On such machines, set UNSIGNEDP according to which kind of extension
570    is more efficient.
571
572    Do not define this macro if it would never modify MODE.  */
573 #define PROMOTE_MODE(MODE,UNSIGNEDP,TYPE)                               \
574 do {                                                                    \
575   if (GET_MODE_CLASS (MODE) == MODE_INT                                 \
576       && GET_MODE_SIZE (MODE) < 2)                                      \
577     (MODE) = HImode;                                                    \
578 } while (0)
579
580 /* Define this macro if the promotion described by `PROMOTE_MODE' should also
581    be done for outgoing function arguments.  */
582 #define PROMOTE_FUNCTION_ARGS 1
583
584 /* Define this macro if the promotion described by `PROMOTE_MODE' should also
585    be done for the return value of functions.
586
587    If this macro is defined, `FUNCTION_VALUE' must perform the same promotions
588    done by `PROMOTE_MODE'.  */
589 #define PROMOTE_FUNCTION_RETURN 1
590
591 /* Define this macro if the promotion described by `PROMOTE_MODE' should *only*
592    be performed for outgoing function arguments or function return values, as
593    specified by `PROMOTE_FUNCTION_ARGS' and `PROMOTE_FUNCTION_RETURN',
594    respectively.  */
595 /* #define PROMOTE_FOR_CALL_ONLY */
596
597 /* Normal alignment required for function parameters on the stack, in bits.
598    All stack parameters receive at least this much alignment regardless of data
599    type.  On most machines, this is the same as the size of an integer.  */
600 #define PARM_BOUNDARY 16
601
602 /* Define this macro if you wish to preserve a certain alignment for the stack
603    pointer.  The definition is a C expression for the desired alignment
604    (measured in bits).
605
606    If `PUSH_ROUNDING' is not defined, the stack will always be aligned to the
607    specified boundary.  If `PUSH_ROUNDING' is defined and specifies a less
608    strict alignment than `STACK_BOUNDARY', the stack may be momentarily
609    unaligned while pushing arguments.  */
610 #define STACK_BOUNDARY 16
611
612 /* Alignment required for a function entry point, in bits.  */
613 #define FUNCTION_BOUNDARY 16
614
615 /* Biggest alignment that any data type can require on this machine,
616    in bits.  */
617 #define BIGGEST_ALIGNMENT 16
618
619 /* Biggest alignment that any structure field can require on this machine, in
620    bits.  If defined, this overrides `BIGGEST_ALIGNMENT' for structure fields
621    only.  */
622 /* #define BIGGEST_FIELD_ALIGNMENT */
623
624 /* An expression for the alignment of a structure field FIELD if the
625    alignment computed in the usual way is COMPUTED.  GNU CC uses this
626    value instead of the value in `BIGGEST_ALIGNMENT' or
627    `BIGGEST_FIELD_ALIGNMENT', if defined, for structure fields only.  */
628 /* #define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) */
629
630 /* Biggest alignment supported by the object file format of this machine.  Use
631    this macro to limit the alignment which can be specified using the
632    `__attribute__ ((aligned (N)))' construct.  If not defined, the default
633    value is `BIGGEST_ALIGNMENT'.
634
635    Defined in svr4.h.  */
636 /* #define MAX_OFILE_ALIGNMENT */
637
638 /* If defined, a C expression to compute the alignment for a static variable.
639    TYPE is the data type, and ALIGN is the alignment that the object
640    would ordinarily have.  The value of this macro is used instead of that
641    alignment to align the object.
642
643    If this macro is not defined, then ALIGN is used.
644
645    One use of this macro is to increase alignment of medium-size data to make
646    it all fit in fewer cache lines.  Another is to cause character arrays to be
647    word-aligned so that `strcpy' calls that copy constants to character arrays
648    can be done inline.  */
649 #define DATA_ALIGNMENT(TYPE, ALIGN)             \
650   (TREE_CODE (TYPE) == ARRAY_TYPE               \
651    && TYPE_MODE (TREE_TYPE (TYPE)) == QImode    \
652    && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))
653
654 /* If defined, a C expression to compute the alignment given to a constant that
655    is being placed in memory.  CONSTANT is the constant and ALIGN is the
656    alignment that the object would ordinarily have.  The value of this macro is
657    used instead of that alignment to align the object.
658
659    If this macro is not defined, then ALIGN is used.
660
661    The typical use of this macro is to increase alignment for string constants
662    to be word aligned so that `strcpy' calls that copy constants can be done
663    inline.  */
664 #define CONSTANT_ALIGNMENT(EXP, ALIGN)  \
665   (TREE_CODE (EXP) == STRING_CST        \
666    && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))
667
668 /* Alignment in bits to be given to a structure bit field that follows an empty
669    field such as `int : 0;'.
670
671    Note that `PCC_BITFIELD_TYPE_MATTERS' also affects the alignment that
672    results from an empty field.  */
673 /* #define EMPTY_FIELD_BOUNDARY */
674
675 /* Number of bits which any structure or union's size must be a multiple of.
676    Each structure or union's size is rounded up to a multiple of this.
677
678    If you do not define this macro, the default is the same as `BITS_PER_UNIT'.  */
679 /* #define STRUCTURE_SIZE_BOUNDARY */
680
681 /* Define this macro to be the value 1 if instructions will fail to work if
682    given data not on the nominal alignment.  If instructions will merely go
683    slower in that case, define this macro as 0.  */
684 #define STRICT_ALIGNMENT 1
685
686 /* Define this if you wish to imitate the way many other C compilers handle
687    alignment of bitfields and the structures that contain them.
688
689    The behavior is that the type written for a bitfield (`int', `short', or
690    other integer type) imposes an alignment for the entire structure, as if the
691    structure really did contain an ordinary field of that type.  In addition,
692    the bitfield is placed within the structure so that it would fit within such
693    a field, not crossing a boundary for it.
694
695    Thus, on most machines, a bitfield whose type is written as `int' would not
696    cross a four-byte boundary, and would force four-byte alignment for the
697    whole structure.  (The alignment used may not be four bytes; it is
698    controlled by the other alignment parameters.)
699
700    If the macro is defined, its definition should be a C expression; a nonzero
701    value for the expression enables this behavior.
702
703    Note that if this macro is not defined, or its value is zero, some bitfields
704    may cross more than one alignment boundary.  The compiler can support such
705    references if there are `insv', `extv', and `extzv' insns that can directly
706    reference memory.
707
708    The other known way of making bitfields work is to define
709    `STRUCTURE_SIZE_BOUNDARY' as large as `BIGGEST_ALIGNMENT'.  Then every
710    structure can be accessed with fullwords.
711
712    Unless the machine has bitfield instructions or you define
713    `STRUCTURE_SIZE_BOUNDARY' that way, you must define
714    `PCC_BITFIELD_TYPE_MATTERS' to have a nonzero value.
715
716    If your aim is to make GNU CC use the same conventions for laying out
717    bitfields as are used by another compiler, here is how to investigate what
718    the other compiler does.  Compile and run this program:
719
720         struct foo1
721         {
722           char x;
723           char :0;
724           char y;
725         };
726
727         struct foo2
728         {
729           char x;
730           int :0;
731           char y;
732         };
733
734         main ()
735         {
736           printf ("Size of foo1 is %d\n",
737                   sizeof (struct foo1));
738           printf ("Size of foo2 is %d\n",
739                   sizeof (struct foo2));
740           exit (0);
741         }
742
743    If this prints 2 and 5, then the compiler's behavior is what you would get
744    from `PCC_BITFIELD_TYPE_MATTERS'.
745
746    Defined in svr4.h.  */
747 #define PCC_BITFIELD_TYPE_MATTERS 1
748
749 /* Like PCC_BITFIELD_TYPE_MATTERS except that its effect is limited to aligning
750    a bitfield within the structure.  */
751 /* #define BITFIELD_NBYTES_LIMITED */
752
753 /* Define this macro as an expression for the overall size of a structure
754    (given by STRUCT as a tree node) when the size computed from the fields is
755    SIZE and the alignment is ALIGN.
756
757    The default is to round SIZE up to a multiple of ALIGN.  */
758 /* #define ROUND_TYPE_SIZE(STRUCT, SIZE, ALIGN) */
759
760 /* Define this macro as an expression for the alignment of a structure (given
761    by STRUCT as a tree node) if the alignment computed in the usual way is
762    COMPUTED and the alignment explicitly specified was SPECIFIED.
763
764    The default is to use SPECIFIED if it is larger; otherwise, use the smaller
765    of COMPUTED and `BIGGEST_ALIGNMENT' */
766 /* #define ROUND_TYPE_ALIGN(STRUCT, COMPUTED, SPECIFIED) */
767
768 /* An integer expression for the size in bits of the largest integer machine
769    mode that should actually be used.  All integer machine modes of this size
770    or smaller can be used for structures and unions with the appropriate sizes.
771    If this macro is undefined, `GET_MODE_BITSIZE (DImode)' is assumed.  */
772 /* #define MAX_FIXED_MODE_SIZE */
773
774 /* A C statement to validate the value VALUE (of type `double') for mode MODE.
775    This means that you check whether VALUE fits within the possible range of
776    values for mode MODE on this target machine.  The mode MODE is always a mode
777    of class `MODE_FLOAT'.  OVERFLOW is nonzero if the value is already known to
778    be out of range.
779
780    If VALUE is not valid or if OVERFLOW is nonzero, you should set OVERFLOW to
781    1 and then assign some valid value to VALUE.  Allowing an invalid value to
782    go through the compiler can produce incorrect assembler code which may even
783    cause Unix assemblers to crash.
784
785    This macro need not be defined if there is no work for it to do.  */
786 /* #define CHECK_FLOAT_VALUE(MODE, VALUE, OVERFLOW) */
787
788 /* A code distinguishing the floating point format of the target machine.
789    There are three defined values:
790
791    IEEE_FLOAT_FORMAT'
792         This code indicates IEEE floating point.  It is the default;
793         there is no need to define this macro when the format is IEEE.
794
795    VAX_FLOAT_FORMAT'
796         This code indicates the peculiar format used on the Vax.
797
798    UNKNOWN_FLOAT_FORMAT'
799         This code indicates any other format.
800
801    The value of this macro is compared with `HOST_FLOAT_FORMAT'
802    to determine whether the target machine has the same format as
803    the host machine.  If any other formats are actually in use on supported
804    machines, new codes should be defined for them.
805
806    The ordering of the component words of floating point values stored in
807    memory is controlled by `FLOAT_WORDS_BIG_ENDIAN' for the target machine and
808    `HOST_FLOAT_WORDS_BIG_ENDIAN' for the host.  */
809 #define TARGET_FLOAT_FORMAT IEEE_FLOAT_FORMAT
810
811 /* GNU CC supports two ways of implementing C++ vtables: traditional or with
812    so-called "thunks".  The flag `-fvtable-thunk' chooses between them.  Define
813    this macro to be a C expression for the default value of that flag.  If
814    `DEFAULT_VTABLE_THUNKS' is 0, GNU CC uses the traditional implementation by
815    default.  The "thunk" implementation is more efficient (especially if you
816    have provided an implementation of `ASM_OUTPUT_MI_THUNK', but is not binary
817    compatible with code compiled using the traditional implementation.  If you
818    are writing a new ports, define `DEFAULT_VTABLE_THUNKS' to 1.
819
820    If you do not define this macro, the default for `-fvtable-thunk' is 0.  */
821 #define DEFAULT_VTABLE_THUNKS 1
822
823 \f
824 /* Layout of Source Language Data Types */
825
826 /* A C expression for the size in bits of the type `int' on the target machine.
827    If you don't define this, the default is one word.  */
828 #define INT_TYPE_SIZE 16
829
830 /* Maximum number for the size in bits of the type `int' on the target machine.
831    If this is undefined, the default is `INT_TYPE_SIZE'.  Otherwise, it is the
832    constant value that is the largest value that `INT_TYPE_SIZE' can have at
833    run-time.  This is used in `cpp'.  */
834 /* #define MAX_INT_TYPE_SIZE */
835
836 /* A C expression for the size in bits of the type `short' on the target
837    machine.  If you don't define this, the default is half a word.  (If this
838    would be less than one storage unit, it is rounded up to one unit.)  */
839 #define SHORT_TYPE_SIZE 16
840
841 /* A C expression for the size in bits of the type `long' on the target
842    machine.  If you don't define this, the default is one word.  */
843 #define LONG_TYPE_SIZE 32
844
845 /* Maximum number for the size in bits of the type `long' on the target
846    machine.  If this is undefined, the default is `LONG_TYPE_SIZE'.  Otherwise,
847    it is the constant value that is the largest value that `LONG_TYPE_SIZE' can
848    have at run-time.  This is used in `cpp'.  */
849 /* #define MAX_LONG_TYPE_SIZE */
850
851 /* A C expression for the size in bits of the type `long long' on the target
852    machine.  If you don't define this, the default is two words.  If you want
853    to support GNU Ada on your machine, the value of macro must be at least 64.  */
854 #define LONG_LONG_TYPE_SIZE 64
855
856 /* A C expression for the size in bits of the type `char' on the target
857    machine.  If you don't define this, the default is one quarter of a word.
858    (If this would be less than one storage unit, it is rounded up to one unit.)  */
859 #define CHAR_TYPE_SIZE 8
860
861 /* Maximum number for the size in bits of the type `char' on the target
862    machine.  If this is undefined, the default is `CHAR_TYPE_SIZE'.  Otherwise,
863    it is the constant value that is the largest value that `CHAR_TYPE_SIZE' can
864    have at run-time.  This is used in `cpp'.  */
865 /* #define MAX_CHAR_TYPE_SIZE */
866
867 /* A C expression for the size in bits of the type `float' on the target
868    machine.  If you don't define this, the default is one word.  */
869 #define FLOAT_TYPE_SIZE 32
870
871 /* A C expression for the size in bits of the type `double' on the target
872    machine.  If you don't define this, the default is two words.  */
873 #define DOUBLE_TYPE_SIZE 64
874
875 /* A C expression for the size in bits of the type `long double' on the target
876    machine.  If you don't define this, the default is two words.  */
877 #define LONG_DOUBLE_TYPE_SIZE 64
878
879 /* An expression whose value is 1 or 0, according to whether the type `char'
880    should be signed or unsigned by default.  The user can always override this
881    default with the options `-fsigned-char' and `-funsigned-char'.  */
882 #define DEFAULT_SIGNED_CHAR 0
883
884 /* A C expression to determine whether to give an `enum' type only as many
885    bytes as it takes to represent the range of possible values of that type.  A
886    nonzero value means to do that; a zero value means all `enum' types should
887    be allocated like `int'.
888
889    If you don't define the macro, the default is 0.  */
890 /* #define DEFAULT_SHORT_ENUMS */
891
892 /* A C expression for a string describing the name of the data type to use for
893    size values.  The typedef name `size_t' is defined using the contents of the
894    string.
895
896    The string can contain more than one keyword.  If so, separate them with
897    spaces, and write first any length keyword, then `unsigned' if appropriate,
898    and finally `int'.  The string must exactly match one of the data type names
899    defined in the function `init_decl_processing' in the file `c-decl.c'.  You
900    may not omit `int' or change the order--that would cause the compiler to
901    crash on startup.
902
903    If you don't define this macro, the default is `"long unsigned int"'.
904
905    Defined in svr4.h.  */
906 #define SIZE_TYPE "unsigned int"
907
908 /* A C expression for a string describing the name of the data type to use for
909    the result of subtracting two pointers.  The typedef name `ptrdiff_t' is
910    defined using the contents of the string.  See `SIZE_TYPE' above for more
911    information.
912
913    If you don't define this macro, the default is `"long int"'.
914
915    Defined in svr4.h.  */
916 #define PTRDIFF_TYPE "int"
917
918 /* A C expression for a string describing the name of the data type to use for
919    wide characters.  The typedef name `wchar_t' is defined using the contents
920    of the string.  See `SIZE_TYPE' above for more information.
921
922    If you don't define this macro, the default is `"int"'.
923
924    Defined in svr4.h, to "long int".  */
925 /* #define WCHAR_TYPE "long int" */
926
927 /* A C expression for the size in bits of the data type for wide characters.
928    This is used in `cpp', which cannot make use of `WCHAR_TYPE'.
929
930    Defined in svr4.h.  */
931 #undef WCHAR_TYPE_SIZE
932 #define WCHAR_TYPE_SIZE 32
933
934 /* Maximum number for the size in bits of the data type for wide characters.
935    If this is undefined, the default is `WCHAR_TYPE_SIZE'.  Otherwise, it is
936    the constant value that is the largest value that `WCHAR_TYPE_SIZE' can have
937    at run-time.  This is used in `cpp'.  */
938 /* #define MAX_WCHAR_TYPE_SIZE */
939
940 /* Define this macro if the type of Objective C selectors should be `int'.
941
942    If this macro is not defined, then selectors should have the type `struct
943    objc_selector *'.  */
944 /* #define OBJC_INT_SELECTORS */
945
946 /* Define this macro if the compiler can group all the selectors together into
947    a vector and use just one label at the beginning of the vector.  Otherwise,
948    the compiler must give each selector its own assembler label.
949
950    On certain machines, it is important to have a separate label for each
951    selector because this enables the linker to eliminate duplicate selectors.  */
952 /* #define OBJC_SELECTORS_WITHOUT_LABELS */
953
954 \f
955 /* Register Basics */
956
957 /* Number of hardware registers known to the compiler.  They receive numbers 0
958    through `FIRST_PSEUDO_REGISTER-1'; thus, the first pseudo register's number
959    really is assigned the number `FIRST_PSEUDO_REGISTER'.  */
960 #define FIRST_PSEUDO_REGISTER 19
961
962 /* An initializer that says which registers are used for fixed purposes all
963    throughout the compiled code and are therefore not available for general
964    allocation.  These would include the stack pointer, the frame pointer
965    (except on machines where that can be used as a general register when no
966    frame pointer is needed), the program counter on machines where that is
967    considered one of the addressable registers, and any other numbered register
968    with a standard use.
969
970    This information is expressed as a sequence of numbers, separated by commas
971    and surrounded by braces.  The Nth number is 1 if register N is fixed, 0
972    otherwise.
973
974    The table initialized from this macro, and the table initialized by the
975    following one, may be overridden at run time either automatically, by the
976    actions of the macro `CONDITIONAL_REGISTER_USAGE', or by the user with the
977    command options `-ffixed-REG', `-fcall-used-REG' and `-fcall-saved-REG'.  */
978 #define FIXED_REGISTERS \
979   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1 }
980
981 /* Like `FIXED_REGISTERS' but has 1 for each register that is clobbered (in
982    general) by function calls as well as for fixed registers.  This macro
983    therefore identifies the registers that are not available for general
984    allocation of values that must live across function calls.
985
986    If a register has 0 in `CALL_USED_REGISTERS', the compiler automatically
987    saves it on function entry and restores it on function exit, if the register
988    is used within the function.  */
989 #define CALL_USED_REGISTERS \
990   { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1 }
991
992 /* Zero or more C statements that may conditionally modify two variables
993    `fixed_regs' and `call_used_regs' (both of type `char []') after they have
994    been initialized from the two preceding macros.
995
996    This is necessary in case the fixed or call-clobbered registers depend on
997    target flags.
998
999    You need not define this macro if it has no work to do.
1000
1001    If the usage of an entire class of registers depends on the target flags,
1002    you may indicate this to GCC by using this macro to modify `fixed_regs' and
1003    `call_used_regs' to 1 for each of the registers in the classes which should
1004    not be used by GCC.  Also define the macro `REG_CLASS_FROM_LETTER' to return
1005    `NO_REGS' if it is called with a letter for a class that shouldn't be used.
1006
1007    (However, if this class is not included in `GENERAL_REGS' and all of the
1008    insn patterns whose constraints permit this class are controlled by target
1009    switches, then GCC will automatically avoid using these registers when the
1010    target switches are opposed to them.)  */
1011 /* #define CONDITIONAL_REGISTER_USAGE */
1012
1013 /* If this macro is defined and has a nonzero value, it means that `setjmp' and
1014    related functions fail to save the registers, or that `longjmp' fails to
1015    restore them.  To compensate, the compiler avoids putting variables in
1016    registers in functions that use `setjmp'.  */
1017 /* #define NON_SAVING_SETJMP */
1018
1019 /* Define this macro if the target machine has register windows.  This C
1020    expression returns the register number as seen by the called function
1021    corresponding to the register number OUT as seen by the calling function.
1022    Return OUT if register number OUT is not an outbound register.  */
1023 /* #define INCOMING_REGNO(OUT) */
1024
1025 /* Define this macro if the target machine has register windows.  This C
1026    expression returns the register number as seen by the calling function
1027    corresponding to the register number IN as seen by the called function.
1028    Return IN if register number IN is not an inbound register.  */
1029 /* #define OUTGOING_REGNO(IN) */
1030
1031 \f
1032 /* Order of allocation of registers */
1033
1034 /* If defined, an initializer for a vector of integers, containing the numbers
1035    of hard registers in the order in which GNU CC should prefer to use them
1036    (from most preferred to least).
1037
1038    If this macro is not defined, registers are used lowest numbered first (all
1039    else being equal).
1040
1041    One use of this macro is on machines where the highest numbered registers
1042    must always be saved and the save-multiple-registers instruction supports
1043    only sequences of consecutive registers.  On such machines, define
1044    `REG_ALLOC_ORDER' to be an initializer that lists the highest numbered
1045    allocatable register first.  */
1046 #define REG_ALLOC_ORDER { 7, 6, 5, 4, 3, 2, 1, 0, 9, 8, 10, 11, 12, 13, 14, 15, 16 }
1047
1048 /* A C statement (sans semicolon) to choose the order in which to allocate hard
1049    registers for pseudo-registers local to a basic block.
1050
1051    Store the desired register order in the array `reg_alloc_order'.  Element 0
1052    should be the register to allocate first; element 1, the next register; and
1053    so on.
1054
1055    The macro body should not assume anything about the contents of
1056    `reg_alloc_order' before execution of the macro.
1057
1058    On most machines, it is not necessary to define this macro.  */
1059 /* #define ORDER_REGS_FOR_LOCAL_ALLOC */
1060
1061 \f
1062 /* How Values Fit in Registers */
1063
1064 /* A C expression for the number of consecutive hard registers, starting at
1065    register number REGNO, required to hold a value of mode MODE.
1066
1067    On a machine where all registers are exactly one word, a suitable definition
1068    of this macro is
1069
1070         #define HARD_REGNO_NREGS(REGNO, MODE)            \
1071            ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1)  \
1072             / UNITS_PER_WORD))  */
1073 #define HARD_REGNO_NREGS(REGNO, MODE)                           \
1074   ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
1075
1076 /* A C expression that is nonzero if it is permissible to store a value of mode
1077    MODE in hard register number REGNO (or in several registers starting with
1078    that one).  For a machine where all registers are equivalent, a suitable
1079    definition is
1080
1081         #define HARD_REGNO_MODE_OK(REGNO, MODE) 1
1082
1083    It is not necessary for this macro to check for the numbers of fixed
1084    registers, because the allocation mechanism considers them to be always
1085    occupied.
1086
1087    On some machines, double-precision values must be kept in even/odd register
1088    pairs.  The way to implement that is to define this macro to reject odd
1089    register numbers for such modes.
1090
1091    The minimum requirement for a mode to be OK in a register is that the
1092    `movMODE' instruction pattern support moves between the register and any
1093    other hard register for which the mode is OK; and that moving a value into
1094    the register and back out not alter it.
1095
1096    Since the same instruction used to move `SImode' will work for all narrower
1097    integer modes, it is not necessary on any machine for `HARD_REGNO_MODE_OK'
1098    to distinguish between these modes, provided you define patterns `movhi',
1099    etc., to take advantage of this.  This is useful because of the interaction
1100    between `HARD_REGNO_MODE_OK' and `MODES_TIEABLE_P'; it is very desirable for
1101    all integer modes to be tieable.
1102
1103    Many machines have special registers for floating point arithmetic.  Often
1104    people assume that floating point machine modes are allowed only in floating
1105    point registers.  This is not true.  Any registers that can hold integers
1106    can safely *hold* a floating point machine mode, whether or not floating
1107    arithmetic can be done on it in those registers.  Integer move instructions
1108    can be used to move the values.
1109
1110    On some machines, though, the converse is true: fixed-point machine modes
1111    may not go in floating registers.  This is true if the floating registers
1112    normalize any value stored in them, because storing a non-floating value
1113    there would garble it.  In this case, `HARD_REGNO_MODE_OK' should reject
1114    fixed-point machine modes in floating registers.  But if the floating
1115    registers do not automatically normalize, if you can store any bit pattern
1116    in one and retrieve it unchanged without a trap, then any machine mode may
1117    go in a floating register, so you can define this macro to say so.
1118
1119    The primary significance of special floating registers is rather that they
1120    are the registers acceptable in floating point arithmetic instructions.
1121    However, this is of no concern to `HARD_REGNO_MODE_OK'.  You handle it by
1122    writing the proper constraints for those instructions.
1123
1124    On some machines, the floating registers are especially slow to access, so
1125    that it is better to store a value in a stack frame than in such a register
1126    if floating point arithmetic is not being done.  As long as the floating
1127    registers are not in class `GENERAL_REGS', they will not be used unless some
1128    pattern's constraint asks for one.  */
1129 #define HARD_REGNO_MODE_OK(REGNO, MODE) ((REGNO) != 16 || (MODE) == BImode)
1130
1131 /* A C expression that is nonzero if it is desirable to choose register
1132    allocation so as to avoid move instructions between a value of mode MODE1
1133    and a value of mode MODE2.
1134
1135    If `HARD_REGNO_MODE_OK (R, MODE1)' and `HARD_REGNO_MODE_OK (R, MODE2)' are
1136    ever different for any R, then `MODES_TIEABLE_P (MODE1, MODE2)' must be
1137    zero.  */
1138 #define MODES_TIEABLE_P(MODE1, MODE2) ((MODE1) != BImode && (MODE2) != BImode)
1139
1140 /* Define this macro if the compiler should avoid copies to/from CCmode
1141    registers.  You should only define this macro if support fo copying to/from
1142    CCmode is incomplete.  */
1143 /* #define AVOID_CCMODE_COPIES */
1144
1145 \f
1146 /* Handling Leaf Functions */
1147
1148 /* A C initializer for a vector, indexed by hard register number, which
1149    contains 1 for a register that is allowable in a candidate for leaf function
1150    treatment.
1151
1152    If leaf function treatment involves renumbering the registers, then the
1153    registers marked here should be the ones before renumbering--those that GNU
1154    CC would ordinarily allocate.  The registers which will actually be used in
1155    the assembler code, after renumbering, should not be marked with 1 in this
1156    vector.
1157
1158    Define this macro only if the target machine offers a way to optimize the
1159    treatment of leaf functions.  */
1160 /* #define LEAF_REGISTERS */
1161
1162 /* A C expression whose value is the register number to which REGNO should be
1163    renumbered, when a function is treated as a leaf function.
1164
1165    If REGNO is a register number which should not appear in a leaf function
1166    before renumbering, then the expression should yield -1, which will cause
1167    the compiler to abort.
1168
1169    Define this macro only if the target machine offers a way to optimize the
1170    treatment of leaf functions, and registers need to be renumbered to do this.  */
1171 /* #define LEAF_REG_REMAP(REGNO) */
1172
1173 \f
1174 /* Registers That Form a Stack.  */
1175
1176 /* Define this if the machine has any stack-like registers.  */
1177 /* #define STACK_REGS */
1178
1179 /* The number of the first stack-like register.  This one is the top
1180    of the stack.  */
1181 /* #define FIRST_STACK_REG */
1182
1183 /* The number of the last stack-like register.  This one is the
1184    bottom of the stack.  */
1185 /* #define LAST_STACK_REG */
1186
1187 \f
1188 /* Register Classes */
1189
1190 /* An enumeral type that must be defined with all the register class names as
1191    enumeral values.  `NO_REGS' must be first.  `ALL_REGS' must be the last
1192    register class, followed by one more enumeral value, `LIM_REG_CLASSES',
1193    which is not a register class but rather tells how many classes there are.
1194
1195    Each register class has a number, which is the value of casting the class
1196    name to type `int'.  The number serves as an index in many of the tables
1197    described below.  */
1198 enum reg_class
1199 {
1200   NO_REGS,
1201   R0_REGS,
1202   R1_REGS,
1203   TWO_REGS,
1204   R2_REGS,
1205   EIGHT_REGS,
1206   R8_REGS,
1207   ICALL_REGS,
1208   GENERAL_REGS,
1209   CARRY_REGS,
1210   ALL_REGS,
1211   LIM_REG_CLASSES
1212 };
1213
1214 /* The number of distinct register classes, defined as follows:
1215
1216         #define N_REG_CLASSES (int) LIM_REG_CLASSES  */
1217 #define N_REG_CLASSES ((int) LIM_REG_CLASSES)
1218
1219 /* An initializer containing the names of the register classes as C string
1220    constants.  These names are used in writing some of the debugging dumps.  */
1221 #define REG_CLASS_NAMES                         \
1222 {                                               \
1223   "NO_REGS",                                    \
1224   "R0_REGS",                                    \
1225   "R1_REGS",                                    \
1226   "TWO_REGS",                                   \
1227   "R2_REGS",                                    \
1228   "EIGHT_REGS",                                 \
1229   "R8_REGS",                                    \
1230   "ICALL_REGS",                                 \
1231   "GENERAL_REGS",                               \
1232   "CARRY_REGS",                                 \
1233   "ALL_REGS"                                    \
1234 }
1235
1236 /* An initializer containing the contents of the register classes, as integers
1237    which are bit masks.  The Nth integer specifies the contents of class N.
1238    The way the integer MASK is interpreted is that register R is in the class
1239    if `MASK & (1 << R)' is 1.
1240
1241    When the machine has more than 32 registers, an integer does not suffice.
1242    Then the integers are replaced by sub-initializers, braced groupings
1243    containing several integers.  Each sub-initializer must be suitable as an
1244    initializer for the type `HARD_REG_SET' which is defined in
1245    `hard-reg-set.h'.  */
1246 #define REG_CLASS_CONTENTS                      \
1247 {                                               \
1248   0x00000,                                      \
1249   0x00001,                                      \
1250   0x00002,                                      \
1251   0x00003,                                      \
1252   0x00004,                                      \
1253   0x000FF,                                      \
1254   0x00100,                                      \
1255   0x00300,                                      \
1256   0x6FFFF,                                      \
1257   0x10000,                                      \
1258   (1 << FIRST_PSEUDO_REGISTER) - 1              \
1259 }
1260
1261 /* A C expression whose value is a register class containing hard register
1262    REGNO.  In general there is more than one such class; choose a class which
1263    is "minimal", meaning that no smaller class also contains the register.  */
1264 #define REGNO_REG_CLASS(REGNO)                  \
1265   ((REGNO) == 0   ? R0_REGS                     \
1266    : (REGNO) == 1 ? R1_REGS                     \
1267    : (REGNO) == 2 ? R2_REGS                     \
1268    : (REGNO) < 8  ? EIGHT_REGS                  \
1269    : (REGNO) == 8 ? R8_REGS                     \
1270    : (REGNO) == 16 ? CARRY_REGS                 \
1271    : (REGNO) <= 18 ? GENERAL_REGS               \
1272    : ALL_REGS)
1273
1274 /* A macro whose definition is the name of the class to which a valid base
1275    register must belong.  A base register is one used in an address which is
1276    the register value plus a displacement.  */
1277 #define BASE_REG_CLASS GENERAL_REGS
1278
1279 /* A macro whose definition is the name of the class to which a valid index
1280    register must belong.  An index register is one used in an address where its
1281    value is either multiplied by a scale factor or added to another register
1282    (as well as added to a displacement).  */
1283 #define INDEX_REG_CLASS GENERAL_REGS
1284
1285 /* A C expression which defines the machine-dependent operand constraint
1286    letters for register classes.  If CHAR is such a letter, the value should be
1287    the register class corresponding to it.  Otherwise, the value should be
1288    `NO_REGS'.  The register letter `r', corresponding to class `GENERAL_REGS',
1289    will not be passed to this macro; you do not need to handle it.
1290
1291    The following letters are unavailable, due to being used as
1292    constraints:
1293         '0'..'9'
1294         '<', '>'
1295         'E', 'F', 'G', 'H'
1296         'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P'
1297         'Q', 'R', 'S', 'T', 'U'
1298         'V', 'X'
1299         'g', 'i', 'm', 'n', 'o', 'p', 'r', 's' */
1300
1301 #define REG_CLASS_FROM_LETTER(CHAR)             \
1302  (  (CHAR) == 'a' ? R0_REGS                     \
1303   : (CHAR) == 'b' ? R1_REGS                     \
1304   : (CHAR) == 'c' ? R2_REGS                     \
1305   : (CHAR) == 'd' ? R8_REGS                     \
1306   : (CHAR) == 'e' ? EIGHT_REGS                  \
1307   : (CHAR) == 't' ? TWO_REGS                    \
1308   : (CHAR) == 'y' ? CARRY_REGS                  \
1309   : (CHAR) == 'z' ? ICALL_REGS                  \
1310   : NO_REGS)
1311
1312 /* A C expression which is nonzero if register number NUM is suitable for use
1313    as a base register in operand addresses.  It may be either a suitable hard
1314    register or a pseudo register that has been allocated such a hard register.  */
1315 #define REGNO_OK_FOR_BASE_P(NUM) 1
1316
1317 /* A C expression which is nonzero if register number NUM is suitable for use
1318    as an index register in operand addresses.  It may be either a suitable hard
1319    register or a pseudo register that has been allocated such a hard register.
1320
1321    The difference between an index register and a base register is that the
1322    index register may be scaled.  If an address involves the sum of two
1323    registers, neither one of them scaled, then either one may be labeled the
1324    "base" and the other the "index"; but whichever labeling is used must fit
1325    the machine's constraints of which registers may serve in each capacity.
1326    The compiler will try both labelings, looking for one that is valid, and
1327    will reload one or both registers only if neither labeling works.  */
1328 #define REGNO_OK_FOR_INDEX_P(NUM) REGNO_OK_FOR_BASE_P (NUM)
1329
1330 /* A C expression that places additional restrictions on the register class to
1331    use when it is necessary to copy value X into a register in class CLASS.
1332    The value is a register class; perhaps CLASS, or perhaps another, smaller
1333    class.  On many machines, the following definition is safe:
1334
1335         #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
1336
1337    Sometimes returning a more restrictive class makes better code.  For
1338    example, on the 68000, when X is an integer constant that is in range for a
1339    `moveq' instruction, the value of this macro is always `DATA_REGS' as long
1340    as CLASS includes the data registers.  Requiring a data register guarantees
1341    that a `moveq' will be used.
1342
1343    If X is a `const_double', by returning `NO_REGS' you can force X into a
1344    memory constant.  This is useful on certain machines where immediate
1345    floating values cannot be loaded into certain kinds of registers.
1346
1347    This declaration must be present.  */
1348 #define PREFERRED_RELOAD_CLASS(X, CLASS) \
1349   stormy16_preferred_reload_class (X, CLASS)
1350
1351 /* Like `PREFERRED_RELOAD_CLASS', but for output reloads instead of input
1352    reloads.  If you don't define this macro, the default is to use CLASS,
1353    unchanged.  */
1354 #define PREFERRED_OUTPUT_RELOAD_CLASS(X, CLASS) \
1355   stormy16_preferred_reload_class (X, CLASS)
1356
1357 /* A C expression that places additional restrictions on the register class to
1358    use when it is necessary to be able to hold a value of mode MODE in a reload
1359    register for which class CLASS would ordinarily be used.
1360
1361    Unlike `PREFERRED_RELOAD_CLASS', this macro should be used when there are
1362    certain modes that simply can't go in certain reload classes.
1363
1364    The value is a register class; perhaps CLASS, or perhaps another, smaller
1365    class.
1366
1367    Don't define this macro unless the target machine has limitations which
1368    require the macro to do something nontrivial.  */
1369 /* #define LIMIT_RELOAD_CLASS(MODE, CLASS) */
1370
1371 /* Many machines have some registers that cannot be copied directly to or from
1372    memory or even from other types of registers.  An example is the `MQ'
1373    register, which on most machines, can only be copied to or from general
1374    registers, but not memory.  Some machines allow copying all registers to and
1375    from memory, but require a scratch register for stores to some memory
1376    locations (e.g., those with symbolic address on the RT, and those with
1377    certain symbolic address on the Sparc when compiling PIC).  In some cases,
1378    both an intermediate and a scratch register are required.
1379
1380    You should define these macros to indicate to the reload phase that it may
1381    need to allocate at least one register for a reload in addition to the
1382    register to contain the data.  Specifically, if copying X to a register
1383    CLASS in MODE requires an intermediate register, you should define
1384    `SECONDARY_INPUT_RELOAD_CLASS' to return the largest register class all of
1385    whose registers can be used as intermediate registers or scratch registers.
1386
1387    If copying a register CLASS in MODE to X requires an intermediate or scratch
1388    register, `SECONDARY_OUTPUT_RELOAD_CLASS' should be defined to return the
1389    largest register class required.  If the requirements for input and output
1390    reloads are the same, the macro `SECONDARY_RELOAD_CLASS' should be used
1391    instead of defining both macros identically.
1392
1393    The values returned by these macros are often `GENERAL_REGS'.  Return
1394    `NO_REGS' if no spare register is needed; i.e., if X can be directly copied
1395    to or from a register of CLASS in MODE without requiring a scratch register.
1396    Do not define this macro if it would always return `NO_REGS'.
1397
1398    If a scratch register is required (either with or without an intermediate
1399    register), you should define patterns for `reload_inM' or `reload_outM', as
1400    required..  These patterns, which will normally be implemented with a
1401    `define_expand', should be similar to the `movM' patterns, except that
1402    operand 2 is the scratch register.
1403
1404    Define constraints for the reload register and scratch register that contain
1405    a single register class.  If the original reload register (whose class is
1406    CLASS) can meet the constraint given in the pattern, the value returned by
1407    these macros is used for the class of the scratch register.  Otherwise, two
1408    additional reload registers are required.  Their classes are obtained from
1409    the constraints in the insn pattern.
1410
1411    X might be a pseudo-register or a `subreg' of a pseudo-register, which could
1412    either be in a hard register or in memory.  Use `true_regnum' to find out;
1413    it will return -1 if the pseudo is in memory and the hard register number if
1414    it is in a register.
1415
1416    These macros should not be used in the case where a particular class of
1417    registers can only be copied to memory and not to another class of
1418    registers.  In that case, secondary reload registers are not needed and
1419    would not be helpful.  Instead, a stack location must be used to perform the
1420    copy and the `movM' pattern should use memory as a intermediate storage.
1421    This case often occurs between floating-point and general registers.  */
1422
1423 /* This chip has the interesting property that only the first eight
1424    registers can be moved to/from memory.  */
1425 #define SECONDARY_RELOAD_CLASS(CLASS, MODE, X)                  \
1426   stormy16_secondary_reload_class (CLASS, MODE, X)
1427
1428 /* #define SECONDARY_INPUT_RELOAD_CLASS(CLASS, MODE, X) */
1429 /* #define SECONDARY_OUTPUT_RELOAD_CLASS(CLASS, MODE, X) */
1430
1431 /* Certain machines have the property that some registers cannot be copied to
1432    some other registers without using memory.  Define this macro on those
1433    machines to be a C expression that is non-zero if objects of mode M in
1434    registers of CLASS1 can only be copied to registers of class CLASS2 by
1435    storing a register of CLASS1 into memory and loading that memory location
1436    into a register of CLASS2.
1437
1438    Do not define this macro if its value would always be zero.  */
1439 /* #define SECONDARY_MEMORY_NEEDED(CLASS1, CLASS2, M) */
1440
1441 /* Normally when `SECONDARY_MEMORY_NEEDED' is defined, the compiler allocates a
1442    stack slot for a memory location needed for register copies.  If this macro
1443    is defined, the compiler instead uses the memory location defined by this
1444    macro.
1445
1446    Do not define this macro if you do not define
1447    `SECONDARY_MEMORY_NEEDED'.  */
1448 /* #define SECONDARY_MEMORY_NEEDED_RTX(MODE) */
1449
1450 /* When the compiler needs a secondary memory location to copy between two
1451    registers of mode MODE, it normally allocates sufficient memory to hold a
1452    quantity of `BITS_PER_WORD' bits and performs the store and load operations
1453    in a mode that many bits wide and whose class is the same as that of MODE.
1454
1455    This is right thing to do on most machines because it ensures that all bits
1456    of the register are copied and prevents accesses to the registers in a
1457    narrower mode, which some machines prohibit for floating-point registers.
1458
1459    However, this default behavior is not correct on some machines, such as the
1460    DEC Alpha, that store short integers in floating-point registers differently
1461    than in integer registers.  On those machines, the default widening will not
1462    work correctly and you must define this macro to suppress that widening in
1463    some cases.  See the file `alpha.h' for details.
1464
1465    Do not define this macro if you do not define `SECONDARY_MEMORY_NEEDED' or
1466    if widening MODE to a mode that is `BITS_PER_WORD' bits wide is correct for
1467    your machine.  */
1468 /* #define SECONDARY_MEMORY_NEEDED_MODE(MODE) */
1469
1470 /* Normally the compiler avoids choosing registers that have been explicitly
1471    mentioned in the rtl as spill registers (these registers are normally those
1472    used to pass parameters and return values).  However, some machines have so
1473    few registers of certain classes that there would not be enough registers to
1474    use as spill registers if this were done.
1475
1476    Define `SMALL_REGISTER_CLASSES' to be an expression with a non-zero value on
1477    these machines.  When this macro has a non-zero value, the compiler allows
1478    registers explicitly used in the rtl to be used as spill registers but
1479    avoids extending the lifetime of these registers.
1480
1481    It is always safe to define this macro with a non-zero value, but if you
1482    unnecessarily define it, you will reduce the amount of optimizations that
1483    can be performed in some cases.  If you do not define this macro with a
1484    non-zero value when it is required, the compiler will run out of spill
1485    registers and print a fatal error message.  For most machines, you should
1486    not define this macro at all.  */
1487 /* #define SMALL_REGISTER_CLASSES */
1488
1489 /* A C expression whose value is nonzero if pseudos that have been assigned to
1490    registers of class CLASS would likely be spilled because registers of CLASS
1491    are needed for spill registers.
1492
1493    The default value of this macro returns 1 if CLASS has exactly one register
1494    and zero otherwise.  On most machines, this default should be used.  Only
1495    define this macro to some other expression if pseudo allocated by
1496    `local-alloc.c' end up in memory because their hard registers were needed
1497    for spill registers.  If this macro returns nonzero for those classes, those
1498    pseudos will only be allocated by `global.c', which knows how to reallocate
1499    the pseudo to another register.  If there would not be another register
1500    available for reallocation, you should not change the definition of this
1501    macro since the only effect of such a definition would be to slow down
1502    register allocation.  */
1503 /* #define CLASS_LIKELY_SPILLED_P(CLASS) */
1504
1505 /* A C expression for the maximum number of consecutive registers of
1506    class CLASS needed to hold a value of mode MODE.
1507
1508    This is closely related to the macro `HARD_REGNO_NREGS'.  In fact, the value
1509    of the macro `CLASS_MAX_NREGS (CLASS, MODE)' should be the maximum value of
1510    `HARD_REGNO_NREGS (REGNO, MODE)' for all REGNO values in the class CLASS.
1511
1512    This macro helps control the handling of multiple-word values in
1513    the reload pass.
1514
1515    This declaration is required.  */
1516 #define CLASS_MAX_NREGS(CLASS, MODE) \
1517   ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
1518
1519 /* If defined, a C expression for a class that contains registers which the
1520    compiler must always access in a mode that is the same size as the mode in
1521    which it loaded the register.
1522
1523    For the example, loading 32-bit integer or floating-point objects into
1524    floating-point registers on the Alpha extends them to 64-bits.  Therefore
1525    loading a 64-bit object and then storing it as a 32-bit object does not
1526    store the low-order 32-bits, as would be the case for a normal register.
1527    Therefore, `alpha.h' defines this macro as `FLOAT_REGS'.  */
1528 /* #define CLASS_CANNOT_CHANGE_SIZE */
1529
1530 /* A C expression that defines the machine-dependent operand constraint letters
1531    (`I', `J', `K', .. 'P') that specify particular ranges of integer values.
1532    If C is one of those letters, the expression should check that VALUE, an
1533    integer, is in the appropriate range and return 1 if so, 0 otherwise.  If C
1534    is not one of those letters, the value should be 0 regardless of VALUE.  */
1535 #define CONST_OK_FOR_LETTER_P(VALUE, C)                 \
1536   (  (C) == 'I' ? (VALUE) >= 0 && (VALUE) <= 3          \
1537    : (C) == 'J' ? exact_log2 (VALUE) != -1              \
1538    : (C) == 'K' ? exact_log2 (~(VALUE)) != -1           \
1539    : (C) == 'L' ? (VALUE) >= 0 && (VALUE) <= 255        \
1540    : (C) == 'M' ? (VALUE) >= -255 && (VALUE) <= 0       \
1541    : (C) == 'N' ? (VALUE) >= -3 && (VALUE) <= 0         \
1542    : (C) == 'O' ? (VALUE) >= 1 && (VALUE) <= 4          \
1543    : (C) == 'P' ? (VALUE) >= -4 && (VALUE) <= -1        \
1544    : 0 )
1545
1546 /* A C expression that defines the machine-dependent operand constraint letters
1547    (`G', `H') that specify particular ranges of `const_double' values.
1548
1549    If C is one of those letters, the expression should check that VALUE, an RTX
1550    of code `const_double', is in the appropriate range and return 1 if so, 0
1551    otherwise.  If C is not one of those letters, the value should be 0
1552    regardless of VALUE.
1553
1554    `const_double' is used for all floating-point constants and for `DImode'
1555    fixed-point constants.  A given letter can accept either or both kinds of
1556    values.  It can use `GET_MODE' to distinguish between these kinds.  */
1557 #define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C) 0
1558
1559 /* A C expression that defines the optional machine-dependent constraint
1560    letters (`Q', `R', `S', `T', `U') that can be used to segregate specific
1561    types of operands, usually memory references, for the target machine.
1562    Normally this macro will not be defined.  If it is required for a particular
1563    target machine, it should return 1 if VALUE corresponds to the operand type
1564    represented by the constraint letter C.  If C is not defined as an extra
1565    constraint, the value returned should be 0 regardless of VALUE.
1566
1567    For example, on the ROMP, load instructions cannot have their output in r0
1568    if the memory reference contains a symbolic address.  Constraint letter `Q'
1569    is defined as representing a memory address that does *not* contain a
1570    symbolic address.  An alternative is specified with a `Q' constraint on the
1571    input and `r' on the output.  The next alternative specifies `m' on the
1572    input and a register class that does not include r0 on the output.  */
1573 #define EXTRA_CONSTRAINT(VALUE, C) \
1574   stormy16_extra_constraint_p (VALUE, C)
1575
1576 \f
1577 /* Basic Stack Layout */
1578
1579 /* Define this macro if pushing a word onto the stack moves the stack pointer
1580    to a smaller address.
1581
1582    When we say, "define this macro if ...," it means that the compiler checks
1583    this macro only with `#ifdef' so the precise definition used does not
1584    matter.  */
1585 /* #define STACK_GROWS_DOWNWARD */
1586
1587 /* We want to use post-increment instructions to push things on the stack,
1588    because we don't have any pre-increment ones.  */
1589 #define STACK_PUSH_CODE POST_INC
1590
1591 /* Define this macro if the addresses of local variable slots are at negative
1592    offsets from the frame pointer.  */
1593 /* #define FRAME_GROWS_DOWNWARD */
1594
1595 /* Define this macro if successive arguments to a function occupy decreasing
1596    addresses on the stack.  */
1597 #define ARGS_GROW_DOWNWARD 1
1598
1599 /* Offset from the frame pointer to the first local variable slot to be
1600    allocated.
1601
1602    If `FRAME_GROWS_DOWNWARD', find the next slot's offset by
1603    subtracting the first slot's length from `STARTING_FRAME_OFFSET'.
1604    Otherwise, it is found by adding the length of the first slot to
1605    the value `STARTING_FRAME_OFFSET'.  */
1606 #define STARTING_FRAME_OFFSET 0
1607
1608 /* Offset from the stack pointer register to the first location at which
1609    outgoing arguments are placed.  If not specified, the default value of zero
1610    is used.  This is the proper value for most machines.
1611
1612    If `ARGS_GROW_DOWNWARD', this is the offset to the location above the first
1613    location at which outgoing arguments are placed.  */
1614 /* #define STACK_POINTER_OFFSET */
1615
1616 /* Offset from the argument pointer register to the first argument's address.
1617    On some machines it may depend on the data type of the function.
1618
1619    If `ARGS_GROW_DOWNWARD', this is the offset to the location above the first
1620    argument's address.  */
1621 #define FIRST_PARM_OFFSET(FUNDECL) 0
1622
1623 /* Offset from the stack pointer register to an item dynamically allocated on
1624    the stack, e.g., by `alloca'.
1625
1626    The default value for this macro is `STACK_POINTER_OFFSET' plus the length
1627    of the outgoing arguments.  The default is correct for most machines.  See
1628    `function.c' for details.  */
1629 /* #define STACK_DYNAMIC_OFFSET(FUNDECL) */
1630
1631 /* A C expression whose value is RTL representing the address in a stack frame
1632    where the pointer to the caller's frame is stored.  Assume that FRAMEADDR is
1633    an RTL expression for the address of the stack frame itself.
1634
1635    If you don't define this macro, the default is to return the value of
1636    FRAMEADDR--that is, the stack frame address is also the address of the stack
1637    word that points to the previous frame.  */
1638 /* #define DYNAMIC_CHAIN_ADDRESS(FRAMEADDR) */
1639
1640 /* If defined, a C expression that produces the machine-specific code to setup
1641    the stack so that arbitrary frames can be accessed.  For example, on the
1642    Sparc, we must flush all of the register windows to the stack before we can
1643    access arbitrary stack frames.  This macro will seldom need to be defined.  */
1644 /* #define SETUP_FRAME_ADDRESSES() */
1645
1646 /* A C expression whose value is RTL representing the value of the return
1647    address for the frame COUNT steps up from the current frame, after the
1648    prologue.  FRAMEADDR is the frame pointer of the COUNT frame, or the frame
1649    pointer of the COUNT - 1 frame if `RETURN_ADDR_IN_PREVIOUS_FRAME' is
1650    defined.
1651
1652    The value of the expression must always be the correct address when COUNT is
1653    zero, but may be `NULL_RTX' if there is not way to determine the return
1654    address of other frames.  */
1655 #define RETURN_ADDR_RTX(COUNT, FRAMEADDR)       \
1656   ((COUNT) == 0                                 \
1657    ? gen_rtx_MEM (Pmode, arg_pointer_rtx)       \
1658    : NULL_RTX)
1659
1660 /* Define this if the return address of a particular stack frame is
1661    accessed from the frame pointer of the previous stack frame.  */
1662 /* #define RETURN_ADDR_IN_PREVIOUS_FRAME */
1663
1664 /* A C expression whose value is RTL representing the location of the incoming
1665    return address at the beginning of any function, before the prologue.  This
1666    RTL is either a `REG', indicating that the return value is saved in `REG',
1667    or a `MEM' representing a location in the stack.
1668
1669    You only need to define this macro if you want to support call frame
1670    debugging information like that provided by DWARF 2.  */
1671 #define INCOMING_RETURN_ADDR_RTX  \
1672    gen_rtx_MEM (SImode, gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (-4)))
1673
1674 /* A C expression whose value is an integer giving the offset, in bytes, from
1675    the value of the stack pointer register to the top of the stack frame at the
1676    beginning of any function, before the prologue.  The top of the frame is
1677    defined to be the value of the stack pointer in the previous frame, just
1678    before the call instruction.
1679
1680    You only need to define this macro if you want to support call frame
1681    debugging information like that provided by DWARF 2.  */
1682 #define INCOMING_FRAME_SP_OFFSET (stormy16_interrupt_function_p () ? 6 : 4)
1683
1684 \f
1685 /* Stack Checking.  */
1686
1687 /* A nonzero value if stack checking is done by the configuration files in a
1688    machine-dependent manner.  You should define this macro if stack checking is
1689    require by the ABI of your machine or if you would like to have to stack
1690    checking in some more efficient way than GNU CC's portable approach.  The
1691    default value of this macro is zero.  */
1692 /* #define STACK_CHECK_BUILTIN */
1693
1694 /* An integer representing the interval at which GNU CC must generate stack
1695    probe instructions.  You will normally define this macro to be no larger
1696    than the size of the "guard pages" at the end of a stack area.  The default
1697    value of 4096 is suitable for most systems.  */
1698 /* #define STACK_CHECK_PROBE_INTERVAL */
1699
1700 /* A integer which is nonzero if GNU CC should perform the stack probe as a
1701    load instruction and zero if GNU CC should use a store instruction.  The
1702    default is zero, which is the most efficient choice on most systems.  */
1703 /* #define STACK_CHECK_PROBE_LOAD */
1704
1705 /* The number of bytes of stack needed to recover from a stack overflow, for
1706    languages where such a recovery is supported.  The default value of 75 words
1707    should be adequate for most machines.  */
1708 /* #define STACK_CHECK_PROTECT */
1709
1710 /* The maximum size of a stack frame, in bytes.  GNU CC will generate probe
1711    instructions in non-leaf functions to ensure at least this many bytes of
1712    stack are available.  If a stack frame is larger than this size, stack
1713    checking will not be reliable and GNU CC will issue a warning.  The default
1714    is chosen so that GNU CC only generates one instruction on most systems.
1715    You should normally not change the default value of this macro.  */
1716 /* #define STACK_CHECK_MAX_FRAME_SIZE */
1717
1718 /* GNU CC uses this value to generate the above warning message.  It represents
1719    the amount of fixed frame used by a function, not including space for any
1720    callee-saved registers, temporaries and user variables.  You need only
1721    specify an upper bound for this amount and will normally use the default of
1722    four words.  */
1723 /* #define STACK_CHECK_FIXED_FRAME_SIZE */
1724
1725 /* The maximum size, in bytes, of an object that GNU CC will place in the fixed
1726    area of the stack frame when the user specifies `-fstack-check'.  GNU CC
1727    computed the default from the values of the above macros and you will
1728    normally not need to override that default.  */
1729 /* #define STACK_CHECK_MAX_VAR_SIZE */
1730
1731 \f
1732 /* Register That Address the Stack Frame.  */
1733
1734 /* The register number of the stack pointer register, which must also be a
1735    fixed register according to `FIXED_REGISTERS'.  On most machines, the
1736    hardware determines which register this is.  */
1737 #define STACK_POINTER_REGNUM 15
1738
1739 /* The register number of the frame pointer register, which is used to access
1740    automatic variables in the stack frame.  On some machines, the hardware
1741    determines which register this is.  On other machines, you can choose any
1742    register you wish for this purpose.  */
1743 #define FRAME_POINTER_REGNUM 17
1744
1745 /* On some machines the offset between the frame pointer and starting offset of
1746    the automatic variables is not known until after register allocation has
1747    been done (for example, because the saved registers are between these two
1748    locations).  On those machines, define `FRAME_POINTER_REGNUM' the number of
1749    a special, fixed register to be used internally until the offset is known,
1750    and define `HARD_FRAME_POINTER_REGNUM' to be actual the hard register number
1751    used for the frame pointer.
1752
1753    You should define this macro only in the very rare circumstances when it is
1754    not possible to calculate the offset between the frame pointer and the
1755    automatic variables until after register allocation has been completed.
1756    When this macro is defined, you must also indicate in your definition of
1757    `ELIMINABLE_REGS' how to eliminate `FRAME_POINTER_REGNUM' into either
1758    `HARD_FRAME_POINTER_REGNUM' or `STACK_POINTER_REGNUM'.
1759
1760    Do not define this macro if it would be the same as `FRAME_POINTER_REGNUM'.  */
1761 #define HARD_FRAME_POINTER_REGNUM 13
1762
1763 /* The register number of the arg pointer register, which is used to access the
1764    function's argument list.  On some machines, this is the same as the frame
1765    pointer register.  On some machines, the hardware determines which register
1766    this is.  On other machines, you can choose any register you wish for this
1767    purpose.  If this is not the same register as the frame pointer register,
1768    then you must mark it as a fixed register according to `FIXED_REGISTERS', or
1769    arrange to be able to eliminate it.  */
1770 #define ARG_POINTER_REGNUM 18
1771
1772 /* The register number of the return address pointer register, which is used to
1773    access the current function's return address from the stack.  On some
1774    machines, the return address is not at a fixed offset from the frame pointer
1775    or stack pointer or argument pointer.  This register can be defined to point
1776    to the return address on the stack, and then be converted by
1777    `ELIMINABLE_REGS' into either the frame pointer or stack pointer.
1778
1779    Do not define this macro unless there is no other way to get the return
1780    address from the stack.  */
1781 /* #define RETURN_ADDRESS_POINTER_REGNUM */
1782
1783 /* Register numbers used for passing a function's static chain pointer.  If
1784    register windows are used, the register number as seen by the called
1785    function is `STATIC_CHAIN_INCOMING_REGNUM', while the register number as
1786    seen by the calling function is `STATIC_CHAIN_REGNUM'.  If these registers
1787    are the same, `STATIC_CHAIN_INCOMING_REGNUM' need not be defined.
1788
1789    The static chain register need not be a fixed register.
1790
1791    If the static chain is passed in memory, these macros should not be defined;
1792    instead, the next two macros should be defined.  */
1793 #define STATIC_CHAIN_REGNUM 1
1794 /* #define STATIC_CHAIN_INCOMING_REGNUM */
1795
1796 /* If the static chain is passed in memory, these macros provide rtx giving
1797    `mem' expressions that denote where they are stored.  `STATIC_CHAIN' and
1798    `STATIC_CHAIN_INCOMING' give the locations as seen by the calling and called
1799    functions, respectively.  Often the former will be at an offset from the
1800    stack pointer and the latter at an offset from the frame pointer.
1801
1802    The variables `stack_pointer_rtx', `frame_pointer_rtx', and
1803    `arg_pointer_rtx' will have been initialized prior to the use of these
1804    macros and should be used to refer to those items.
1805
1806    If the static chain is passed in a register, the two previous
1807    macros should be defined instead.  */
1808 /* #define STATIC_CHAIN */
1809 /* #define STATIC_CHAIN_INCOMING */
1810
1811 \f
1812 /* Eliminating the Frame Pointer and the Arg Pointer */
1813
1814 /* A C expression which is nonzero if a function must have and use a frame
1815    pointer.  This expression is evaluated in the reload pass.  If its value is
1816    nonzero the function will have a frame pointer.
1817
1818    The expression can in principle examine the current function and decide
1819    according to the facts, but on most machines the constant 0 or the constant
1820    1 suffices.  Use 0 when the machine allows code to be generated with no
1821    frame pointer, and doing so saves some time or space.  Use 1 when there is
1822    no possible advantage to avoiding a frame pointer.
1823
1824    In certain cases, the compiler does not know how to produce valid code
1825    without a frame pointer.  The compiler recognizes those cases and
1826    automatically gives the function a frame pointer regardless of what
1827    `FRAME_POINTER_REQUIRED' says.  You don't need to worry about them.
1828
1829    In a function that does not require a frame pointer, the frame pointer
1830    register can be allocated for ordinary usage, unless you mark it as a fixed
1831    register.  See `FIXED_REGISTERS' for more information.  */
1832 #define FRAME_POINTER_REQUIRED 0
1833
1834 /* A C statement to store in the variable DEPTH_VAR the difference between the
1835    frame pointer and the stack pointer values immediately after the function
1836    prologue.  The value would be computed from information such as the result
1837    of `get_frame_size ()' and the tables of registers `regs_ever_live' and
1838    `call_used_regs'.
1839
1840    If `ELIMINABLE_REGS' is defined, this macro will be not be used and need not
1841    be defined.  Otherwise, it must be defined even if `FRAME_POINTER_REQUIRED'
1842    is defined to always be true; in that case, you may set DEPTH_VAR to
1843    anything.  */
1844 /* #define INITIAL_FRAME_POINTER_OFFSET(DEPTH_VAR) */
1845
1846 /* If defined, this macro specifies a table of register pairs used to eliminate
1847    unneeded registers that point into the stack frame.  If it is not defined,
1848    the only elimination attempted by the compiler is to replace references to
1849    the frame pointer with references to the stack pointer.
1850
1851    The definition of this macro is a list of structure initializations, each of
1852    which specifies an original and replacement register.
1853 */
1854
1855 #define ELIMINABLE_REGS                                 \
1856 {                                                       \
1857   {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM},         \
1858   {FRAME_POINTER_REGNUM, HARD_FRAME_POINTER_REGNUM},    \
1859   {ARG_POINTER_REGNUM,   STACK_POINTER_REGNUM},         \
1860   {ARG_POINTER_REGNUM,   HARD_FRAME_POINTER_REGNUM},    \
1861 }
1862
1863 /* A C expression that returns non-zero if the compiler is allowed to try to
1864    replace register number FROM with register number TO.  This macro need only
1865    be defined if `ELIMINABLE_REGS' is defined, and will usually be the constant
1866    1, since most of the cases preventing register elimination are things that
1867    the compiler already knows about.  */
1868
1869 #define CAN_ELIMINATE(FROM, TO)                                         \
1870  ((FROM) == ARG_POINTER_REGNUM && (TO) == STACK_POINTER_REGNUM          \
1871   ? ! frame_pointer_needed                                              \
1872   : 1)
1873
1874 /* This macro is similar to `INITIAL_FRAME_POINTER_OFFSET'.  It specifies the
1875    initial difference between the specified pair of registers.  This macro must
1876    be defined if `ELIMINABLE_REGS' is defined.  */
1877 #define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \
1878   (OFFSET) = stormy16_initial_elimination_offset (FROM, TO)
1879
1880 /* Define this macro if the `longjmp' function restores registers from the
1881    stack frames, rather than from those saved specifically by `setjmp'.
1882    Certain quantities must not be kept in registers across a call to `setjmp'
1883    on such machines.  */
1884 /* #define LONGJMP_RESTORE_FROM_STACK */
1885
1886 \f
1887 /* Passing Function Arguments on the Stack */
1888
1889 /* Define this macro if an argument declared in a prototype as an integral type
1890    smaller than `int' should actually be passed as an `int'.  In addition to
1891    avoiding errors in certain cases of mismatch, it also makes for better code
1892    on certain machines.  */
1893 #define PROMOTE_PROTOTYPES 1
1894
1895 /* A C expression that is the number of bytes actually pushed onto the stack
1896    when an instruction attempts to push NPUSHED bytes.
1897
1898    If the target machine does not have a push instruction, do not define this
1899    macro.  That directs GNU CC to use an alternate strategy: to allocate the
1900    entire argument block and then store the arguments into it.
1901
1902    On some machines, the definition
1903
1904         #define PUSH_ROUNDING(BYTES) (BYTES)
1905
1906    will suffice.  But on other machines, instructions that appear to push one
1907    byte actually push two bytes in an attempt to maintain alignment.  Then the
1908    definition should be
1909
1910         #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)  */
1911 #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)
1912
1913 /* If defined, the maximum amount of space required for outgoing arguments will
1914    be computed and placed into the variable
1915    `current_function_outgoing_args_size'.  No space will be pushed onto the
1916    stack for each call; instead, the function prologue should increase the
1917    stack frame size by this amount.
1918
1919    Defining both `PUSH_ROUNDING' and `ACCUMULATE_OUTGOING_ARGS' is not
1920    proper.  */
1921 /* #define ACCUMULATE_OUTGOING_ARGS */
1922
1923 /* Define this macro if functions should assume that stack space has been
1924    allocated for arguments even when their values are passed in registers.
1925
1926    The value of this macro is the size, in bytes, of the area reserved for
1927    arguments passed in registers for the function represented by FNDECL.
1928
1929    This space can be allocated by the caller, or be a part of the
1930    machine-dependent stack frame: `OUTGOING_REG_PARM_STACK_SPACE' says
1931    which.  */
1932 /* #define REG_PARM_STACK_SPACE(FNDECL) */
1933
1934 /* Define these macros in addition to the one above if functions might allocate
1935    stack space for arguments even when their values are passed in registers.
1936    These should be used when the stack space allocated for arguments in
1937    registers is not a simple constant independent of the function declaration.
1938
1939    The value of the first macro is the size, in bytes, of the area that we
1940    should initially assume would be reserved for arguments passed in registers.
1941
1942    The value of the second macro is the actual size, in bytes, of the area that
1943    will be reserved for arguments passed in registers.  This takes two
1944    arguments: an integer representing the number of bytes of fixed sized
1945    arguments on the stack, and a tree representing the number of bytes of
1946    variable sized arguments on the stack.
1947
1948    When these macros are defined, `REG_PARM_STACK_SPACE' will only be called
1949    for libcall functions, the current function, or for a function being called
1950    when it is known that such stack space must be allocated.  In each case this
1951    value can be easily computed.
1952
1953    When deciding whether a called function needs such stack space, and how much
1954    space to reserve, GNU CC uses these two macros instead of
1955    `REG_PARM_STACK_SPACE'.  */
1956 /* #define MAYBE_REG_PARM_STACK_SPACE */
1957 /* #define FINAL_REG_PARM_STACK_SPACE(CONST_SIZE, VAR_SIZE) */
1958
1959 /* Define this if it is the responsibility of the caller to allocate the area
1960    reserved for arguments passed in registers.
1961
1962    If `ACCUMULATE_OUTGOING_ARGS' is defined, this macro controls whether the
1963    space for these arguments counts in the value of
1964    `current_function_outgoing_args_size'.  */
1965 /* #define OUTGOING_REG_PARM_STACK_SPACE */
1966
1967 /* Define this macro if `REG_PARM_STACK_SPACE' is defined, but the stack
1968    parameters don't skip the area specified by it.
1969
1970    Normally, when a parameter is not passed in registers, it is placed on the
1971    stack beyond the `REG_PARM_STACK_SPACE' area.  Defining this macro
1972    suppresses this behavior and causes the parameter to be passed on the stack
1973    in its natural location.  */
1974 /* #define STACK_PARMS_IN_REG_PARM_AREA */
1975
1976 /* A C expression that should indicate the number of bytes of its own arguments
1977    that a function pops on returning, or 0 if the function pops no arguments
1978    and the caller must therefore pop them all after the function returns.
1979
1980    FUNDECL is a C variable whose value is a tree node that describes the
1981    function in question.  Normally it is a node of type `FUNCTION_DECL' that
1982    describes the declaration of the function.  From this it is possible to
1983    obtain the DECL_ATTRIBUTES of the function.
1984
1985    FUNTYPE is a C variable whose value is a tree node that describes the
1986    function in question.  Normally it is a node of type `FUNCTION_TYPE' that
1987    describes the data type of the function.  From this it is possible to obtain
1988    the data types of the value and arguments (if known).
1989
1990    When a call to a library function is being considered, FUNTYPE will contain
1991    an identifier node for the library function.  Thus, if you need to
1992    distinguish among various library functions, you can do so by their names.
1993    Note that "library function" in this context means a function used to
1994    perform arithmetic, whose name is known specially in the compiler and was
1995    not mentioned in the C code being compiled.
1996
1997    STACK-SIZE is the number of bytes of arguments passed on the stack.  If a
1998    variable number of bytes is passed, it is zero, and argument popping will
1999    always be the responsibility of the calling function.
2000
2001    On the Vax, all functions always pop their arguments, so the definition of
2002    this macro is STACK-SIZE.  On the 68000, using the standard calling
2003    convention, no functions pop their arguments, so the value of the macro is
2004    always 0 in this case.  But an alternative calling convention is available
2005    in which functions that take a fixed number of arguments pop them but other
2006    functions (such as `printf') pop nothing (the caller pops all).  When this
2007    convention is in use, FUNTYPE is examined to determine whether a function
2008    takes a fixed number of arguments.  */
2009 #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, STACK_SIZE) 0
2010
2011 \f
2012 /* Function Arguments in Registers */
2013
2014 #define NUM_ARGUMENT_REGISTERS 6
2015 #define FIRST_ARGUMENT_REGISTER 2
2016
2017 #define STORMY16_WORD_SIZE(TYPE, MODE)                          \
2018   ((((TYPE) ? int_size_in_bytes (TYPE) : GET_MODE_SIZE (MODE))  \
2019     + 1)                                                        \
2020    / 2)
2021
2022 /* A C expression that controls whether a function argument is passed in a
2023    register, and which register.
2024
2025    The arguments are CUM, of type CUMULATIVE_ARGS, which summarizes
2026    (in a way defined by INIT_CUMULATIVE_ARGS and FUNCTION_ARG_ADVANCE)
2027    all of the previous arguments so far passed in registers; MODE, the
2028    machine mode of the argument; TYPE, the data type of the argument
2029    as a tree node or 0 if that is not known (which happens for C
2030    support library functions); and NAMED, which is 1 for an ordinary
2031    argument and 0 for nameless arguments that correspond to `...' in
2032    the called function's prototype.
2033
2034    The value of the expression should either be a `reg' RTX for the hard
2035    register in which to pass the argument, or zero to pass the argument on the
2036    stack.
2037
2038    For machines like the Vax and 68000, where normally all arguments are
2039    pushed, zero suffices as a definition.
2040
2041    The usual way to make the ANSI library `stdarg.h' work on a machine where
2042    some arguments are usually passed in registers, is to cause nameless
2043    arguments to be passed on the stack instead.  This is done by making
2044    `FUNCTION_ARG' return 0 whenever NAMED is 0.
2045
2046    You may use the macro `MUST_PASS_IN_STACK (MODE, TYPE)' in the definition of
2047    this macro to determine if this argument is of a type that must be passed in
2048    the stack.  If `REG_PARM_STACK_SPACE' is not defined and `FUNCTION_ARG'
2049    returns non-zero for such an argument, the compiler will abort.  If
2050    `REG_PARM_STACK_SPACE' is defined, the argument will be computed in the
2051    stack and then loaded into a register.  */
2052 #define FUNCTION_ARG(CUM, MODE, TYPE, NAMED)                              \
2053   ((MODE) == VOIDmode ? const0_rtx                                        \
2054    : (CUM) + STORMY16_WORD_SIZE (TYPE, MODE) > NUM_ARGUMENT_REGISTERS ? 0 \
2055    : gen_rtx_REG (MODE, (CUM) + 2))
2056
2057 /* Define this macro if the target machine has "register windows", so that the
2058    register in which a function sees an arguments is not necessarily the same
2059    as the one in which the caller passed the argument.
2060
2061    For such machines, `FUNCTION_ARG' computes the register in which the caller
2062    passes the value, and `FUNCTION_INCOMING_ARG' should be defined in a similar
2063    fashion to tell the function being called where the arguments will arrive.
2064
2065    If `FUNCTION_INCOMING_ARG' is not defined, `FUNCTION_ARG' serves both
2066    purposes.  */
2067 /* #define FUNCTION_INCOMING_ARG(CUM, MODE, TYPE, NAMED) */
2068
2069 /* A C expression for the number of words, at the beginning of an argument,
2070    must be put in registers.  The value must be zero for arguments that are
2071    passed entirely in registers or that are entirely pushed on the stack.
2072
2073    On some machines, certain arguments must be passed partially in registers
2074    and partially in memory.  On these machines, typically the first N words of
2075    arguments are passed in registers, and the rest on the stack.  If a
2076    multi-word argument (a `double' or a structure) crosses that boundary, its
2077    first few words must be passed in registers and the rest must be pushed.
2078    This macro tells the compiler when this occurs, and how many of the words
2079    should go in registers.
2080
2081    `FUNCTION_ARG' for these arguments should return the first register to be
2082    used by the caller for this argument; likewise `FUNCTION_INCOMING_ARG', for
2083    the called function.  */
2084 #define FUNCTION_ARG_PARTIAL_NREGS(CUM, MODE, TYPE, NAMED) 0
2085
2086 /* A C expression that indicates when an argument must be passed by reference.
2087    If nonzero for an argument, a copy of that argument is made in memory and a
2088    pointer to the argument is passed instead of the argument itself.  The
2089    pointer is passed in whatever way is appropriate for passing a pointer to
2090    that type.
2091
2092    On machines where `REG_PARM_STACK_SPACE' is not defined, a suitable
2093    definition of this macro might be
2094         #define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED)  \
2095           MUST_PASS_IN_STACK (MODE, TYPE)  */
2096 #define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED) 0
2097
2098 /* If defined, a C expression that indicates when it is more
2099    desirable to keep an argument passed by invisible reference as a
2100    reference, rather than copying it to a pseudo register.  */
2101 /* #define FUNCTION_ARG_KEEP_AS_REFERENCE(CUM, MODE, TYPE, NAMED) */
2102
2103 /* If defined, a C expression that indicates when it is the called function's
2104    responsibility to make a copy of arguments passed by invisible reference.
2105    Normally, the caller makes a copy and passes the address of the copy to the
2106    routine being called.  When FUNCTION_ARG_CALLEE_COPIES is defined and is
2107    nonzero, the caller does not make a copy.  Instead, it passes a pointer to
2108    the "live" value.  The called function must not modify this value.  If it
2109    can be determined that the value won't be modified, it need not make a copy;
2110    otherwise a copy must be made.  */
2111 /* #define FUNCTION_ARG_CALLEE_COPIES(CUM, MODE, TYPE, NAMED) */
2112
2113 /* A C type for declaring a variable that is used as the first argument of
2114    `FUNCTION_ARG' and other related values.  For some target machines, the type
2115    `int' suffices and can hold the number of bytes of argument so far.
2116
2117    There is no need to record in `CUMULATIVE_ARGS' anything about the arguments
2118    that have been passed on the stack.  The compiler has other variables to
2119    keep track of that.  For target machines on which all arguments are passed
2120    on the stack, there is no need to store anything in `CUMULATIVE_ARGS';
2121    however, the data structure must exist and should not be empty, so use
2122    `int'.  
2123
2124    For this platform, the value of CUMULATIVE_ARGS is the number of words
2125    of arguments that have been passed in registers so far.  */
2126 typedef int CUMULATIVE_ARGS;
2127
2128 /* A C statement (sans semicolon) for initializing the variable CUM for the
2129    state at the beginning of the argument list.  The variable has type
2130    `CUMULATIVE_ARGS'.  The value of FNTYPE is the tree node for the data type
2131    of the function which will receive the args, or 0 if the args are to a
2132    compiler support library function.  The value of INDIRECT is nonzero when
2133    processing an indirect call, for example a call through a function pointer.
2134    The value of INDIRECT is zero for a call to an explicitly named function, a
2135    library function call, or when `INIT_CUMULATIVE_ARGS' is used to find
2136    arguments for the function being compiled.
2137
2138    When processing a call to a compiler support library function, LIBNAME
2139    identifies which one.  It is a `symbol_ref' rtx which contains the name of
2140    the function, as a string.  LIBNAME is 0 when an ordinary C function call is
2141    being processed.  Thus, each time this macro is called, either LIBNAME or
2142    FNTYPE is nonzero, but never both of them at once.  */
2143 #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT) (CUM) = 0
2144
2145 /* Like `INIT_CUMULATIVE_ARGS' but overrides it for the purposes of finding the
2146    arguments for the function being compiled.  If this macro is undefined,
2147    `INIT_CUMULATIVE_ARGS' is used instead.
2148
2149    The value passed for LIBNAME is always 0, since library routines with
2150    special calling conventions are never compiled with GNU CC.  The argument
2151    LIBNAME exists for symmetry with `INIT_CUMULATIVE_ARGS'.  */
2152 /* #define INIT_CUMULATIVE_INCOMING_ARGS(CUM, FNTYPE, LIBNAME) */
2153
2154 /* A C statement (sans semicolon) to update the summarizer variable CUM to
2155    advance past an argument in the argument list.  The values MODE, TYPE and
2156    NAMED describe that argument.  Once this is done, the variable CUM is
2157    suitable for analyzing the *following* argument with `FUNCTION_ARG', etc.
2158
2159    This macro need not do anything if the argument in question was passed on
2160    the stack.  The compiler knows how to track the amount of stack space used
2161    for arguments without any special help.  */
2162 #define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)                    \
2163   ((CUM) = stormy16_function_arg_advance (CUM, MODE, TYPE, NAMED))
2164
2165 /* If defined, a C expression which determines whether, and in which direction,
2166    to pad out an argument with extra space.  The value should be of type `enum
2167    direction': either `upward' to pad above the argument, `downward' to pad
2168    below, or `none' to inhibit padding.
2169
2170    The *amount* of padding is always just enough to reach the next multiple of
2171    `FUNCTION_ARG_BOUNDARY'; this macro does not control it.
2172
2173    This macro has a default definition which is right for most systems.  For
2174    little-endian machines, the default is to pad upward.  For big-endian
2175    machines, the default is to pad downward for an argument of constant size
2176    shorter than an `int', and upward otherwise.  */
2177 /* #define FUNCTION_ARG_PADDING(MODE, TYPE) */
2178
2179 /* If defined, a C expression that gives the alignment boundary, in bits, of an
2180    argument with the specified mode and type.  If it is not defined,
2181    `PARM_BOUNDARY' is used for all arguments.  */
2182 /* #define FUNCTION_ARG_BOUNDARY(MODE, TYPE) */
2183
2184 /* A C expression that is nonzero if REGNO is the number of a hard register in
2185    which function arguments are sometimes passed.  This does *not* include
2186    implicit arguments such as the static chain and the structure-value address.
2187    On many machines, no registers can be used for this purpose since all
2188    function arguments are pushed on the stack.  */
2189 #define FUNCTION_ARG_REGNO_P(REGNO)                                     \
2190   ((REGNO) >= FIRST_ARGUMENT_REGISTER                                   \
2191    && (REGNO) < FIRST_ARGUMENT_REGISTER + NUM_ARGUMENT_REGISTERS)
2192
2193 \f
2194 /* How Scalar Function Values are Returned */
2195
2196 /* The number of the hard register that is used to return a scalar value from a
2197    function call.  */
2198 #define RETURN_VALUE_REGNUM     FIRST_ARGUMENT_REGISTER
2199      
2200 /* Define this macro if `-traditional' should not cause functions declared to
2201    return `float' to convert the value to `double'.  */
2202 /* #define TRADITIONAL_RETURN_FLOAT */
2203
2204 /* A C expression to create an RTX representing the place where a function
2205    returns a value of data type VALTYPE.  VALTYPE is a tree node representing a
2206    data type.  Write `TYPE_MODE (VALTYPE)' to get the machine mode used to
2207    represent that type.  On many machines, only the mode is relevant.
2208    (Actually, on most machines, scalar values are returned in the same place
2209    regardless of mode).
2210
2211    If `PROMOTE_FUNCTION_RETURN' is defined, you must apply the same promotion
2212    rules specified in `PROMOTE_MODE' if VALTYPE is a scalar type.
2213
2214    If the precise function being called is known, FUNC is a tree node
2215    (`FUNCTION_DECL') for it; otherwise, FUNC is a null pointer.  This makes it
2216    possible to use a different value-returning convention for specific
2217    functions when all their calls are known.
2218
2219    `FUNCTION_VALUE' is not used for return vales with aggregate data types,
2220    because these are returned in another way.  See `STRUCT_VALUE_REGNUM' and
2221    related macros, below.  */
2222 #define FUNCTION_VALUE(VALTYPE, FUNC) \
2223   stormy16_function_value (VALTYPE, FUNC)
2224
2225
2226 /* Define this macro if the target machine has "register windows" so that the
2227    register in which a function returns its value is not the same as the one in
2228    which the caller sees the value.
2229
2230    For such machines, `FUNCTION_VALUE' computes the register in which the
2231    caller will see the value.  `FUNCTION_OUTGOING_VALUE' should be defined in a
2232    similar fashion to tell the function where to put the value.
2233
2234    If `FUNCTION_OUTGOING_VALUE' is not defined, `FUNCTION_VALUE' serves both
2235    purposes.
2236
2237    `FUNCTION_OUTGOING_VALUE' is not used for return vales with aggregate data
2238    types, because these are returned in another way.  See `STRUCT_VALUE_REGNUM'
2239    and related macros, below.  */
2240 /* #define FUNCTION_OUTGOING_VALUE(VALTYPE, FUNC) */
2241
2242 /* A C expression to create an RTX representing the place where a library
2243    function returns a value of mode MODE.
2244
2245    Note that "library function" in this context means a compiler support
2246    routine, used to perform arithmetic, whose name is known specially by the
2247    compiler and was not mentioned in the C code being compiled.
2248
2249    The definition of `LIBRARY_VALUE' need not be concerned aggregate data
2250    types, because none of the library functions returns such types.  */
2251 #define LIBCALL_VALUE(MODE) gen_rtx_REG (MODE, RETURN_VALUE_REGNUM)
2252
2253 /* A C expression that is nonzero if REGNO is the number of a hard register in
2254    which the values of called function may come back.
2255
2256    A register whose use for returning values is limited to serving as the
2257    second of a pair (for a value of type `double', say) need not be recognized
2258    by this macro.  So for most machines, this definition suffices:
2259
2260         #define FUNCTION_VALUE_REGNO_P(N) ((N) == RETURN)
2261
2262    If the machine has register windows, so that the caller and the called
2263    function use different registers for the return value, this macro should
2264    recognize only the caller's register numbers.  */
2265 #define FUNCTION_VALUE_REGNO_P(REGNO) ((REGNO) == RETURN_VALUE_REGNUM)
2266
2267 /* Define this macro if `untyped_call' and `untyped_return' need more space
2268    than is implied by `FUNCTION_VALUE_REGNO_P' for saving and restoring an
2269    arbitrary return value.  */
2270 /* #define APPLY_RESULT_SIZE */
2271
2272 \f
2273 /* How Large Values are Returned */
2274
2275 /* A C expression which can inhibit the returning of certain function values in
2276    registers, based on the type of value.  A nonzero value says to return the
2277    function value in memory, just as large structures are always returned.
2278    Here TYPE will be a C expression of type `tree', representing the data type
2279    of the value.
2280
2281    Note that values of mode `BLKmode' must be explicitly handled by this macro.
2282    Also, the option `-fpcc-struct-return' takes effect regardless of this
2283    macro.  On most systems, it is possible to leave the macro undefined; this
2284    causes a default definition to be used, whose value is the constant 1 for
2285    `BLKmode' values, and 0 otherwise.
2286
2287    Do not use this macro to indicate that structures and unions should always
2288    be returned in memory.  You should instead use `DEFAULT_PCC_STRUCT_RETURN'
2289    to indicate this.  */
2290 #define RETURN_IN_MEMORY(TYPE) \
2291   (int_size_in_bytes (TYPE) > UNITS_PER_WORD * NUM_ARGUMENT_REGISTERS)
2292
2293 /* Define this macro to be 1 if all structure and union return values must be
2294    in memory.  Since this results in slower code, this should be defined only
2295    if needed for compatibility with other compilers or with an ABI.  If you
2296    define this macro to be 0, then the conventions used for structure and union
2297    return values are decided by the `RETURN_IN_MEMORY' macro.
2298
2299    If not defined, this defaults to the value 1.  */
2300 /* #define DEFAULT_PCC_STRUCT_RETURN 0 */
2301
2302 /* If the structure value address is passed in a register, then
2303    `STRUCT_VALUE_REGNUM' should be the number of that register.  */
2304 /* #define STRUCT_VALUE_REGNUM */
2305
2306 /* If the structure value address is not passed in a register, define
2307    `STRUCT_VALUE' as an expression returning an RTX for the place where the
2308    address is passed.  If it returns 0, the address is passed as an "invisible"
2309    first argument.  */
2310 #define STRUCT_VALUE 0
2311
2312 /* On some architectures the place where the structure value address is found
2313    by the called function is not the same place that the caller put it.  This
2314    can be due to register windows, or it could be because the function prologue
2315    moves it to a different place.
2316
2317    If the incoming location of the structure value address is in a register,
2318    define this macro as the register number.  */
2319 /* #define STRUCT_VALUE_INCOMING_REGNUM */
2320
2321 /* If the incoming location is not a register, then you should define
2322    `STRUCT_VALUE_INCOMING' as an expression for an RTX for where the called
2323    function should find the value.  If it should find the value on the stack,
2324    define this to create a `mem' which refers to the frame pointer.  A
2325    definition of 0 means that the address is passed as an "invisible" first
2326    argument.  */
2327 /* #define STRUCT_VALUE_INCOMING */
2328
2329 /* Define this macro if the usual system convention on the target machine for
2330    returning structures and unions is for the called function to return the
2331    address of a static variable containing the value.
2332
2333    Do not define this if the usual system convention is for the caller to pass
2334    an address to the subroutine.
2335
2336    This macro has effect in `-fpcc-struct-return' mode, but it does nothing
2337    when you use `-freg-struct-return' mode.  */
2338 /* #define PCC_STATIC_STRUCT_RETURN */
2339
2340 \f
2341 /* Caller-Saves Register Allocation */
2342
2343 /* Define this macro if function calls on the target machine do not preserve
2344    any registers; in other words, if `CALL_USED_REGISTERS' has 1 for all
2345    registers.  This macro enables `-fcaller-saves' by default.  Eventually that
2346    option will be enabled by default on all machines and both the option and
2347    this macro will be eliminated.  */
2348 /* #define DEFAULT_CALLER_SAVES */
2349
2350 /* A C expression to determine whether it is worthwhile to consider placing a
2351    pseudo-register in a call-clobbered hard register and saving and restoring
2352    it around each function call.  The expression should be 1 when this is worth
2353    doing, and 0 otherwise.
2354
2355    If you don't define this macro, a default is used which is good on most
2356    machines: `4 * CALLS < REFS'.  */
2357 /* #define CALLER_SAVE_PROFITABLE(REFS, CALLS) */
2358
2359 \f
2360 /* Function Entry and Exit */
2361
2362 /* Define this macro as a C expression that is nonzero if the return
2363    instruction or the function epilogue ignores the value of the stack pointer;
2364    in other words, if it is safe to delete an instruction to adjust the stack
2365    pointer before a return from the function.
2366
2367    Note that this macro's value is relevant only for functions for which frame
2368    pointers are maintained.  It is never safe to delete a final stack
2369    adjustment in a function that has no frame pointer, and the compiler knows
2370    this regardless of `EXIT_IGNORE_STACK'.  */
2371 /* #define EXIT_IGNORE_STACK */
2372
2373 /* Define this macro as a C expression that is nonzero for registers
2374    are used by the epilogue or the `return' pattern.  The stack and
2375    frame pointer registers are already be assumed to be used as
2376    needed.  */
2377 #define EPILOGUE_USES(REGNO) \
2378   stormy16_epilogue_uses (REGNO)
2379
2380 /* Define this macro if the function epilogue contains delay slots to which
2381    instructions from the rest of the function can be "moved".  The definition
2382    should be a C expression whose value is an integer representing the number
2383    of delay slots there.  */
2384 /* #define DELAY_SLOTS_FOR_EPILOGUE */
2385
2386 /* A C expression that returns 1 if INSN can be placed in delay slot number N
2387    of the epilogue.
2388
2389    The argument N is an integer which identifies the delay slot now being
2390    considered (since different slots may have different rules of eligibility).
2391    It is never negative and is always less than the number of epilogue delay
2392    slots (what `DELAY_SLOTS_FOR_EPILOGUE' returns).  If you reject a particular
2393    insn for a given delay slot, in principle, it may be reconsidered for a
2394    subsequent delay slot.  Also, other insns may (at least in principle) be
2395    considered for the so far unfilled delay slot.
2396
2397    The insns accepted to fill the epilogue delay slots are put in an
2398    RTL list made with `insn_list' objects, stored in the variable
2399    `current_function_epilogue_delay_list'.  The insn for the first
2400    delay slot comes first in the list.  Your definition of the macro
2401    `FUNCTION_EPILOGUE' should fill the delay slots by outputting the
2402    insns in this list, usually by calling `final_scan_insn'.
2403
2404    You need not define this macro if you did not define
2405    `DELAY_SLOTS_FOR_EPILOGUE'.  */
2406 /* #define ELIGIBLE_FOR_EPILOGUE_DELAY(INSN, N) */
2407
2408 /* A C compound statement that outputs the assembler code for a thunk function,
2409    used to implement C++ virtual function calls with multiple inheritance.  The
2410    thunk acts as a wrapper around a virtual function, adjusting the implicit
2411    object parameter before handing control off to the real function.
2412
2413    First, emit code to add the integer DELTA to the location that contains the
2414    incoming first argument.  Assume that this argument contains a pointer, and
2415    is the one used to pass the `this' pointer in C++.  This is the incoming
2416    argument *before* the function prologue, e.g. `%o0' on a sparc.  The
2417    addition must preserve the values of all other incoming arguments.
2418
2419    After the addition, emit code to jump to FUNCTION, which is a
2420    `FUNCTION_DECL'.  This is a direct pure jump, not a call, and does not touch
2421    the return address.  Hence returning from FUNCTION will return to whoever
2422    called the current `thunk'.
2423
2424    The effect must be as if FUNCTION had been called directly with the adjusted
2425    first argument.  This macro is responsible for emitting all of the code for
2426    a thunk function; `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE' are not
2427    invoked.
2428
2429    The THUNK_FNDECL is redundant.  (DELTA and FUNCTION have already been
2430    extracted from it.)  It might possibly be useful on some targets, but
2431    probably not.
2432
2433    If you do not define this macro, the target-independent code in the C++
2434    frontend will generate a less efficient heavyweight thunk that calls
2435    FUNCTION instead of jumping to it.  The generic approach does not support
2436    varargs.  */
2437 #define ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION)        \
2438 {                                                                       \
2439   fprintf (FILE, "\tadd r2,#0x%x\n", (DELTA) & 0xFFFF);                 \
2440   fputs ("\tjmpf ", FILE);                                              \
2441   assemble_name (FILE, XSTR (XEXP (DECL_RTL (function), 0), 0));        \
2442   putc ('\n', FILE);                                                    \
2443 }  
2444
2445 \f
2446 /* Generating Code for Profiling.  */
2447
2448 /* A C statement or compound statement to output to FILE some assembler code to
2449    call the profiling subroutine `mcount'.  Before calling, the assembler code
2450    must load the address of a counter variable into a register where `mcount'
2451    expects to find the address.  The name of this variable is `LP' followed by
2452    the number LABELNO, so you would generate the name using `LP%d' in a
2453    `fprintf'.
2454
2455    The details of how the address should be passed to `mcount' are determined
2456    by your operating system environment, not by GNU CC.  To figure them out,
2457    compile a small program for profiling using the system's installed C
2458    compiler and look at the assembler code that results.
2459
2460    This declaration must be present, but it can be an abort if profiling is
2461    not implemented.  */
2462      
2463 #define FUNCTION_PROFILER(FILE, LABELNO) abort ()
2464
2465 /* Define this macro if the code for function profiling should come before the
2466    function prologue.  Normally, the profiling code comes after.  */
2467 /* #define PROFILE_BEFORE_PROLOGUE */
2468
2469 /* A C statement or compound statement to output to FILE some assembler code to
2470    initialize basic-block profiling for the current object module.  The global
2471    compile flag `profile_block_flag' distingishes two profile modes.
2472
2473    profile_block_flag != 2'
2474         Output code to call the subroutine `__bb_init_func' once per
2475         object module, passing it as its sole argument the address of
2476         a block allocated in the object module.
2477
2478         The name of the block is a local symbol made with this
2479         statement:
2480
2481              ASM_GENERATE_INTERNAL_LABEL (BUFFER, "LPBX", 0);
2482
2483         Of course, since you are writing the definition of
2484         `ASM_GENERATE_INTERNAL_LABEL' as well as that of this macro,
2485         you can take a short cut in the definition of this macro and
2486         use the name that you know will result.
2487
2488         The first word of this block is a flag which will be nonzero
2489         if the object module has already been initialized.  So test
2490         this word first, and do not call `__bb_init_func' if the flag
2491         is nonzero.  BLOCK_OR_LABEL contains a unique number which
2492         may be used to generate a label as a branch destination when
2493         `__bb_init_func' will not be called.
2494
2495         Described in assembler language, the code to be output looks
2496         like:
2497
2498                cmp (LPBX0),0
2499                bne local_label
2500                parameter1 <- LPBX0
2501                call __bb_init_func
2502              local_label:
2503
2504    profile_block_flag == 2'
2505         Output code to call the subroutine `__bb_init_trace_func' and
2506         pass two parameters to it.  The first parameter is the same as
2507         for `__bb_init_func'.  The second parameter is the number of
2508         the first basic block of the function as given by
2509         BLOCK_OR_LABEL.  Note that `__bb_init_trace_func' has to be
2510         called, even if the object module has been initialized
2511         already.
2512
2513         Described in assembler language, the code to be output looks
2514         like:
2515              parameter1 <- LPBX0
2516              parameter2 <- BLOCK_OR_LABEL
2517              call __bb_init_trace_func  */
2518 /* #define FUNCTION_BLOCK_PROFILER (FILE, LABELNO) */
2519
2520 /* A C statement or compound statement to output to FILE some assembler code to
2521    increment the count associated with the basic block number BLOCKNO.  The
2522    global compile flag `profile_block_flag' distingishes two profile modes.
2523
2524    profile_block_flag != 2'
2525         Output code to increment the counter directly.  Basic blocks
2526         are numbered separately from zero within each compilation.
2527         The count associated with block number BLOCKNO is at index
2528         BLOCKNO in a vector of words; the name of this array is a
2529         local symbol made with this statement:
2530
2531              ASM_GENERATE_INTERNAL_LABEL (BUFFER, "LPBX", 2);
2532
2533         Of course, since you are writing the definition of
2534         `ASM_GENERATE_INTERNAL_LABEL' as well as that of this macro,
2535         you can take a short cut in the definition of this macro and
2536         use the name that you know will result.
2537
2538         Described in assembler language, the code to be output looks
2539         like:
2540
2541              inc (LPBX2+4*BLOCKNO)
2542
2543    profile_block_flag == 2'
2544         Output code to initialize the global structure `__bb' and
2545         call the function `__bb_trace_func', which will increment the
2546         counter.
2547
2548         `__bb' consists of two words.  In the first word, the current
2549         basic block number, as given by BLOCKNO, has to be stored.  In
2550         the second word, the address of a block allocated in the
2551         object module has to be stored.  The address is given by the
2552         label created with this statement:
2553
2554              ASM_GENERATE_INTERNAL_LABEL (BUFFER, "LPBX", 0);
2555
2556         Described in assembler language, the code to be output looks
2557         like:
2558              move BLOCKNO -> (__bb)
2559              move LPBX0 -> (__bb+4)
2560              call __bb_trace_func  */
2561 /* #define BLOCK_PROFILER(FILE, BLOCKNO) */
2562
2563 /* A C statement or compound statement to output to FILE assembler
2564    code to call function `__bb_trace_ret'.  The assembler code should
2565    only be output if the global compile flag `profile_block_flag' ==
2566    2.  This macro has to be used at every place where code for
2567    returning from a function is generated (e.g. `FUNCTION_EPILOGUE').
2568    Although you have to write the definition of `FUNCTION_EPILOGUE'
2569    as well, you have to define this macro to tell the compiler, that
2570    the proper call to `__bb_trace_ret' is produced.  */
2571 /* #define FUNCTION_BLOCK_PROFILER_EXIT(FILE) */
2572
2573 /* A C statement or compound statement to save all registers, which may be
2574    clobbered by a function call, including condition codes.  The `asm'
2575    statement will be mostly likely needed to handle this task.  Local labels in
2576    the assembler code can be concatenated with the string ID, to obtain a
2577    unique lable name.
2578
2579    Registers or condition codes clobbered by `FUNCTION_PROLOGUE' or
2580    `FUNCTION_EPILOGUE' must be saved in the macros `FUNCTION_BLOCK_PROFILER',
2581    `FUNCTION_BLOCK_PROFILER_EXIT' and `BLOCK_PROFILER' prior calling
2582    `__bb_init_trace_func', `__bb_trace_ret' and `__bb_trace_func' respectively.  */
2583 /* #define MACHINE_STATE_SAVE(ID) */
2584
2585 /* A C statement or compound statement to restore all registers, including
2586    condition codes, saved by `MACHINE_STATE_SAVE'.
2587
2588    Registers or condition codes clobbered by `FUNCTION_PROLOGUE' or
2589    `FUNCTION_EPILOGUE' must be restored in the macros
2590    `FUNCTION_BLOCK_PROFILER', `FUNCTION_BLOCK_PROFILER_EXIT' and
2591    `BLOCK_PROFILER' after calling `__bb_init_trace_func', `__bb_trace_ret' and
2592    `__bb_trace_func' respectively.  */
2593 /* #define MACHINE_STATE_RESTORE(ID) */
2594
2595 /* A C function or functions which are needed in the library to support block
2596    profiling.  */
2597 /* #define BLOCK_PROFILER_CODE */
2598
2599 \f
2600 /* If the target has particular reasons why a function cannot be inlined,
2601    it may define the TARGET_CANNOT_INLINE_P.  This macro takes one argument,
2602    the DECL describing the function.  The function should NULL if the function
2603    *can* be inlined.  Otherwise it should return a pointer to a string containing
2604    a message describing why the function could not be inlined.  The message will
2605    displayed if the '-Winline' command line switch has been given.  If the message
2606    contains a '%s' sequence, this will be replaced by the name of the function.  */
2607 /* #define TARGET_CANNOT_INLINE_P(FN_DECL) stormy16_cannot_inline_p (FN_DECL) */
2608 \f
2609 /* Implementing the Varargs Macros.  */
2610
2611 /* If defined, is a C expression that produces the machine-specific code for a
2612    call to `__builtin_saveregs'.  This code will be moved to the very beginning
2613    of the function, before any parameter access are made.  The return value of
2614    this function should be an RTX that contains the value to use as the return
2615    of `__builtin_saveregs'.
2616
2617    If this macro is not defined, the compiler will output an ordinary call to
2618    the library function `__builtin_saveregs'.  */
2619 /* #define EXPAND_BUILTIN_SAVEREGS() */
2620
2621 /* This macro offers an alternative to using `__builtin_saveregs' and defining
2622    the macro `EXPAND_BUILTIN_SAVEREGS'.  Use it to store the anonymous register
2623    arguments into the stack so that all the arguments appear to have been
2624    passed consecutively on the stack.  Once this is done, you can use the
2625    standard implementation of varargs that works for machines that pass all
2626    their arguments on the stack.
2627
2628    The argument ARGS_SO_FAR is the `CUMULATIVE_ARGS' data structure, containing
2629    the values that obtain after processing of the named arguments.  The
2630    arguments MODE and TYPE describe the last named argument--its machine mode
2631    and its data type as a tree node.
2632
2633    The macro implementation should do two things: first, push onto the stack
2634    all the argument registers *not* used for the named arguments, and second,
2635    store the size of the data thus pushed into the `int'-valued variable whose
2636    name is supplied as the argument PRETEND_ARGS_SIZE.  The value that you
2637    store here will serve as additional offset for setting up the stack frame.
2638
2639    Because you must generate code to push the anonymous arguments at compile
2640    time without knowing their data types, `SETUP_INCOMING_VARARGS' is only
2641    useful on machines that have just a single category of argument register and
2642    use it uniformly for all data types.
2643
2644    If the argument SECOND_TIME is nonzero, it means that the arguments of the
2645    function are being analyzed for the second time.  This happens for an inline
2646    function, which is not actually compiled until the end of the source file.
2647    The macro `SETUP_INCOMING_VARARGS' should not generate any instructions in
2648    this case.  */
2649 #define SETUP_INCOMING_VARARGS(ARGS_SO_FAR, MODE, TYPE, PRETEND_ARGS_SIZE, SECOND_TIME) \
2650   if (! SECOND_TIME) \
2651     stormy16_setup_incoming_varargs (ARGS_SO_FAR, MODE, TYPE, & PRETEND_ARGS_SIZE)
2652
2653 /* Define this macro if the location where a function argument is passed
2654    depends on whether or not it is a named argument.
2655
2656    This macro controls how the NAMED argument to `FUNCTION_ARG' is set for
2657    varargs and stdarg functions.  With this macro defined, the NAMED argument
2658    is always true for named arguments, and false for unnamed arguments.  If
2659    this is not defined, but `SETUP_INCOMING_VARARGS' is defined, then all
2660    arguments are treated as named.  Otherwise, all named arguments except the
2661    last are treated as named.  */
2662 /* #define STRICT_ARGUMENT_NAMING  1 */
2663
2664 /* Build up the stdarg/varargs va_list type tree, assinging it to NODE.  If not
2665    defined, it is assumed that va_list is a void * pointer.  */
2666 #define BUILD_VA_LIST_TYPE(NODE) \
2667   ((NODE) = stormy16_build_va_list ())
2668
2669 /* Implement the stdarg/varargs va_start macro.  STDARG_P is non-zero if this
2670    is stdarg.h instead of varargs.h.  VALIST is the tree of the va_list
2671    variable to initialize.  NEXTARG is the machine independent notion of the
2672    'next' argument after the variable arguments.  If not defined, a standard
2673    implementation will be defined that works for arguments passed on the stack.  */
2674 #define EXPAND_BUILTIN_VA_START(STDARG_P, VALIST, NEXTARG) \
2675   stormy16_expand_builtin_va_start (STDARG_P, VALIST, NEXTARG)
2676
2677 /* Implement the stdarg/varargs va_arg macro.  VALIST is the variable of type
2678    va_list as a tree, TYPE is the type passed to va_arg.  */
2679 #define EXPAND_BUILTIN_VA_ARG(VALIST, TYPE) \
2680   stormy16_expand_builtin_va_arg (VALIST, TYPE)
2681
2682 /* Implement the stdarg/varargs va_end macro.  VALIST is the variable of type
2683    va_list as a tree.  */
2684 /* #define EXPAND_BUILTIN_VA_END(VALIST) */
2685
2686 \f
2687 /* Trampolines for Nested Functions.  */
2688
2689 /* A C statement to output, on the stream FILE, assembler code for a block of
2690    data that contains the constant parts of a trampoline.  This code should not
2691    include a label--the label is taken care of automatically.  */
2692 /* #define TRAMPOLINE_TEMPLATE(FILE) */
2693
2694 /* The name of a subroutine to switch to the section in which the trampoline
2695    template is to be placed.  The default is a value of `readonly_data_section',
2696    which places the trampoline in the section containing read-only data.  */
2697 /* #define TRAMPOLINE_SECTION */
2698
2699 /* A C expression for the size in bytes of the trampoline, as an integer.  */
2700 #define TRAMPOLINE_SIZE 8
2701
2702 /* Alignment required for trampolines, in bits.
2703
2704    If you don't define this macro, the value of `BIGGEST_ALIGNMENT' is used for
2705    aligning trampolines.  */
2706 #define TRAMPOLINE_ALIGNMENT 16
2707
2708 /* A C statement to initialize the variable parts of a trampoline.  ADDR is an
2709    RTX for the address of the trampoline; FNADDR is an RTX for the address of
2710    the nested function; STATIC_CHAIN is an RTX for the static chain value that
2711    should be passed to the function when it is called.  */
2712 #define INITIALIZE_TRAMPOLINE(ADDR, FNADDR, STATIC_CHAIN) \
2713   stormy16_initialize_trampoline (ADDR, FNADDR, STATIC_CHAIN)
2714
2715 /* A C expression to allocate run-time space for a trampoline.  The expression
2716    value should be an RTX representing a memory reference to the space for the
2717    trampoline.
2718
2719    If this macro is not defined, by default the trampoline is allocated as a
2720    stack slot.  This default is right for most machines.  The exceptions are
2721    machines where it is impossible to execute instructions in the stack area.
2722    On such machines, you may have to implement a separate stack, using this
2723    macro in conjunction with `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE'.
2724
2725    FP points to a data structure, a `struct function', which describes the
2726    compilation status of the immediate containing function of the function
2727    which the trampoline is for.  Normally (when `ALLOCATE_TRAMPOLINE' is not
2728    defined), the stack slot for the trampoline is in the stack frame of this
2729    containing function.  Other allocation strategies probably must do something
2730    analogous with this information.  */
2731 /* #define ALLOCATE_TRAMPOLINE(FP) */
2732
2733 /* Implementing trampolines is difficult on many machines because they have
2734    separate instruction and data caches.  Writing into a stack location fails
2735    to clear the memory in the instruction cache, so when the program jumps to
2736    that location, it executes the old contents.
2737
2738    Here are two possible solutions.  One is to clear the relevant parts of the
2739    instruction cache whenever a trampoline is set up.  The other is to make all
2740    trampolines identical, by having them jump to a standard subroutine.  The
2741    former technique makes trampoline execution faster; the latter makes
2742    initialization faster.
2743
2744    To clear the instruction cache when a trampoline is initialized, define the
2745    following macros which describe the shape of the cache.  */
2746
2747 /* The total size in bytes of the cache.  */
2748 /* #define INSN_CACHE_SIZE */
2749
2750 /* The length in bytes of each cache line.  The cache is divided into cache
2751    lines which are disjoint slots, each holding a contiguous chunk of data
2752    fetched from memory.  Each time data is brought into the cache, an entire
2753    line is read at once.  The data loaded into a cache line is always aligned
2754    on a boundary equal to the line size.  */
2755 /* #define INSN_CACHE_LINE_WIDTH */
2756
2757 /* The number of alternative cache lines that can hold any particular memory
2758    location.  */
2759 /* #define INSN_CACHE_DEPTH */
2760
2761 /* Alternatively, if the machine has system calls or instructions to clear the
2762    instruction cache directly, you can define the following macro.  */
2763
2764 /* If defined, expands to a C expression clearing the *instruction cache* in
2765    the specified interval.  If it is not defined, and the macro INSN_CACHE_SIZE
2766    is defined, some generic code is generated to clear the cache.  The
2767    definition of this macro would typically be a series of `asm' statements.
2768    Both BEG and END are both pointer expressions.  */
2769 /* #define CLEAR_INSN_CACHE (BEG, END) */
2770
2771 /* To use a standard subroutine, define the following macro.  In addition, you
2772    must make sure that the instructions in a trampoline fill an entire cache
2773    line with identical instructions, or else ensure that the beginning of the
2774    trampoline code is always aligned at the same point in its cache line.  Look
2775    in `m68k.h' as a guide.  */
2776
2777 /* Define this macro if trampolines need a special subroutine to do their work.
2778    The macro should expand to a series of `asm' statements which will be
2779    compiled with GNU CC.  They go in a library function named
2780    `__transfer_from_trampoline'.
2781
2782    If you need to avoid executing the ordinary prologue code of a compiled C
2783    function when you jump to the subroutine, you can do so by placing a special
2784    label of your own in the assembler code.  Use one `asm' statement to
2785    generate an assembler label, and another to make the label global.  Then
2786    trampolines can use that label to jump directly to your special assembler
2787    code.  */
2788 /* #define TRANSFER_FROM_TRAMPOLINE */
2789
2790 \f
2791 /* Implicit Calls to Library Routines */
2792
2793 /* A C string constant giving the name of the function to call for
2794    multiplication of one signed full-word by another.  If you do not define
2795    this macro, the default name is used, which is `__mulsi3', a function
2796    defined in `libgcc.a'.  */
2797 /* #define MULSI3_LIBCALL */
2798
2799 /* A C string constant giving the name of the function to call for division of
2800    one signed full-word by another.  If you do not define this macro, the
2801    default name is used, which is `__divsi3', a function defined in `libgcc.a'.  */
2802 /* #define DIVSI3_LIBCALL */
2803
2804 /* A C string constant giving the name of the function to call for division of
2805    one unsigned full-word by another.  If you do not define this macro, the
2806    default name is used, which is `__udivsi3', a function defined in
2807    `libgcc.a'.  */
2808 /* #define UDIVSI3_LIBCALL */
2809
2810 /* A C string constant giving the name of the function to call for the
2811    remainder in division of one signed full-word by another.  If you do not
2812    define this macro, the default name is used, which is `__modsi3', a function
2813    defined in `libgcc.a'.  */
2814 /* #define MODSI3_LIBCALL */
2815
2816 /* A C string constant giving the name of the function to call for the
2817    remainder in division of one unsigned full-word by another.  If you do not
2818    define this macro, the default name is used, which is `__umodsi3', a
2819    function defined in `libgcc.a'.  */
2820 /* #define UMODSI3_LIBCALL */
2821
2822 /* A C string constant giving the name of the function to call for
2823    multiplication of one signed double-word by another.  If you do not define
2824    this macro, the default name is used, which is `__muldi3', a function
2825    defined in `libgcc.a'.  */
2826 /* #define MULDI3_LIBCALL */
2827
2828 /* A C string constant giving the name of the function to call for division of
2829    one signed double-word by another.  If you do not define this macro, the
2830    default name is used, which is `__divdi3', a function defined in `libgcc.a'.  */
2831 /* #define DIVDI3_LIBCALL */
2832
2833 /* A C string constant giving the name of the function to call for division of
2834    one unsigned full-word by another.  If you do not define this macro, the
2835    default name is used, which is `__udivdi3', a function defined in
2836    `libgcc.a'.  */
2837 /* #define UDIVDI3_LIBCALL */
2838
2839 /* A C string constant giving the name of the function to call for the
2840    remainder in division of one signed double-word by another.  If you do not
2841    define this macro, the default name is used, which is `__moddi3', a function
2842    defined in `libgcc.a'.  */
2843 /* #define MODDI3_LIBCALL */
2844
2845 /* A C string constant giving the name of the function to call for the
2846    remainder in division of one unsigned full-word by another.  If you do not
2847    define this macro, the default name is used, which is `__umoddi3', a
2848    function defined in `libgcc.a'.  */
2849 /* #define UMODDI3_LIBCALL */
2850
2851 /* Define this macro as a C statement that declares additional library routines
2852    renames existing ones. `init_optabs' calls this macro after initializing all
2853    the normal library routines.  */
2854 /* #define INIT_TARGET_OPTABS */
2855
2856 /* The value of `EDOM' on the target machine, as a C integer constant
2857    expression.  If you don't define this macro, GNU CC does not attempt to
2858    deposit the value of `EDOM' into `errno' directly.  Look in
2859    `/usr/include/errno.h' to find the value of `EDOM' on your system.
2860
2861    If you do not define `TARGET_EDOM', then compiled code reports domain errors
2862    by calling the library function and letting it report the error.  If
2863    mathematical functions on your system use `matherr' when there is an error,
2864    then you should leave `TARGET_EDOM' undefined so that `matherr' is used
2865    normally.  */
2866 /* #define TARGET_EDOM */
2867
2868 /* Define this macro as a C expression to create an rtl expression that refers
2869    to the global "variable" `errno'.  (On certain systems, `errno' may not
2870    actually be a variable.)  If you don't define this macro, a reasonable
2871    default is used.  */
2872 /* #define GEN_ERRNO_RTX */
2873
2874 /* Define this macro if GNU CC should generate calls to the System V (and ANSI
2875    C) library functions `memcpy' and `memset' rather than the BSD functions
2876    `bcopy' and `bzero'.
2877
2878    Defined in svr4.h.  */
2879 #define TARGET_MEM_FUNCTIONS
2880
2881 /* Define this macro if only `float' arguments cannot be passed to library
2882    routines (so they must be converted to `double').  This macro affects both
2883    how library calls are generated and how the library routines in `libgcc1.c'
2884    accept their arguments.  It is useful on machines where floating and fixed
2885    point arguments are passed differently, such as the i860.  */
2886 /* #define LIBGCC_NEEDS_DOUBLE */
2887
2888 /* Define this macro to override the type used by the library routines to pick
2889    up arguments of type `float'.  (By default, they use a union of `float' and
2890    `int'.)
2891
2892    The obvious choice would be `float'--but that won't work with traditional C
2893    compilers that expect all arguments declared as `float' to arrive as
2894    `double'.  To avoid this conversion, the library routines ask for the value
2895    as some other type and then treat it as a `float'.
2896
2897    On some systems, no other type will work for this.  For these systems, you
2898    must use `LIBGCC_NEEDS_DOUBLE' instead, to force conversion of the values
2899    `double' before they are passed.  */
2900 /* #define FLOAT_ARG_TYPE */
2901
2902 /* Define this macro to override the way library routines redesignate a `float'
2903    argument as a `float' instead of the type it was passed as.  The default is
2904    an expression which takes the `float' field of the union.  */
2905 /* #define FLOATIFY(PASSED_VALUE) */
2906
2907 /* Define this macro to override the type used by the library routines to
2908    return values that ought to have type `float'.  (By default, they use
2909    `int'.)
2910
2911    The obvious choice would be `float'--but that won't work with traditional C
2912    compilers gratuitously convert values declared as `float' into `double'.  */
2913 /* #define FLOAT_VALUE_TYPE */
2914
2915 /* Define this macro to override the way the value of a `float'-returning
2916    library routine should be packaged in order to return it.  These functions
2917    are actually declared to return type `FLOAT_VALUE_TYPE' (normally `int').
2918
2919    These values can't be returned as type `float' because traditional C
2920    compilers would gratuitously convert the value to a `double'.
2921
2922    A local variable named `intify' is always available when the macro `INTIFY'
2923    is used.  It is a union of a `float' field named `f' and a field named `i'
2924    whose type is `FLOAT_VALUE_TYPE' or `int'.
2925
2926    If you don't define this macro, the default definition works by copying the
2927    value through that union.  */
2928 /* #define INTIFY(FLOAT_VALUE) */
2929
2930 /* Define this macro as the name of the data type corresponding to `SImode' in
2931    the system's own C compiler.
2932
2933    You need not define this macro if that type is `long int', as it usually is.  */
2934 /* #define nongcc_SI_type */
2935
2936 /* Define this macro as the name of the data type corresponding to the
2937    word_mode in the system's own C compiler.
2938
2939    You need not define this macro if that type is `long int', as it usually is.  */
2940 /* #define nongcc_word_type */
2941
2942 /* Define these macros to supply explicit C statements to carry out various
2943    arithmetic operations on types `float' and `double' in the library routines
2944    in `libgcc1.c'.  See that file for a full list of these macros and their
2945    arguments.
2946
2947    On most machines, you don't need to define any of these macros, because the
2948    C compiler that comes with the system takes care of doing them.  */
2949 /* #define perform_... */
2950
2951 /* Define this macro to generate code for Objective C message sending using the
2952    calling convention of the NeXT system.  This calling convention involves
2953    passing the object, the selector and the method arguments all at once to the
2954    method-lookup library function.
2955
2956    The default calling convention passes just the object and the selector to
2957    the lookup function, which returns a pointer to the method.  */
2958 /* #define NEXT_OBJC_RUNTIME */
2959
2960 \f
2961 /* Addressing Modes */
2962
2963 /* Define this macro if the machine supports post-increment addressing.  */
2964 #define HAVE_POST_INCREMENT 1
2965
2966 /* Similar for other kinds of addressing.  */
2967 /* #define HAVE_PRE_INCREMENT 1 */
2968 /* #define HAVE_POST_DECREMENT 1 */
2969 #define HAVE_PRE_DECREMENT 1
2970
2971 /* A C expression that is 1 if the RTX X is a constant which is a valid
2972    address.  On most machines, this can be defined as `CONSTANT_P (X)', but a
2973    few machines are more restrictive in which constant addresses are supported.
2974
2975    `CONSTANT_P' accepts integer-values expressions whose values are not
2976    explicitly known, such as `symbol_ref', `label_ref', and `high' expressions
2977    and `const' arithmetic expressions, in addition to `const_int' and
2978    `const_double' expressions.  */
2979 #define CONSTANT_ADDRESS_P(X) CONSTANT_P (X)
2980
2981 /* A number, the maximum number of registers that can appear in a valid memory
2982    address.  Note that it is up to you to specify a value equal to the maximum
2983    number that `GO_IF_LEGITIMATE_ADDRESS' would ever accept.  */
2984 #define MAX_REGS_PER_ADDRESS 1
2985
2986 /* A C compound statement with a conditional `goto LABEL;' executed if X (an
2987    RTX) is a legitimate memory address on the target machine for a memory
2988    operand of mode MODE.
2989
2990    It usually pays to define several simpler macros to serve as subroutines for
2991    this one.  Otherwise it may be too complicated to understand.
2992
2993    This macro must exist in two variants: a strict variant and a non-strict
2994    one.  The strict variant is used in the reload pass.  It must be defined so
2995    that any pseudo-register that has not been allocated a hard register is
2996    considered a memory reference.  In contexts where some kind of register is
2997    required, a pseudo-register with no hard register must be rejected.
2998
2999    The non-strict variant is used in other passes.  It must be defined to
3000    accept all pseudo-registers in every context where some kind of register is
3001    required.
3002
3003    Compiler source files that want to use the strict variant of this macro
3004    define the macro `REG_OK_STRICT'.  You should use an `#ifdef REG_OK_STRICT'
3005    conditional to define the strict variant in that case and the non-strict
3006    variant otherwise.
3007
3008    Subroutines to check for acceptable registers for various purposes (one for
3009    base registers, one for index registers, and so on) are typically among the
3010    subroutines used to define `GO_IF_LEGITIMATE_ADDRESS'.  Then only these
3011    subroutine macros need have two variants; the higher levels of macros may be
3012    the same whether strict or not.
3013
3014    Normally, constant addresses which are the sum of a `symbol_ref' and an
3015    integer are stored inside a `const' RTX to mark them as constant.
3016    Therefore, there is no need to recognize such sums specifically as
3017    legitimate addresses.  Normally you would simply recognize any `const' as
3018    legitimate.
3019
3020    Usually `PRINT_OPERAND_ADDRESS' is not prepared to handle constant sums that
3021    are not marked with `const'.  It assumes that a naked `plus' indicates
3022    indexing.  If so, then you *must* reject such naked constant sums as
3023    illegitimate addresses, so that none of them will be given to
3024    `PRINT_OPERAND_ADDRESS'.
3025
3026    On some machines, whether a symbolic address is legitimate depends on the
3027    section that the address refers to.  On these machines, define the macro
3028    `ENCODE_SECTION_INFO' to store the information into the `symbol_ref', and
3029    then check for it here.  When you see a `const', you will have to look
3030    inside it to find the `symbol_ref' in order to determine the section.
3031
3032    The best way to modify the name string is by adding text to the beginning,
3033    with suitable punctuation to prevent any ambiguity.  Allocate the new name
3034    in `saveable_obstack'.  You will have to modify `ASM_OUTPUT_LABELREF' to
3035    remove and decode the added text and output the name accordingly, and define
3036    `STRIP_NAME_ENCODING' to access the original name string.
3037
3038    You can check the information stored here into the `symbol_ref' in the
3039    definitions of the macros `GO_IF_LEGITIMATE_ADDRESS' and
3040    `PRINT_OPERAND_ADDRESS'.  */
3041 #ifdef REG_OK_STRICT
3042 #define GO_IF_LEGITIMATE_ADDRESS(MODE, X, LABEL)        \
3043 do {                                                    \
3044   if (stormy16_legitimate_address_p (MODE, X, 1))       \
3045     goto LABEL;                                         \
3046 } while (0)
3047 #else
3048 #define GO_IF_LEGITIMATE_ADDRESS(MODE, X, LABEL)        \
3049 do {                                                    \
3050   if (stormy16_legitimate_address_p (MODE, X, 0))       \
3051     goto LABEL;                                         \
3052 } while (0)
3053 #endif
3054 /* A C expression that is nonzero if X (assumed to be a `reg' RTX) is valid for
3055    use as a base register.  For hard registers, it should always accept those
3056    which the hardware permits and reject the others.  Whether the macro accepts
3057    or rejects pseudo registers must be controlled by `REG_OK_STRICT' as
3058    described above.  This usually requires two variant definitions, of which
3059    `REG_OK_STRICT' controls the one actually used.  */
3060 #ifdef REG_OK_STRICT
3061 #define REG_OK_FOR_BASE_P(X)                                               \
3062   (REGNO_OK_FOR_BASE_P (REGNO (X)) && (REGNO (X) < FIRST_PSEUDO_REGISTER))
3063 #else
3064 #define REG_OK_FOR_BASE_P(X) REGNO_OK_FOR_BASE_P (REGNO (X))
3065 #endif
3066
3067 /* A C expression that is nonzero if X (assumed to be a `reg' RTX) is valid for
3068    use as an index register.
3069
3070    The difference between an index register and a base register is that the
3071    index register may be scaled.  If an address involves the sum of two
3072    registers, neither one of them scaled, then either one may be labeled the
3073    "base" and the other the "index"; but whichever labeling is used must fit
3074    the machine's constraints of which registers may serve in each capacity.
3075    The compiler will try both labelings, looking for one that is valid, and
3076    will reload one or both registers only if neither labeling works.  */
3077 #define REG_OK_FOR_INDEX_P(X) REG_OK_FOR_BASE_P (X)
3078
3079 /* A C compound statement that attempts to replace X with a valid memory
3080    address for an operand of mode MODE.  WIN will be a C statement label
3081    elsewhere in the code; the macro definition may use
3082
3083         GO_IF_LEGITIMATE_ADDRESS (MODE, X, WIN);
3084
3085    to avoid further processing if the address has become legitimate.
3086
3087    X will always be the result of a call to `break_out_memory_refs', and OLDX
3088    will be the operand that was given to that function to produce X.
3089
3090    The code generated by this macro should not alter the substructure of X.  If
3091    it transforms X into a more legitimate form, it should assign X (which will
3092    always be a C variable) a new value.
3093
3094    It is not necessary for this macro to come up with a legitimate address.
3095    The compiler has standard ways of doing so in all cases.  In fact, it is
3096    safe for this macro to do nothing.  But often a machine-dependent strategy
3097    can generate better code.  */
3098 #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
3099
3100 /* A C statement or compound statement with a conditional `goto LABEL;'
3101    executed if memory address X (an RTX) can have different meanings depending
3102    on the machine mode of the memory reference it is used for or if the address
3103    is valid for some modes but not others.
3104
3105    Autoincrement and autodecrement addresses typically have mode-dependent
3106    effects because the amount of the increment or decrement is the size of the
3107    operand being addressed.  Some machines have other mode-dependent addresses.
3108    Many RISC machines have no mode-dependent addresses.
3109
3110    You may assume that ADDR is a valid address for the machine.  
3111    
3112    On this chip, this is true if the address is valid with an offset
3113    of 0 but not of 6, because in that case it cannot be used as an
3114    address for DImode or DFmode, or if the address is a post-increment
3115    or pre-decrement address.
3116 */
3117 #define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR,LABEL)                        \
3118   if (stormy16_mode_dependent_address_p (ADDR))                         \
3119     goto LABEL
3120
3121 /* A C expression that is nonzero if X is a legitimate constant for an
3122    immediate operand on the target machine.  You can assume that X satisfies
3123    `CONSTANT_P', so you need not check this.  In fact, `1' is a suitable
3124    definition for this macro on machines where anything `CONSTANT_P' is valid.  */
3125 #define LEGITIMATE_CONSTANT_P(X) 1
3126
3127 \f
3128 /* Condition Code Status */
3129
3130 /* C code for a data type which is used for declaring the `mdep' component of
3131    `cc_status'.  It defaults to `int'.
3132
3133    This macro is not used on machines that do not use `cc0'.  */
3134 /* #define CC_STATUS_MDEP */
3135
3136 /* A C expression to initialize the `mdep' field to "empty".  The default
3137    definition does nothing, since most machines don't use the field anyway.  If
3138    you want to use the field, you should probably define this macro to
3139    initialize it.
3140
3141    This macro is not used on machines that do not use `cc0'.  */
3142 /* #define CC_STATUS_MDEP_INIT */
3143
3144 /* A C compound statement to set the components of `cc_status' appropriately
3145    for an insn INSN whose body is EXP.  It is this macro's responsibility to
3146    recognize insns that set the condition code as a byproduct of other activity
3147    as well as those that explicitly set `(cc0)'.
3148
3149    This macro is not used on machines that do not use `cc0'.
3150
3151    If there are insns that do not set the condition code but do alter other
3152    machine registers, this macro must check to see whether they invalidate the
3153    expressions that the condition code is recorded as reflecting.  For example,
3154    on the 68000, insns that store in address registers do not set the condition
3155    code, which means that usually `NOTICE_UPDATE_CC' can leave `cc_status'
3156    unaltered for such insns.  But suppose that the previous insn set the
3157    condition code based on location `a4@(102)' and the current insn stores a
3158    new value in `a4'.  Although the condition code is not changed by this, it
3159    will no longer be true that it reflects the contents of `a4@(102)'.
3160    Therefore, `NOTICE_UPDATE_CC' must alter `cc_status' in this case to say
3161    that nothing is known about the condition code value.
3162
3163    The definition of `NOTICE_UPDATE_CC' must be prepared to deal with the
3164    results of peephole optimization: insns whose patterns are `parallel' RTXs
3165    containing various `reg', `mem' or constants which are just the operands.
3166    The RTL structure of these insns is not sufficient to indicate what the
3167    insns actually do.  What `NOTICE_UPDATE_CC' should do when it sees one is
3168    just to run `CC_STATUS_INIT'.
3169
3170    A possible definition of `NOTICE_UPDATE_CC' is to call a function that looks
3171    at an attribute named, for example, `cc'.  This avoids having detailed
3172    information about patterns in two places, the `md' file and in
3173    `NOTICE_UPDATE_CC'.  */
3174 /* #define NOTICE_UPDATE_CC(EXP, INSN) */
3175
3176 /* A list of names to be used for additional modes for condition code values in
3177    registers.  These names are added to `enum machine_mode' and all have class
3178    `MODE_CC'.  By convention, they should start with `CC' and end with `mode'.
3179
3180    You should only define this macro if your machine does not use `cc0' and
3181    only if additional modes are required.  */
3182 /* #define EXTRA_CC_MODES */
3183
3184 /* Returns a mode from class `MODE_CC' to be used when comparison operation
3185    code OP is applied to rtx X and Y.  For example, on the Sparc,
3186    `SELECT_CC_MODE' is defined as (see *note Jump Patterns::.  for a
3187    description of the reason for this definition)
3188
3189         #define SELECT_CC_MODE(OP,X,Y) \
3190           (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT          \
3191            ? ((OP == EQ || OP == NE) ? CCFPmode : CCFPEmode)    \
3192            : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS    \
3193                || GET_CODE (X) == NEG) \
3194               ? CC_NOOVmode : CCmode))
3195
3196    You need not define this macro if `EXTRA_CC_MODES' is not defined.  */
3197 /* #define SELECT_CC_MODE(OP, X, Y) */
3198
3199 /* One some machines not all possible comparisons are defined, but you can
3200    convert an invalid comparison into a valid one.  For example, the Alpha does
3201    not have a `GT' comparison, but you can use an `LT' comparison instead and
3202    swap the order of the operands.
3203
3204    On such machines, define this macro to be a C statement to do any required
3205    conversions.  CODE is the initial comparison code and OP0 and OP1 are the
3206    left and right operands of the comparison, respectively.  You should modify
3207    CODE, OP0, and OP1 as required.
3208
3209    GNU CC will not assume that the comparison resulting from this macro is
3210    valid but will see if the resulting insn matches a pattern in the `md' file.
3211
3212    You need not define this macro if it would never change the comparison code
3213    or operands.  */
3214 /* #define CANONICALIZE_COMPARISON(CODE, OP0, OP1) */
3215
3216 /* A C expression whose value is one if it is always safe to reverse a
3217    comparison whose mode is MODE.  If `SELECT_CC_MODE' can ever return MODE for
3218    a floating-point inequality comparison, then `REVERSIBLE_CC_MODE (MODE)'
3219    must be zero.
3220
3221    You need not define this macro if it would always returns zero or if the
3222    floating-point format is anything other than `IEEE_FLOAT_FORMAT'.  For
3223    example, here is the definition used on the Sparc, where floating-point
3224    inequality comparisons are always given `CCFPEmode':
3225
3226         #define REVERSIBLE_CC_MODE(MODE)  ((MODE) != CCFPEmode)  */
3227 /* #define REVERSIBLE_CC_MODE(MODE) */
3228
3229 \f
3230 /* Describing Relative Costs of Operations */
3231
3232 /* A part of a C `switch' statement that describes the relative costs of
3233    constant RTL expressions.  It must contain `case' labels for expression
3234    codes `const_int', `const', `symbol_ref', `label_ref' and `const_double'.
3235    Each case must ultimately reach a `return' statement to return the relative
3236    cost of the use of that kind of constant value in an expression.  The cost
3237    may depend on the precise value of the constant, which is available for
3238    examination in X, and the rtx code of the expression in which it is
3239    contained, found in OUTER_CODE.
3240
3241    CODE is the expression code--redundant, since it can be obtained with
3242    `GET_CODE (X)'.  */
3243 /* #define CONST_COSTS(X, CODE, OUTER_CODE)  */     
3244
3245 /* Like `CONST_COSTS' but applies to nonconstant RTL expressions.  This can be
3246    used, for example, to indicate how costly a multiply instruction is.  In
3247    writing this macro, you can use the construct `COSTS_N_INSNS (N)' to specify
3248    a cost equal to N fast instructions.  OUTER_CODE is the code of the
3249    expression in which X is contained.
3250
3251    This macro is optional; do not define it if the default cost assumptions are
3252    adequate for the target machine.  */
3253 /* #define RTX_COSTS(X, CODE, OUTER_CODE) */
3254
3255 /* An expression giving the cost of an addressing mode that contains ADDRESS.
3256    If not defined, the cost is computed from the ADDRESS expression and the
3257    `CONST_COSTS' values.
3258
3259    For most CISC machines, the default cost is a good approximation of the true
3260    cost of the addressing mode.  However, on RISC machines, all instructions
3261    normally have the same length and execution time.  Hence all addresses will
3262    have equal costs.
3263
3264    In cases where more than one form of an address is known, the form with the
3265    lowest cost will be used.  If multiple forms have the same, lowest, cost,
3266    the one that is the most complex will be used.
3267
3268    For example, suppose an address that is equal to the sum of a register and a
3269    constant is used twice in the same basic block.  When this macro is not
3270    defined, the address will be computed in a register and memory references
3271    will be indirect through that register.  On machines where the cost of the
3272    addressing mode containing the sum is no higher than that of a simple
3273    indirect reference, this will produce an additional instruction and possibly
3274    require an additional register.  Proper specification of this macro
3275    eliminates this overhead for such machines.
3276
3277    Similar use of this macro is made in strength reduction of loops.
3278
3279    ADDRESS need not be valid as an address.  In such a case, the cost is not
3280    relevant and can be any value; invalid addresses need not be assigned a
3281    different cost.
3282
3283    On machines where an address involving more than one register is as cheap as
3284    an address computation involving only one register, defining `ADDRESS_COST'
3285    to reflect this can cause two registers to be live over a region of code
3286    where only one would have been if `ADDRESS_COST' were not defined in that
3287    manner.  This effect should be considered in the definition of this macro.
3288    Equivalent costs should probably only be given to addresses with different
3289    numbers of registers on machines with lots of registers.
3290
3291    This macro will normally either not be defined or be defined as a constant.  */
3292 /* #define ADDRESS_COST(ADDRESS) */
3293
3294 /* A C expression for the cost of moving data of mode MODE from a
3295    register in class FROM to one in class TO.  The classes are
3296    expressed using the enumeration values such as `GENERAL_REGS'.  A
3297    value of 4 is the default; other values are interpreted relative to
3298    that.
3299
3300    It is not required that the cost always equal 2 when FROM is the same as TO;
3301    on some machines it is expensive to move between registers if they are not
3302    general registers.
3303
3304    If reload sees an insn consisting of a single `set' between two hard
3305    registers, and if `REGISTER_MOVE_COST' applied to their classes returns a
3306    value of 2, reload does not check to ensure that the constraints of the insn
3307    are met.  Setting a cost of other than 2 will allow reload to verify that
3308    the constraints are met.  You should do this if the `movM' pattern's
3309    constraints do not allow such copying.  */
3310 #define REGISTER_MOVE_COST(MODE, FROM, TO) 2
3311
3312 /* A C expression for the cost of moving data of mode M between a register and
3313    memory.  A value of 2 is the default; this cost is relative to those in
3314    `REGISTER_MOVE_COST'.
3315
3316    If moving between registers and memory is more expensive than between two
3317    registers, you should define this macro to express the relative cost.  */
3318 #define MEMORY_MOVE_COST(M,C,I) 5
3319
3320 /* A C expression for the cost of a branch instruction.  A value of 1 is the
3321    default; other values are interpreted relative to that.  */
3322
3323 #define BRANCH_COST 5
3324
3325 /* Here are additional macros which do not specify precise relative costs, but
3326    only that certain actions are more expensive than GNU CC would ordinarily
3327    expect.  */
3328
3329 /* Define this macro as a C expression which is nonzero if accessing less than
3330    a word of memory (i.e. a `char' or a `short') is no faster than accessing a
3331    word of memory, i.e., if such access require more than one instruction or if
3332    there is no difference in cost between byte and (aligned) word loads.
3333
3334    When this macro is not defined, the compiler will access a field by finding
3335    the smallest containing object; when it is defined, a fullword load will be
3336    used if alignment permits.  Unless bytes accesses are faster than word
3337    accesses, using word accesses is preferable since it may eliminate
3338    subsequent memory access if subsequent accesses occur to other fields in the
3339    same word of the structure, but to different bytes.  */
3340 #define SLOW_BYTE_ACCESS 0
3341
3342 /* Define this macro if zero-extension (of a `char' or `short' to an `int') can
3343    be done faster if the destination is a register that is known to be zero.
3344
3345    If you define this macro, you must have instruction patterns that recognize
3346    RTL structures like this:
3347
3348         (set (strict_low_part (subreg:QI (reg:SI ...) 0)) ...)
3349
3350    and likewise for `HImode'.  */
3351 #define SLOW_ZERO_EXTEND 0
3352
3353 /* Define this macro to be the value 1 if unaligned accesses have a cost many
3354    times greater than aligned accesses, for example if they are emulated in a
3355    trap handler.
3356
3357    When this macro is non-zero, the compiler will act as if `STRICT_ALIGNMENT'
3358    were non-zero when generating code for block moves.  This can cause
3359    significantly more instructions to be produced.  Therefore, do not set this
3360    macro non-zero if unaligned accesses only add a cycle or two to the time for
3361    a memory access.
3362
3363    If the value of this macro is always zero, it need not be defined.  */
3364 /* #define SLOW_UNALIGNED_ACCESS */
3365
3366 /* Define this macro to inhibit strength reduction of memory addresses.  (On
3367    some machines, such strength reduction seems to do harm rather than good.)  */
3368 /* #define DONT_REDUCE_ADDR */
3369
3370 /* The number of scalar move insns which should be generated instead of a
3371    string move insn or a library call.  Increasing the value will always make
3372    code faster, but eventually incurs high cost in increased code size.
3373
3374    If you don't define this, a reasonable default is used.  */
3375 /* #define MOVE_RATIO */
3376
3377 /* Define this macro if it is as good or better to call a constant function
3378    address than to call an address kept in a register.  */
3379 #define NO_FUNCTION_CSE
3380
3381 /* Define this macro if it is as good or better for a function to call itself
3382    with an explicit address than to call an address kept in a register.  */
3383 #define NO_RECURSIVE_FUNCTION_CSE
3384
3385 /* A C statement (sans semicolon) to update the integer variable COST based on
3386    the relationship between INSN that is dependent on DEP_INSN through the
3387    dependence LINK.  The default is to make no adjustment to COST.  This can be
3388    used for example to specify to the scheduler that an output- or
3389    anti-dependence does not incur the same cost as a data-dependence.  */
3390 /* #define ADJUST_COST(INSN, LINK, DEP_INSN, COST) */
3391
3392 /* A C statement (sans semicolon) to update the integer scheduling
3393    priority `INSN_PRIORITY(INSN)'.  Reduce the priority to execute
3394    the INSN earlier, increase the priority to execute INSN later.
3395    Do not define this macro if you do not need to adjust the
3396    scheduling priorities of insns.  */
3397 /* #define ADJUST_PRIORITY (INSN) */
3398
3399 \f
3400 /* Dividing the output into sections.  */
3401
3402 /* A C expression whose value is a string containing the assembler operation
3403    that should precede instructions and read-only data.  Normally `".text"' is
3404    right.  */
3405 #define TEXT_SECTION_ASM_OP ".text"
3406
3407 /* A C expression whose value is a string containing the assembler operation to
3408    identify the following data as writable initialized data.  Normally
3409    `".data"' is right.  */
3410 #define DATA_SECTION_ASM_OP ".data"
3411
3412 /* if defined, a C expression whose value is a string containing the assembler
3413    operation to identify the following data as shared data.  If not defined,
3414    `DATA_SECTION_ASM_OP' will be used.  */
3415 /* #define SHARED_SECTION_ASM_OP */
3416
3417 /* If defined, a C expression whose value is a string containing the
3418    assembler operation to identify the following data as
3419    uninitialized global data.  If not defined, and neither
3420    `ASM_OUTPUT_BSS' nor `ASM_OUTPUT_ALIGNED_BSS' are defined,
3421    uninitialized global data will be output in the data section if
3422    `-fno-common' is passed, otherwise `ASM_OUTPUT_COMMON' will be
3423    used.  */
3424 #define BSS_SECTION_ASM_OP ".bss"
3425
3426 /* If defined, a C expression whose value is a string containing the
3427    assembler operation to identify the following data as
3428    uninitialized global shared data.  If not defined, and
3429    `BSS_SECTION_ASM_OP' is, the latter will be used.  */
3430 /* #define SHARED_BSS_SECTION_ASM_OP */
3431
3432 /* Define the pseudo-ops used to switch to the .ctors and .dtors sections.
3433    There are no shared libraries on this target so these sections need
3434    not be writable.
3435
3436    Defined in elfos.h.  */
3437
3438 #undef CTORS_SECTION_ASM_OP
3439 #undef DTORS_SECTION_ASM_OP
3440 #define CTORS_SECTION_ASM_OP    "\t.section\t.ctors,\"a\""
3441 #define DTORS_SECTION_ASM_OP    "\t.section\t.dtors,\"a\""
3442
3443 /* A list of names for sections other than the standard two, which are
3444    `in_text' and `in_data'.  You need not define this macro on a system with no
3445    other sections (that GCC needs to use).
3446
3447    Defined in svr4.h.  */
3448 /* #define EXTRA_SECTIONS */
3449
3450 /* One or more functions to be defined in `varasm.c'.  These functions should
3451    do jobs analogous to those of `text_section' and `data_section', for your
3452    additional sections.  Do not define this macro if you do not define
3453    `EXTRA_SECTIONS'.
3454
3455    Defined in svr4.h.  */
3456 /* #define EXTRA_SECTION_FUNCTIONS */
3457
3458 /* On most machines, read-only variables, constants, and jump tables are placed
3459    in the text section.  If this is not the case on your machine, this macro
3460    should be defined to be the name of a function (either `data_section' or a
3461    function defined in `EXTRA_SECTIONS') that switches to the section to be
3462    used for read-only items.
3463
3464    If these items should be placed in the text section, this macro should not
3465    be defined.  */
3466 /* #define READONLY_DATA_SECTION */
3467
3468 /* A C statement or statements to switch to the appropriate section for output
3469    of EXP.  You can assume that EXP is either a `VAR_DECL' node or a constant
3470    of some sort.  RELOC indicates whether the initial value of EXP requires
3471    link-time relocations.  Select the section by calling `text_section' or one
3472    of the alternatives for other sections.
3473
3474    Do not define this macro if you put all read-only variables and constants in
3475    the read-only data section (usually the text section).
3476
3477    Defined in svr4.h.  */
3478 /* #define SELECT_SECTION(EXP, RELOC, ALIGN) */
3479
3480 /* A C statement or statements to switch to the appropriate section for output
3481    of RTX in mode MODE.  You can assume that RTX is some kind of constant in
3482    RTL.  The argument MODE is redundant except in the case of a `const_int'
3483    rtx.  Select the section by calling `text_section' or one of the
3484    alternatives for other sections.
3485
3486    Do not define this macro if you put all constants in the read-only data
3487    section.
3488
3489    Defined in svr4.h.  */
3490 /* #define SELECT_RTX_SECTION(MODE, RTX, ALIGN) */
3491
3492 /* Define this macro if jump tables (for `tablejump' insns) should be output in
3493    the text section, along with the assembler instructions.  Otherwise, the
3494    readonly data section is used.
3495
3496    This macro is irrelevant if there is no separate readonly data section.  */
3497 #define JUMP_TABLES_IN_TEXT_SECTION 1
3498
3499 /* Define this macro if references to a symbol must be treated differently
3500    depending on something about the variable or function named by the symbol
3501    (such as what section it is in).
3502
3503    The macro definition, if any, is executed immediately after the rtl for DECL
3504    has been created and stored in `DECL_RTL (DECL)'.  The value of the rtl will
3505    be a `mem' whose address is a `symbol_ref'.
3506
3507    The usual thing for this macro to do is to record a flag in the `symbol_ref'
3508    (such as `SYMBOL_REF_FLAG') or to store a modified name string in the
3509    `symbol_ref' (if one bit is not enough information).  */
3510 #define ENCODE_SECTION_INFO(DECL)  stormy16_encode_section_info(DECL)
3511
3512 /* Decode SYM_NAME and store the real name part in VAR, sans the characters
3513    that encode section info.  Define this macro if `ENCODE_SECTION_INFO' alters
3514    the symbol's name string.  */
3515 /* #define STRIP_NAME_ENCODING(VAR, SYM_NAME) */
3516
3517 /* A C statement to build up a unique section name, expressed as a
3518    STRING_CST node, and assign it to `DECL_SECTION_NAME (DECL)'.
3519    RELOC indicates whether the initial value of EXP requires
3520    link-time relocations.  If you do not define this macro, GNU CC
3521    will use the symbol name prefixed by `.' as the section name.
3522
3523    Defined in svr4.h.  */
3524 /* #define UNIQUE_SECTION(DECL, RELOC) */
3525
3526 \f
3527 /* Position Independent Code.  */
3528
3529 /* The register number of the register used to address a table of static data
3530    addresses in memory.  In some cases this register is defined by a
3531    processor's "application binary interface" (ABI).  When this macro is
3532    defined, RTL is generated for this register once, as with the stack pointer
3533    and frame pointer registers.  If this macro is not defined, it is up to the
3534    machine-dependent files to allocate such a register (if necessary).  */
3535 /* #define PIC_OFFSET_TABLE_REGNUM */
3536
3537 /* Define this macro if the register defined by `PIC_OFFSET_TABLE_REGNUM' is
3538    clobbered by calls.  Do not define this macro if `PPIC_OFFSET_TABLE_REGNUM'
3539    is not defined.  */
3540 /* #define PIC_OFFSET_TABLE_REG_CALL_CLOBBERED */
3541
3542 /* By generating position-independent code, when two different programs (A and
3543    B) share a common library (libC.a), the text of the library can be shared
3544    whether or not the library is linked at the same address for both programs.
3545    In some of these environments, position-independent code requires not only
3546    the use of different addressing modes, but also special code to enable the
3547    use of these addressing modes.
3548
3549    The `FINALIZE_PIC' macro serves as a hook to emit these special codes once
3550    the function is being compiled into assembly code, but not before.  (It is
3551    not done before, because in the case of compiling an inline function, it
3552    would lead to multiple PIC prologues being included in functions which used
3553    inline functions and were compiled to assembly language.)  */
3554 /* #define FINALIZE_PIC */
3555
3556 /* A C expression that is nonzero if X is a legitimate immediate operand on the
3557    target machine when generating position independent code.  You can assume
3558    that X satisfies `CONSTANT_P', so you need not check this.  You can also
3559    assume FLAG_PIC is true, so you need not check it either.  You need not
3560    define this macro if all constants (including `SYMBOL_REF') can be immediate
3561    operands when generating position independent code.  */
3562 /* #define LEGITIMATE_PIC_OPERAND_P(X) */
3563
3564 \f
3565 /* The Overall Framework of an Assembler File.  */
3566
3567 /* A C expression which outputs to the stdio stream STREAM some appropriate
3568    text to go at the start of an assembler file.
3569
3570    Normally this macro is defined to output a line containing `#NO_APP', which
3571    is a comment that has no effect on most assemblers but tells the GNU
3572    assembler that it can save time by not checking for certain assembler
3573    constructs.
3574
3575    On systems that use SDB, it is necessary to output certain commands; see
3576    `attasm.h'.
3577
3578    Defined in svr4.h.  */
3579 /* #define ASM_FILE_START(STREAM) */
3580
3581 /* A C expression which outputs to the stdio stream STREAM some appropriate
3582    text to go at the end of an assembler file.
3583
3584    If this macro is not defined, the default is to output nothing special at
3585    the end of the file.  Most systems don't require any definition.
3586
3587    On systems that use SDB, it is necessary to output certain commands; see
3588    `attasm.h'.
3589
3590    Defined in svr4.h.  */
3591 /* #define ASM_FILE_END(STREAM) */
3592
3593 /* A C statement to output assembler commands which will identify the object
3594    file as having been compiled with GNU CC (or another GNU compiler).
3595
3596    If you don't define this macro, the string `gcc_compiled.:' is output.  This
3597    string is calculated to define a symbol which, on BSD systems, will never be
3598    defined for any other reason.  GDB checks for the presence of this symbol
3599    when reading the symbol table of an executable.
3600
3601    On non-BSD systems, you must arrange communication with GDB in some other
3602    fashion.  If GDB is not used on your system, you can define this macro with
3603    an empty body.
3604
3605    Defined in svr4.h.  */
3606 /* #define ASM_IDENTIFY_GCC(FILE) */
3607
3608 /* Like ASM_IDENTIFY_GCC, but used when dbx debugging is selected to emit
3609    a stab the debugger uses to identify gcc as the compiler that is emitted
3610    after the stabs for the filename, which makes it easier for GDB to parse.
3611
3612    Defined in svr4.h.  */
3613 /* #define ASM_IDENTIFY_GCC_AFTER_SOURCE(FILE) */
3614
3615 /* A C string constant describing how to begin a comment in the target
3616    assembler language.  The compiler assumes that the comment will end at the
3617    end of the line.  */
3618 /* #define ASM_COMMENT_START */
3619
3620 /* A C string constant for text to be output before each `asm' statement or
3621    group of consecutive ones.  Normally this is `"#APP"', which is a comment
3622    that has no effect on most assemblers but tells the GNU assembler that it
3623    must check the lines that follow for all valid assembler constructs.  */
3624 #define ASM_APP_ON "#APP\n"
3625
3626 /* A C string constant for text to be output after each `asm' statement or
3627    group of consecutive ones.  Normally this is `"#NO_APP"', which tells the
3628    GNU assembler to resume making the time-saving assumptions that are valid
3629    for ordinary compiler output.  */
3630 #define ASM_APP_OFF "#NO_APP\n"
3631
3632 /* A C statement to output COFF information or DWARF debugging information
3633    which indicates that filename NAME is the current source file to the stdio
3634    stream STREAM.
3635
3636    This macro need not be defined if the standard form of output for the file
3637    format in use is appropriate.  */
3638 /* #define ASM_OUTPUT_SOURCE_FILENAME(STREAM, NAME) */
3639
3640 /* A C statement to output DBX or SDB debugging information before code for
3641    line number LINE of the current source file to the stdio stream STREAM.
3642
3643    This macro need not be defined if the standard form of debugging information
3644    for the debugger in use is appropriate.
3645
3646    Defined in svr4.h.  */
3647 /* #define ASM_OUTPUT_SOURCE_LINE(STREAM, LINE) */
3648
3649 /* A C statement to output something to the assembler file to handle a `#ident'
3650    directive containing the text STRING.  If this macro is not defined, nothing
3651    is output for a `#ident' directive.
3652
3653    Defined in svr4.h.  */
3654 /* #define ASM_OUTPUT_IDENT(STREAM, STRING) */
3655
3656 /* A C statement to output something to the assembler file to switch to section
3657    NAME for object DECL which is either a `FUNCTION_DECL', a `VAR_DECL' or
3658    `NULL_TREE'.  Some target formats do not support arbitrary sections.  Do not
3659    define this macro in such cases.
3660
3661    At present this macro is only used to support section attributes.  When this
3662    macro is undefined, section attributes are disabled.
3663
3664    Defined in svr4.h.  */
3665 /* #define ASM_OUTPUT_SECTION_NAME(STREAM, DECL, NAME) */
3666
3667 /* A C statement to output any assembler statements which are required to
3668    precede any Objective C object definitions or message sending.  The
3669    statement is executed only when compiling an Objective C program.  */
3670 /* #define OBJC_PROLOGUE */
3671
3672 \f
3673 /* Output of Data.  */
3674
3675 /* A C statement to output to the stdio stream STREAM an assembler instruction
3676    to assemble a floating-point constant of `TFmode', `DFmode', `SFmode',
3677    `TQFmode', `HFmode', or `QFmode', respectively, whose value is VALUE.  VALUE
3678    will be a C expression of type `REAL_VALUE_TYPE'.  Macros such as
3679    `REAL_VALUE_TO_TARGET_DOUBLE' are useful for writing these definitions.  */
3680
3681 /* This is how to output an assembler line defining a `double'.  */
3682 #define ASM_OUTPUT_DOUBLE(STREAM,VALUE)                   \
3683 do { char dstr[30];                                     \
3684      REAL_VALUE_TO_DECIMAL ((VALUE), "%.20e", dstr);    \
3685      fprintf ((STREAM), "\t.double %s\n", dstr);          \
3686    } while (0)
3687
3688 /* This is how to output an assembler line defining a `float' constant.  */
3689 #define ASM_OUTPUT_FLOAT(STREAM,VALUE)                    \
3690 do { char dstr[30];                                     \
3691      REAL_VALUE_TO_DECIMAL ((VALUE), "%.20e", dstr);    \
3692      fprintf ((STREAM), "\t.float %s\n", dstr);           \
3693    } while (0)
3694
3695 /* #define ASM_OUTPUT_LONG_DOUBLE(STREAM, VALUE) */
3696 /* #define ASM_OUTPUT_THREE_QUARTER_FLOAT(STREAM, VALUE) */
3697 /* #define ASM_OUTPUT_SHORT_FLOAT(STREAM, VALUE) */
3698 /* #define ASM_OUTPUT_BYTE_FLOAT(STREAM, VALUE) */
3699
3700 /* A C statement to output to the stdio stream STREAM an assembler instruction
3701    to assemble an integer of 16, 8, 4, 2 or 1 bytes, respectively, whose value
3702    is VALUE.  The argument EXP will be an RTL expression which represents a
3703    constant value.  Use `output_addr_const (STREAM, EXP)' to output this value
3704    as an assembler expression.
3705
3706    For sizes larger than `UNITS_PER_WORD', if the action of a macro would be
3707    identical to repeatedly calling the macro corresponding to a size of
3708    `UNITS_PER_WORD', once for each word, you need not define the macro.  */
3709 /* #define ASM_OUTPUT_QUADRUPLE_INT(STREAM, EXP) */
3710 /* #define ASM_OUTPUT_DOUBLE_INT(STREAM, EXP) */
3711
3712 /* This is how to output an assembler line defining a `char' constant.  */
3713 #define ASM_OUTPUT_CHAR(FILE, VALUE)                                    \
3714 do {                                                                    \
3715   fprintf (FILE, "\t.byte\t");                                          \
3716   output_addr_const (FILE, (VALUE));                                    \
3717   fprintf (FILE, "\n");                                                 \
3718 } while (0)
3719
3720 /* This is how to output an assembler line defining a `short' constant.  */
3721 #define ASM_OUTPUT_SHORT(FILE, VALUE)                                   \
3722 do {                                                                    \
3723   fprintf (FILE, "\t.hword\t");                                         \
3724   output_addr_const (FILE, (VALUE));                                    \
3725   fprintf (FILE, "\n");                                                 \
3726 } while (0)
3727
3728 /* This is how to output an assembler line defining an `int' constant.
3729    We also handle symbol output here.  */
3730 #define ASM_OUTPUT_INT(FILE, VALUE)                                     \
3731 do {                                                                    \
3732   fprintf (FILE, "\t.word\t");                                          \
3733   output_addr_const (FILE, (VALUE));                                    \
3734   fprintf (FILE, "\n");                                                 \
3735 } while (0)
3736
3737 /* A C statement to output to the stdio stream STREAM an assembler instruction
3738    to assemble a single byte containing the number VALUE.
3739
3740    This declaration must be present.  */
3741 #define ASM_OUTPUT_BYTE(STREAM, VALUE) \
3742   fprintf (STREAM, "\t%s\t0x%x\n", ASM_BYTE_OP, (VALUE))
3743
3744 /* A C string constant giving the pseudo-op to use for a sequence of
3745    single-byte constants.  If this macro is not defined, the default
3746    is `"byte"'.
3747
3748    Defined in svr4.h.  */
3749 /* #define ASM_BYTE_OP */
3750
3751 /* A C statement to output to the stdio stream STREAM an assembler instruction
3752    to assemble a string constant containing the LEN bytes at PTR.  PTR will be
3753    a C expression of type `char *' and LEN a C expression of type `int'.
3754
3755    If the assembler has a `.ascii' pseudo-op as found in the Berkeley Unix
3756    assembler, do not define the macro `ASM_OUTPUT_ASCII'.
3757
3758    Defined in svr4.h.  */
3759 /* #define ASM_OUTPUT_ASCII(STREAM, PTR, LEN) */
3760
3761 /* You may define this macro as a C expression.  You should define the
3762    expression to have a non-zero value if GNU CC should output the
3763    constant pool for a function before the code for the function, or
3764    a zero value if GNU CC should output the constant pool after the
3765    function.  If you do not define this macro, the usual case, GNU CC
3766    will output the constant pool before the function.  */
3767 /* #define CONSTANT_POOL_BEFORE_FUNCTION */
3768
3769 /* A C statement to output assembler commands to define the start of the
3770    constant pool for a function.  FUNNAME is a string giving the name of the
3771    function.  Should the return type of the function be required, it can be
3772    obtained via FUNDECL.  SIZE is the size, in bytes, of the constant pool that
3773    will be written immediately after this call.
3774
3775    If no constant-pool prefix is required, the usual case, this macro need not
3776    be defined.  */
3777 /* #define ASM_OUTPUT_POOL_PROLOGUE(FILE FUNNAME FUNDECL SIZE) */
3778
3779 /* A C statement (with or without semicolon) to output a constant in the
3780    constant pool, if it needs special treatment.  (This macro need not do
3781    anything for RTL expressions that can be output normally.)
3782
3783    The argument FILE is the standard I/O stream to output the assembler code
3784    on.  X is the RTL expression for the constant to output, and MODE is the
3785    machine mode (in case X is a `const_int').  ALIGN is the required alignment
3786    for the value X; you should output an assembler directive to force this much
3787    alignment.
3788
3789    The argument LABELNO is a number to use in an internal label for the address
3790    of this pool entry.  The definition of this macro is responsible for
3791    outputting the label definition at the proper place.  Here is how to do
3792    this:
3793
3794         ASM_OUTPUT_INTERNAL_LABEL (FILE, "LC", LABELNO);
3795
3796    When you output a pool entry specially, you should end with a `goto' to the
3797    label JUMPTO.  This will prevent the same pool entry from being output a
3798    second time in the usual manner.
3799
3800    You need not define this macro if it would do nothing.  */
3801 /* #define ASM_OUTPUT_SPECIAL_POOL_ENTRY(FILE, X, MODE, ALIGN, LABELNO, JUMPTO) */
3802
3803 /* Define this macro as a C expression which is nonzero if the constant EXP, of
3804    type `tree', should be output after the code for a function.  The compiler
3805    will normally output all constants before the function; you need not define
3806    this macro if this is OK.  */
3807 /* #define CONSTANT_AFTER_FUNCTION_P(EXP) */
3808
3809 /* A C statement to output assembler commands to at the end of the constant
3810    pool for a function.  FUNNAME is a string giving the name of the function.
3811    Should the return type of the function be required, you can obtain it via
3812    FUNDECL.  SIZE is the size, in bytes, of the constant pool that GNU CC wrote
3813    immediately before this call.
3814
3815    If no constant-pool epilogue is required, the usual case, you need not
3816    define this macro.  */
3817 /* #define ASM_OUTPUT_POOL_EPILOGUE (FILE FUNNAME FUNDECL SIZE) */
3818
3819 /* Define this macro as a C expression which is nonzero if C is used as a
3820    logical line separator by the assembler.
3821
3822    If you do not define this macro, the default is that only the character `;'
3823    is treated as a logical line separator.  */
3824 #define IS_ASM_LOGICAL_LINE_SEPARATOR(C) ((C) == '|')
3825
3826 /* These macros are provided by `real.h' for writing the definitions of
3827    `ASM_OUTPUT_DOUBLE' and the like: */
3828
3829 /* These translate X, of type `REAL_VALUE_TYPE', to the target's floating point
3830    representation, and store its bit pattern in the array of `long int' whose
3831    address is L.  The number of elements in the output array is determined by
3832    the size of the desired target floating point data type: 32 bits of it go in
3833    each `long int' array element.  Each array element holds 32 bits of the
3834    result, even if `long int' is wider than 32 bits on the host machine.
3835
3836    The array element values are designed so that you can print them out using
3837    `fprintf' in the order they should appear in the target machine's memory.  */
3838 /* #define REAL_VALUE_TO_TARGET_SINGLE(X, L) */
3839 /* #define REAL_VALUE_TO_TARGET_DOUBLE(X, L) */
3840 /* #define REAL_VALUE_TO_TARGET_LONG_DOUBLE(X, L) */
3841
3842 /* This macro converts X, of type `REAL_VALUE_TYPE', to a decimal number and
3843    stores it as a string into STRING.  You must pass, as STRING, the address of
3844    a long enough block of space to hold the result.
3845
3846    The argument FORMAT is a `printf'-specification that serves as a suggestion
3847    for how to format the output string.  */
3848 /* #define REAL_VALUE_TO_DECIMAL(X, FORMAT, STRING) */
3849
3850 \f
3851 /* Output of Uninitialized Variables.  */
3852
3853 /* A C statement (sans semicolon) to output to the stdio stream STREAM the
3854    assembler definition of a common-label named NAME whose size is SIZE bytes.
3855    The variable ROUNDED is the size rounded up to whatever alignment the caller
3856    wants.
3857
3858    Use the expression `assemble_name (STREAM, NAME)' to output the name itself;
3859    before and after that, output the additional assembler syntax for defining
3860    the name, and a newline.
3861
3862    This macro controls how the assembler definitions of uninitialized global
3863    variables are output.  */
3864 /* #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) */
3865
3866 /* Like `ASM_OUTPUT_COMMON' except takes the required alignment as a separate,
3867    explicit argument.  If you define this macro, it is used in place of
3868    `ASM_OUTPUT_COMMON', and gives you more flexibility in handling the required
3869    alignment of the variable.  The alignment is specified as the number of
3870    bits.
3871
3872    Defined in svr4.h.  */
3873 /* #define ASM_OUTPUT_ALIGNED_COMMON(STREAM, NAME, SIZE, ALIGNMENT) */
3874
3875 /* Like ASM_OUTPUT_ALIGNED_COMMON except that it takes an additional argument -
3876    the DECL of the variable to be output, if there is one.  This macro can be
3877    called with DECL == NULL_TREE.  If you define this macro, it is used in
3878    place of both ASM_OUTPUT_COMMON and ASM_OUTPUT_ALIGNED_COMMON, and gives you
3879    more flexibility in handling the destination of the variable.  */
3880 /* #define ASM_OUTPUT_DECL_COMMON (STREAM, DECL, NAME, SIZE, ALIGNMENT) */
3881
3882 /* If defined, it is similar to `ASM_OUTPUT_COMMON', except that it is used
3883    when NAME is shared.  If not defined, `ASM_OUTPUT_COMMON' will be used.  */
3884 /* #define ASM_OUTPUT_SHARED_COMMON(STREAM, NAME, SIZE, ROUNDED) */
3885
3886 /* A C statement (sans semicolon) to output to the stdio stream STREAM the
3887    assembler definition of uninitialized global DECL named NAME whose size is
3888    SIZE bytes.  The variable ROUNDED is the size rounded up to whatever
3889    alignment the caller wants.
3890
3891    Try to use function `asm_output_bss' defined in `varasm.c' when defining
3892    this macro.  If unable, use the expression `assemble_name (STREAM, NAME)' to
3893    output the name itself; before and after that, output the additional
3894    assembler syntax for defining the name, and a newline.
3895
3896    This macro controls how the assembler definitions of uninitialized global
3897    variables are output.  This macro exists to properly support languages like
3898    `c++' which do not have `common' data.  However, this macro currently is not
3899    defined for all targets.  If this macro and `ASM_OUTPUT_ALIGNED_BSS' are not
3900    defined then `ASM_OUTPUT_COMMON' or `ASM_OUTPUT_ALIGNED_COMMON' or
3901    `ASM_OUTPUT_DECL_COMMON' is used.  */
3902 /* #define ASM_OUTPUT_BSS(STREAM, DECL, NAME, SIZE, ROUNDED) */
3903
3904 /* Like `ASM_OUTPUT_BSS' except takes the required alignment as a separate,
3905    explicit argument.  If you define this macro, it is used in place of
3906    `ASM_OUTPUT_BSS', and gives you more flexibility in handling the required
3907    alignment of the variable.  The alignment is specified as the number of
3908    bits.
3909
3910    Try to use function `asm_output_aligned_bss' defined in file `varasm.c' when
3911    defining this macro.  */
3912 /* #define ASM_OUTPUT_ALIGNED_BSS(STREAM, DECL, NAME, SIZE, ALIGNMENT) */
3913
3914 /* If defined, it is similar to `ASM_OUTPUT_BSS', except that it is used when
3915    NAME is shared.  If not defined, `ASM_OUTPUT_BSS' will be used.  */
3916 /* #define ASM_OUTPUT_SHARED_BSS(STREAM, DECL, NAME, SIZE, ROUNDED) */
3917
3918 /* A C statement (sans semicolon) to output to the stdio stream STREAM the
3919    assembler definition of a local-common-label named NAME whose size is SIZE
3920    bytes.  The variable ROUNDED is the size rounded up to whatever alignment
3921    the caller wants.
3922
3923    Use the expression `assemble_name (STREAM, NAME)' to output the name itself;
3924    before and after that, output the additional assembler syntax for defining
3925    the name, and a newline.
3926
3927    This macro controls how the assembler definitions of uninitialized static
3928    variables are output.  */
3929 /* #define ASM_OUTPUT_LOCAL(STREAM, NAME, SIZE, ROUNDED) */
3930
3931 /* Like `ASM_OUTPUT_LOCAL' except takes the required alignment as a separate,
3932    explicit argument.  If you define this macro, it is used in place of
3933    `ASM_OUTPUT_LOCAL', and gives you more flexibility in handling the required
3934    alignment of the variable.  The alignment is specified as the number of
3935    bits.
3936
3937    Defined in svr4.h.  */
3938 /* #define ASM_OUTPUT_ALIGNED_LOCAL(STREAM, NAME, SIZE, ALIGNMENT) */
3939
3940 /* Like `ASM_OUTPUT_ALIGNED_LOCAL' except that it takes an additional
3941    parameter - the DECL of variable to be output, if there is one.
3942    This macro can be called with DECL == NULL_TREE.  If you define
3943    this macro, it is used in place of `ASM_OUTPUT_LOCAL' and
3944    `ASM_OUTPUT_ALIGNED_LOCAL', and gives you more flexibility in
3945    handling the destination of the variable.  */
3946 /* #define ASM_OUTPUT_DECL_LOCAL(STREAM, DECL, NAME, SIZE, ALIGNMENT) */
3947
3948 /* If defined, it is similar to `ASM_OUTPUT_LOCAL', except that it is used when
3949    NAME is shared.  If not defined, `ASM_OUTPUT_LOCAL' will be used.  */
3950 /* #define ASM_OUTPUT_SHARED_LOCAL (STREAM, NAME, SIZE, ROUNDED) */
3951
3952 \f
3953 /* Output and Generation of Labels.  */
3954
3955 /* A C statement (sans semicolon) to output to the stdio stream STREAM the
3956    assembler definition of a label named NAME.  Use the expression
3957    `assemble_name (STREAM, NAME)' to output the name itself; before and after
3958    that, output the additional assembler syntax for defining the name, and a
3959    newline.  */
3960 #define ASM_OUTPUT_LABEL(STREAM, NAME)                                  \
3961 do {                                                                    \
3962   assemble_name (STREAM, NAME);                                         \
3963   fputs (":\n", STREAM);                                                \
3964 } while (0)
3965
3966 /* A C statement to output to the stdio stream STREAM the assembler
3967    definition of a symbol named SYMBOL.  */
3968 #define ASM_OUTPUT_SYMBOL_REF(STREAM, SYMBOL)                           \
3969   do {                                                                  \
3970     if (SYMBOL_REF_FLAG (SYMBOL))                                       \
3971       {                                                                 \
3972         fputs ("@fptr(", STREAM);                                       \
3973         assemble_name (STREAM, XSTR (SYMBOL, 0));                       \
3974         fputc (')', STREAM);                                            \
3975       }                                                                 \
3976     else                                                                \
3977       assemble_name (STREAM, XSTR (SYMBOL, 0));                         \
3978   } while (0)
3979
3980 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
3981    necessary for declaring the name NAME of a function which is being defined.
3982    This macro is responsible for outputting the label definition (perhaps using
3983    `ASM_OUTPUT_LABEL').  The argument DECL is the `FUNCTION_DECL' tree node
3984    representing the function.
3985
3986    If this macro is not defined, then the function name is defined in the usual
3987    manner as a label (by means of `ASM_OUTPUT_LABEL').
3988
3989    Defined in svr4.h.  */
3990 /* #define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL) */
3991
3992 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
3993    necessary for declaring the size of a function which is being defined.  The
3994    argument NAME is the name of the function.  The argument DECL is the
3995    `FUNCTION_DECL' tree node representing the function.
3996
3997    If this macro is not defined, then the function size is not defined.
3998
3999    Defined in svr4.h.  */
4000 /* #define ASM_DECLARE_FUNCTION_SIZE(STREAM, NAME, DECL) */
4001
4002 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
4003    necessary for declaring the name NAME of an initialized variable which is
4004    being defined.  This macro must output the label definition (perhaps using
4005    `ASM_OUTPUT_LABEL').  The argument DECL is the `VAR_DECL' tree node
4006    representing the variable.
4007
4008    If this macro is not defined, then the variable name is defined in the usual
4009    manner as a label (by means of `ASM_OUTPUT_LABEL').
4010
4011    Defined in svr4.h.  */
4012 /* #define ASM_DECLARE_OBJECT_NAME(STREAM, NAME, DECL) */
4013
4014 /* A C statement (sans semicolon) to finish up declaring a variable name once
4015    the compiler has processed its initializer fully and thus has had a chance
4016    to determine the size of an array when controlled by an initializer.  This
4017    is used on systems where it's necessary to declare something about the size
4018    of the object.
4019
4020    If you don't define this macro, that is equivalent to defining it to do
4021    nothing.
4022
4023    Defined in svr4.h.  */
4024 /* #define ASM_FINISH_DECLARE_OBJECT(STREAM, DECL, TOPLEVEL, ATEND) */
4025
4026 /* A C statement (sans semicolon) to output to the stdio stream STREAM some
4027    commands that will make the label NAME global; that is, available for
4028    reference from other files.  Use the expression `assemble_name (STREAM,
4029    NAME)' to output the name itself; before and after that, output the
4030    additional assembler syntax for making that name global, and a newline.  */
4031 #define ASM_GLOBALIZE_LABEL(STREAM,NAME)                                \
4032 do {                                                                    \
4033   fputs ("\t.globl ", STREAM);                                          \
4034   assemble_name (STREAM, NAME);                                         \
4035   fputs ("\n", STREAM);                                                 \
4036 } while (0)
4037
4038 /* A C statement (sans semicolon) to output to the stdio stream STREAM some
4039    commands that will make the label NAME weak; that is, available for
4040    reference from other files but only used if no other definition is
4041    available.  Use the expression `assemble_name (STREAM, NAME)' to output the
4042    name itself; before and after that, output the additional assembler syntax
4043    for making that name weak, and a newline.
4044
4045    If you don't define this macro, GNU CC will not support weak symbols and you
4046    should not define the `SUPPORTS_WEAK' macro.
4047
4048    Defined in svr4.h.  */
4049 /* #define ASM_WEAKEN_LABEL */
4050
4051 /* A C expression which evaluates to true if the target supports weak symbols.
4052
4053    If you don't define this macro, `defaults.h' provides a default definition.
4054    If `ASM_WEAKEN_LABEL' is defined, the default definition is `1'; otherwise,
4055    it is `0'.  Define this macro if you want to control weak symbol support
4056    with a compiler flag such as `-melf'.  */
4057 /* #define SUPPORTS_WEAK */
4058
4059 /* A C statement (sans semicolon) to mark DECL to be emitted as a
4060    public symbol such that extra copies in multiple translation units
4061    will be discarded by the linker.  Define this macro if your object
4062    file format provides support for this concept, such as the `COMDAT'
4063    section flags in the Microsoft Windows PE/COFF format, and this
4064    support requires changes to DECL, such as putting it in a separate
4065    section.
4066
4067    Defined in svr4.h.  */
4068 /* #define MAKE_DECL_ONE_ONLY */
4069
4070 /* A C expression which evaluates to true if the target supports one-only
4071    semantics.
4072
4073    If you don't define this macro, `varasm.c' provides a default definition.
4074    If `MAKE_DECL_ONE_ONLY' is defined, the default definition is `1';
4075    otherwise, it is `0'.  Define this macro if you want to control one-only
4076    symbol support with a compiler flag, or if setting the `DECL_ONE_ONLY' flag
4077    is enough to mark a declaration to be emitted as one-only.  */
4078 /* #define SUPPORTS_ONE_ONLY */
4079
4080 /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
4081    necessary for declaring the name of an external symbol named NAME which is
4082    referenced in this compilation but not defined.  The value of DECL is the
4083    tree node for the declaration.
4084
4085    This macro need not be defined if it does not need to output anything.  The
4086    GNU assembler and most Unix assemblers don't require anything.  */
4087 /* #define ASM_OUTPUT_EXTERNAL(STREAM, DECL, NAME) */
4088
4089 /* A C statement (sans semicolon) to output on STREAM an assembler pseudo-op to
4090    declare a library function name external.  The name of the library function
4091    is given by SYMREF, which has type `rtx' and is a `symbol_ref'.
4092
4093    This macro need not be defined if it does not need to output anything.  The
4094    GNU assembler and most Unix assemblers don't require anything.
4095
4096    Defined in svr4.h.  */
4097 /* #define ASM_OUTPUT_EXTERNAL_LIBCALL(STREAM, SYMREF) */
4098
4099 /* A C statement (sans semicolon) to output to the stdio stream STREAM a
4100    reference in assembler syntax to a label named NAME.  This should add `_' to
4101    the front of the name, if that is customary on your operating system, as it
4102    is in most Berkeley Unix systems.  This macro is used in `assemble_name'.  */
4103 /* #define ASM_OUTPUT_LABELREF(STREAM, NAME) */
4104
4105 /* A C statement to output to the stdio stream STREAM a label whose name is
4106    made from the string PREFIX and the number NUM.
4107
4108    It is absolutely essential that these labels be distinct from the labels
4109    used for user-level functions and variables.  Otherwise, certain programs
4110    will have name conflicts with internal labels.
4111
4112    It is desirable to exclude internal labels from the symbol table of the
4113    object file.  Most assemblers have a naming convention for labels that
4114    should be excluded; on many systems, the letter `L' at the beginning of a
4115    label has this effect.  You should find out what convention your system
4116    uses, and follow it.
4117
4118    The usual definition of this macro is as follows:
4119
4120         fprintf (STREAM, "L%s%d:\n", PREFIX, NUM)
4121
4122    Defined in svr4.h.  */
4123 /* #define ASM_OUTPUT_INTERNAL_LABEL(STREAM, PREFIX, NUM) */
4124
4125 /* A C statement to store into the string STRING a label whose name is made
4126    from the string PREFIX and the number NUM.
4127
4128    This string, when output subsequently by `assemble_name', should produce the
4129    output that `ASM_OUTPUT_INTERNAL_LABEL' would produce with the same PREFIX
4130    and NUM.
4131
4132    If the string begins with `*', then `assemble_name' will output the rest of
4133    the string unchanged.  It is often convenient for
4134    `ASM_GENERATE_INTERNAL_LABEL' to use `*' in this way.  If the string doesn't
4135    start with `*', then `ASM_OUTPUT_LABELREF' gets to output the string, and
4136    may change it.  (Of course, `ASM_OUTPUT_LABELREF' is also part of your
4137    machine description, so you should know what it does on your machine.)
4138
4139    Defined in svr4.h.  */
4140 /* #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM) */
4141
4142 /* A C expression to assign to OUTVAR (which is a variable of type `char *') a
4143    newly allocated string made from the string NAME and the number NUMBER, with
4144    some suitable punctuation added.  Use `alloca' to get space for the string.
4145
4146    The string will be used as an argument to `ASM_OUTPUT_LABELREF' to produce
4147    an assembler label for an internal static variable whose name is NAME.
4148    Therefore, the string must be such as to result in valid assembler code.
4149    The argument NUMBER is different each time this macro is executed; it
4150    prevents conflicts between similarly-named internal static variables in
4151    different scopes.
4152
4153    Ideally this string should not be a valid C identifier, to prevent any
4154    conflict with the user's own symbols.  Most assemblers allow periods or
4155    percent signs in assembler symbols; putting at least one of these between
4156    the name and the number will suffice.  */
4157 #define ASM_FORMAT_PRIVATE_NAME(OUTVAR, NAME, NUMBER)                   \
4158 do {                                                                    \
4159   (OUTVAR) = (char *) alloca (strlen ((NAME)) + 12);                    \
4160   sprintf ((OUTVAR), "%s.%ld", (NAME), (long)(NUMBER));                 \
4161 } while (0)
4162
4163 /* A C statement to output to the stdio stream STREAM assembler code which
4164    defines (equates) the symbol NAME to have the value VALUE.
4165
4166    If SET_ASM_OP is defined, a default definition is provided which is correct
4167    for most systems.
4168
4169    Defined in svr4.h.  */
4170 /* #define ASM_OUTPUT_DEF(STREAM, NAME, VALUE) */
4171
4172 /* A C statement to output to the stdio stream STREAM assembler code which
4173    defines (equates) the weak symbol NAME to have the value VALUE.
4174
4175    Define this macro if the target only supports weak aliases; define
4176    ASM_OUTPUT_DEF instead if possible.  */
4177 /* #define ASM_OUTPUT_WEAK_ALIAS (STREAM, NAME, VALUE) */
4178
4179 /* Define this macro to override the default assembler names used for Objective
4180    C methods.
4181
4182    The default name is a unique method number followed by the name of the class
4183    (e.g. `_1_Foo').  For methods in categories, the name of the category is
4184    also included in the assembler name (e.g.  `_1_Foo_Bar').
4185
4186    These names are safe on most systems, but make debugging difficult since the
4187    method's selector is not present in the name.  Therefore, particular systems
4188    define other ways of computing names.
4189
4190    BUF is an expression of type `char *' which gives you a buffer in which to
4191    store the name; its length is as long as CLASS_NAME, CAT_NAME and SEL_NAME
4192    put together, plus 50 characters extra.
4193
4194    The argument IS_INST specifies whether the method is an instance method or a
4195    class method; CLASS_NAME is the name of the class; CAT_NAME is the name of
4196    the category (or NULL if the method is not in a category); and SEL_NAME is
4197    the name of the selector.
4198
4199    On systems where the assembler can handle quoted names, you can use this
4200    macro to provide more human-readable names.  */
4201 /* #define OBJC_GEN_METHOD_LABEL(BUF, IS_INST, CLASS_NAME, CAT_NAME, SEL_NAME) */
4202
4203 \f
4204 /* Macros Controlling Initialization Routines.  */
4205
4206 /* If defined, a C string constant for the assembler operation to identify the
4207    following data as initialization code.  If not defined, GNU CC will assume
4208    such a section does not exist.  When you are using special sections for
4209    initialization and termination functions, this macro also controls how
4210    `crtstuff.c' and `libgcc2.c' arrange to run the initialization functions.
4211
4212    Defined in svr4.h.  */
4213 /* #define INIT_SECTION_ASM_OP */
4214
4215 /* If defined, `main' will not call `__main' as described above.  This macro
4216    should be defined for systems that control the contents of the init section
4217    on a symbol-by-symbol basis, such as OSF/1, and should not be defined
4218    explicitly for systems that support `INIT_SECTION_ASM_OP'.  */
4219 /* #define HAS_INIT_SECTION */
4220
4221 /* If defined, a C string constant for a switch that tells the linker that the
4222    following symbol is an initialization routine.  */
4223 /* #define LD_INIT_SWITCH */
4224
4225 /* If defined, a C string constant for a switch that tells the linker that the
4226    following symbol is a finalization routine.  */
4227 /* #define LD_FINI_SWITCH */
4228
4229 /* If defined, `main' will call `__main' despite the presence of
4230    `INIT_SECTION_ASM_OP'.  This macro should be defined for systems where the
4231    init section is not actually run automatically, but is still useful for
4232    collecting the lists of constructors and destructors.  */
4233 /* #define INVOKE__main */
4234
4235 /* Define this macro as a C statement to output on the stream STREAM the
4236    assembler code to arrange to call the function named NAME at initialization
4237    time.
4238
4239    Assume that NAME is the name of a C function generated automatically by the
4240    compiler.  This function takes no arguments.  Use the function
4241    `assemble_name' to output the name NAME; this performs any system-specific
4242    syntactic transformations such as adding an underscore.
4243
4244    If you don't define this macro, nothing special is output to arrange to call
4245    the function.  This is correct when the function will be called in some
4246    other manner--for example, by means of the `collect2' program, which looks
4247    through the symbol table to find these functions by their names.
4248
4249    Defined in svr4.h.  */
4250 /* #define ASM_OUTPUT_CONSTRUCTOR(STREAM, NAME) */
4251
4252 /* This is like `ASM_OUTPUT_CONSTRUCTOR' but used for termination functions
4253    rather than initialization functions.
4254
4255    Defined in svr4.h.  */
4256 /* #define ASM_OUTPUT_DESTRUCTOR(STREAM, NAME) */
4257
4258 /* If your system uses `collect2' as the means of processing constructors, then
4259    that program normally uses `nm' to scan an object file for constructor
4260    functions to be called.  On certain kinds of systems, you can define these
4261    macros to make `collect2' work faster (and, in some cases, make it work at
4262    all): */
4263
4264 /* Define this macro if the system uses COFF (Common Object File Format) object
4265    files, so that `collect2' can assume this format and scan object files
4266    directly for dynamic constructor/destructor functions.  */
4267 /* #define OBJECT_FORMAT_COFF */
4268
4269 /* Define this macro if the system uses ROSE format object files, so that
4270    `collect2' can assume this format and scan object files directly for dynamic
4271    constructor/destructor functions.
4272
4273    These macros are effective only in a native compiler; `collect2' as
4274    part of a cross compiler always uses `nm' for the target machine.  */
4275 /* #define OBJECT_FORMAT_ROSE */
4276
4277 /* Define this macro if the system uses ELF format object files.
4278
4279    Defined in svr4.h.  */
4280 /* #define OBJECT_FORMAT_ELF */
4281
4282 /* Define this macro as a C string constant containing the file name to use to
4283    execute `nm'.  The default is to search the path normally for `nm'.
4284
4285    If your system supports shared libraries and has a program to list the
4286    dynamic dependencies of a given library or executable, you can define these
4287    macros to enable support for running initialization and termination
4288    functions in shared libraries: */
4289 /* #define REAL_NM_FILE_NAME */
4290
4291 /* Define this macro to a C string constant containing the name of the program
4292    which lists dynamic dependencies, like `"ldd"' under SunOS 4.  */
4293 /* #define LDD_SUFFIX */
4294
4295 /* Define this macro to be C code that extracts filenames from the output of
4296    the program denoted by `LDD_SUFFIX'.  PTR is a variable of type `char *'
4297    that points to the beginning of a line of output from `LDD_SUFFIX'.  If the
4298    line lists a dynamic dependency, the code must advance PTR to the beginning
4299    of the filename on that line.  Otherwise, it must set PTR to `NULL'.  */
4300 /* #define PARSE_LDD_OUTPUT (PTR) */
4301
4302 \f
4303 /* Output of Assembler Instructions.  */
4304
4305 /* A C initializer containing the assembler's names for the machine registers,
4306    each one as a C string constant.  This is what translates register numbers
4307    in the compiler into assembler language.  */
4308 #define REGISTER_NAMES                                                  \
4309 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10",    \
4310   "r11", "r12", "r13", "psw", "sp", "carry", "fp", "ap" }
4311
4312 /* If defined, a C initializer for an array of structures containing a name and
4313    a register number.  This macro defines additional names for hard registers,
4314    thus allowing the `asm' option in declarations to refer to registers using
4315    alternate names.  */
4316 #define ADDITIONAL_REGISTER_NAMES               \
4317   { { "r14", 14 },                              \
4318     { "r15", 15 } }
4319
4320 /* Define this macro if you are using an unusual assembler that requires
4321    different names for the machine instructions.
4322
4323    The definition is a C statement or statements which output an assembler
4324    instruction opcode to the stdio stream STREAM.  The macro-operand PTR is a
4325    variable of type `char *' which points to the opcode name in its "internal"
4326    form--the form that is written in the machine description.  The definition
4327    should output the opcode name to STREAM, performing any translation you
4328    desire, and increment the variable PTR to point at the end of the opcode so
4329    that it will not be output twice.
4330
4331    In fact, your macro definition may process less than the entire opcode name,
4332    or more than the opcode name; but if you want to process text that includes
4333    `%'-sequences to substitute operands, you must take care of the substitution
4334    yourself.  Just be sure to increment PTR over whatever text should not be
4335    output normally.
4336
4337    If you need to look at the operand values, they can be found as the elements
4338    of `recog_data.operand'.
4339
4340    If the macro definition does nothing, the instruction is output in the usual
4341    way.  */
4342 /* #define ASM_OUTPUT_OPCODE(STREAM, PTR) */
4343
4344 /* If defined, a C statement to be executed just prior to the output of
4345    assembler code for INSN, to modify the extracted operands so they will be
4346    output differently.
4347
4348    Here the argument OPVEC is the vector containing the operands extracted from
4349    INSN, and NOPERANDS is the number of elements of the vector which contain
4350    meaningful data for this insn.  The contents of this vector are what will be
4351    used to convert the insn template into assembler code, so you can change the
4352    assembler output by changing the contents of the vector.
4353
4354    This macro is useful when various assembler syntaxes share a single file of
4355    instruction patterns; by defining this macro differently, you can cause a
4356    large class of instructions to be output differently (such as with
4357    rearranged operands).  Naturally, variations in assembler syntax affecting
4358    individual insn patterns ought to be handled by writing conditional output
4359    routines in those patterns.
4360
4361    If this macro is not defined, it is equivalent to a null statement.  */
4362 /* #define FINAL_PRESCAN_INSN(INSN, OPVEC, NOPERANDS) */
4363
4364 /* If defined, `FINAL_PRESCAN_INSN' will be called on each
4365    `CODE_LABEL'.  In that case, OPVEC will be a null pointer and
4366    NOPERANDS will be zero.  */
4367 /* #define FINAL_PRESCAN_LABEL */
4368
4369 /* A C compound statement to output to stdio stream STREAM the assembler syntax
4370    for an instruction operand X.  X is an RTL expression.
4371
4372    CODE is a value that can be used to specify one of several ways of printing
4373    the operand.  It is used when identical operands must be printed differently
4374    depending on the context.  CODE comes from the `%' specification that was
4375    used to request printing of the operand.  If the specification was just
4376    `%DIGIT' then CODE is 0; if the specification was `%LTR DIGIT' then CODE is
4377    the ASCII code for LTR.
4378
4379    If X is a register, this macro should print the register's name.  The names
4380    can be found in an array `reg_names' whose type is `char *[]'.  `reg_names'
4381    is initialized from `REGISTER_NAMES'.
4382
4383    When the machine description has a specification `%PUNCT' (a `%' followed by
4384    a punctuation character), this macro is called with a null pointer for X and
4385    the punctuation character for CODE.  */
4386 #define PRINT_OPERAND(STREAM, X, CODE) stormy16_print_operand (STREAM, X, CODE)
4387
4388 /* A C expression which evaluates to true if CODE is a valid punctuation
4389    character for use in the `PRINT_OPERAND' macro.  If
4390    `PRINT_OPERAND_PUNCT_VALID_P' is not defined, it means that no punctuation
4391    characters (except for the standard one, `%') are used in this way.  */
4392 /* #define PRINT_OPERAND_PUNCT_VALID_P(CODE) */
4393
4394 /* A C compound statement to output to stdio stream STREAM the assembler syntax
4395    for an instruction operand that is a memory reference whose address is X.  X
4396    is an RTL expression.
4397
4398    On some machines, the syntax for a symbolic address depends on the section
4399    that the address refers to.  On these machines, define the macro
4400    `ENCODE_SECTION_INFO' to store the information into the `symbol_ref', and
4401    then check for it here.
4402
4403    This declaration must be present.  */
4404 #define PRINT_OPERAND_ADDRESS(STREAM, X) stormy16_print_operand_address (STREAM, X)
4405
4406 /* A C statement, to be executed after all slot-filler instructions have been
4407    output.  If necessary, call `dbr_sequence_length' to determine the number of
4408    slots filled in a sequence (zero if not currently outputting a sequence), to
4409    decide how many no-ops to output, or whatever.
4410
4411    Don't define this macro if it has nothing to do, but it is helpful in
4412    reading assembly output if the extent of the delay sequence is made explicit
4413    (e.g. with white space).
4414
4415    Note that output routines for instructions with delay slots must be prepared
4416    to deal with not being output as part of a sequence (i.e.  when the
4417    scheduling pass is not run, or when no slot fillers could be found.)  The
4418    variable `final_sequence' is null when not processing a sequence, otherwise
4419    it contains the `sequence' rtx being output.  */
4420 /* #define DBR_OUTPUT_SEQEND(FILE) */
4421
4422 /* If defined, C string expressions to be used for the `%R', `%L', `%U', and
4423    `%I' options of `asm_fprintf' (see `final.c').  These are useful when a
4424    single `md' file must support multiple assembler formats.  In that case, the
4425    various `tm.h' files can define these macros differently.
4426
4427    USER_LABEL_PREFIX is defined in svr4.h.  */
4428 #define REGISTER_PREFIX ""
4429 #define LOCAL_LABEL_PREFIX "."
4430 #define USER_LABEL_PREFIX ""
4431 #define IMMEDIATE_PREFIX "#"
4432
4433 /* If your target supports multiple dialects of assembler language (such as
4434    different opcodes), define this macro as a C expression that gives the
4435    numeric index of the assembler language dialect to use, with zero as the
4436    first variant.
4437
4438    If this macro is defined, you may use `{option0|option1|option2...}'
4439    constructs in the output templates of patterns or in the first argument of
4440    `asm_fprintf'.  This construct outputs `option0', `option1' or `option2',
4441    etc., if the value of `ASSEMBLER_DIALECT' is zero, one or two, etc.  Any
4442    special characters within these strings retain their usual meaning.
4443
4444    If you do not define this macro, the characters `{', `|' and `}' do not have
4445    any special meaning when used in templates or operands to `asm_fprintf'.
4446
4447    Define the macros `REGISTER_PREFIX', `LOCAL_LABEL_PREFIX',
4448    `USER_LABEL_PREFIX' and `IMMEDIATE_PREFIX' if you can express the variations
4449    in assemble language syntax with that mechanism.  Define `ASSEMBLER_DIALECT'
4450    and use the `{option0|option1}' syntax if the syntax variant are larger and
4451    involve such things as different opcodes or operand order.  */
4452 /* #define ASSEMBLER_DIALECT */
4453
4454 /* A C expression to output to STREAM some assembler code which will push hard
4455    register number REGNO onto the stack.  The code need not be optimal, since
4456    this macro is used only when profiling.  */
4457 #define ASM_OUTPUT_REG_PUSH(STREAM, REGNO) \
4458   fprintf (STREAM, "\tpush %d\n", REGNO)
4459
4460 /* A C expression to output to STREAM some assembler code which will pop hard
4461    register number REGNO off of the stack.  The code need not be optimal, since
4462    this macro is used only when profiling.  */
4463 #define ASM_OUTPUT_REG_POP(STREAM, REGNO) \
4464   fprintf (STREAM, "\tpop %d\n", REGNO)
4465
4466 \f
4467 /* Output of dispatch tables.  */
4468
4469 /* This port does not use the ASM_OUTPUT_ADDR_VEC_ELT macro, because
4470    this could cause label alignment to appear between the 'br' and the table,
4471    which would be bad.  Instead, it controls the output of the table
4472    itself.  */
4473 #define ASM_OUTPUT_ADDR_VEC(LABEL, BODY) \
4474   stormy16_output_addr_vec (file, LABEL, BODY)
4475
4476 /* Alignment for ADDR_VECs is the same as for code.  */
4477 #define ADDR_VEC_ALIGN(ADDR_VEC) 1
4478
4479 \f
4480 /* Assembler Commands for Exception Regions.  */
4481
4482 /* A C expression to output text to mark the start of an exception region.
4483
4484    This macro need not be defined on most platforms.  */
4485 /* #define ASM_OUTPUT_EH_REGION_BEG() */
4486
4487 /* A C expression to output text to mark the end of an exception region.
4488
4489    This macro need not be defined on most platforms.  */
4490 /* #define ASM_OUTPUT_EH_REGION_END() */
4491
4492 /* A C expression to switch to the section in which the main exception table is
4493    to be placed.  The default is a section named `.gcc_except_table' on machines
4494    that support named sections via `ASM_OUTPUT_SECTION_NAME', otherwise if `-fpic'
4495    or `-fPIC' is in effect, the `data_section', otherwise the
4496    `readonly_data_section'.  */
4497 /* #define EXCEPTION_SECTION() */
4498
4499 /* If defined, a C string constant for the assembler operation to switch to the
4500    section for exception handling frame unwind information.  If not defined,
4501    GNU CC will provide a default definition if the target supports named
4502    sections.  `crtstuff.c' uses this macro to switch to the appropriate
4503    section.
4504
4505    You should define this symbol if your target supports DWARF 2 frame unwind
4506    information and the default definition does not work.  */
4507 /* #define EH_FRAME_SECTION_ASM_OP */
4508
4509 /* A C expression that is nonzero if the normal exception table output should
4510    be omitted.
4511
4512    This macro need not be defined on most platforms.  */
4513 /* #define OMIT_EH_TABLE() */
4514
4515 /* Alternate runtime support for looking up an exception at runtime and finding
4516    the associated handler, if the default method won't work.
4517
4518    This macro need not be defined on most platforms.  */
4519 /* #define EH_TABLE_LOOKUP() */
4520
4521 /* A C expression that decides whether or not the current function needs to
4522    have a function unwinder generated for it.  See the file `except.c' for
4523    details on when to define this, and how.  */
4524 /* #define DOESNT_NEED_UNWINDER */
4525
4526 /* An rtx used to mask the return address found via RETURN_ADDR_RTX, so that it
4527    does not contain any extraneous set bits in it.  */
4528 /* #define MASK_RETURN_ADDR */
4529
4530 /* Define this macro to 0 if your target supports DWARF 2 frame unwind
4531    information, but it does not yet work with exception handling.  Otherwise,
4532    if your target supports this information (if it defines
4533    `INCOMING_RETURN_ADDR_RTX' and either `UNALIGNED_INT_ASM_OP' or
4534    `OBJECT_FORMAT_ELF'), GCC will provide a default definition of 1.
4535
4536    If this macro is defined to 1, the DWARF 2 unwinder will be the default
4537    exception handling mechanism; otherwise, setjmp/longjmp will be used by
4538    default.
4539
4540    If this macro is defined to anything, the DWARF 2 unwinder will be used
4541    instead of inline unwinders and __unwind_function in the non-setjmp case.  */
4542 #define DWARF2_UNWIND_INFO 0
4543
4544 /* Don't use __builtin_setjmp for unwinding, since it's tricky to get
4545    at the high 16 bits of an address.  */
4546 #define DONT_USE_BUILTIN_SETJMP
4547 #define JMP_BUF_SIZE  8
4548 \f
4549 /* Assembler Commands for Alignment.  */
4550
4551 /* The alignment (log base 2) to put in front of LABEL, which follows
4552    a BARRIER.
4553
4554    This macro need not be defined if you don't want any special alignment to be
4555    done at such a time.  Most machine descriptions do not currently define the
4556    macro.  */
4557 /* #define LABEL_ALIGN_AFTER_BARRIER(LABEL) */
4558
4559 /* The desired alignment for the location counter at the beginning
4560    of a loop.
4561
4562    This macro need not be defined if you don't want any special alignment to be
4563    done at such a time.  Most machine descriptions do not currently define the
4564    macro.  */
4565 /* #define LOOP_ALIGN(LABEL) */
4566
4567 /* A C statement to output to the stdio stream STREAM an assembler instruction
4568    to advance the location counter by NBYTES bytes.  Those bytes should be zero
4569    when loaded.  NBYTES will be a C expression of type `int'.
4570
4571    Defined in elfos.h.  */
4572 /* #define ASM_OUTPUT_SKIP(STREAM, NBYTES) */
4573
4574 /* Define this macro if `ASM_OUTPUT_SKIP' should not be used in the text
4575    section because it fails put zeros in the bytes that are skipped.  This is
4576    true on many Unix systems, where the pseudo-op to skip bytes produces no-op
4577    instructions rather than zeros when used in the text section.  */
4578 /* #define ASM_NO_SKIP_IN_TEXT */
4579
4580 /* A C statement to output to the stdio stream STREAM an assembler command to
4581    advance the location counter to a multiple of 2 to the POWER bytes.  POWER
4582    will be a C expression of type `int'.  */
4583 #define ASM_OUTPUT_ALIGN(STREAM, POWER) \
4584   fprintf ((STREAM), "\t.p2align %d\n", (POWER))
4585
4586 \f
4587 /* Macros Affecting all Debug Formats.  */
4588
4589 /* A C expression that returns the DBX register number for the compiler
4590    register number REGNO.  In simple cases, the value of this expression may be
4591    REGNO itself.  But sometimes there are some registers that the compiler
4592    knows about and DBX does not, or vice versa.  In such cases, some register
4593    may need to have one number in the compiler and another for DBX.
4594
4595    If two registers have consecutive numbers inside GNU CC, and they can be
4596    used as a pair to hold a multiword value, then they *must* have consecutive
4597    numbers after renumbering with `DBX_REGISTER_NUMBER'.  Otherwise, debuggers
4598    will be unable to access such a pair, because they expect register pairs to
4599    be consecutive in their own numbering scheme.
4600
4601    If you find yourself defining `DBX_REGISTER_NUMBER' in way that does not
4602    preserve register pairs, then what you must do instead is redefine the
4603    actual register numbering scheme.
4604
4605    This declaration is required.  */
4606 #define DBX_REGISTER_NUMBER(REGNO) (REGNO)
4607
4608 /* A C expression that returns the integer offset value for an automatic
4609    variable having address X (an RTL expression).  The default computation
4610    assumes that X is based on the frame-pointer and gives the offset from the
4611    frame-pointer.  This is required for targets that produce debugging output
4612    for DBX or COFF-style debugging output for SDB and allow the frame-pointer
4613    to be eliminated when the `-g' options is used.  */
4614 /* #define DEBUGGER_AUTO_OFFSET(X) */
4615
4616 /* A C expression that returns the integer offset value for an argument having
4617    address X (an RTL expression).  The nominal offset is OFFSET.  */
4618 /* #define DEBUGGER_ARG_OFFSET(OFFSET, X) */
4619
4620 /* A C expression that returns the type of debugging output GNU CC produces
4621    when the user specifies `-g' or `-ggdb'.  Define this if you have arranged
4622    for GNU CC to support more than one format of debugging output.  Currently,
4623    the allowable values are `DBX_DEBUG', `SDB_DEBUG', `DWARF_DEBUG',
4624    `DWARF2_DEBUG', and `XCOFF_DEBUG'.
4625
4626    The value of this macro only affects the default debugging output; the user
4627    can always get a specific type of output by using `-gstabs', `-gcoff',
4628    `-gdwarf-1', `-gdwarf-2', or `-gxcoff'.
4629
4630    Defined in svr4.h.  */
4631 #undef PREFERRED_DEBUGGING_TYPE
4632 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
4633
4634 \f
4635 /* Specific Options for DBX Output.  */
4636
4637 /* Define this macro if GNU CC should produce debugging output for DBX in
4638    response to the `-g' option.
4639
4640    Defined in svr4.h.  */
4641 /* #define DBX_DEBUGGING_INFO */
4642
4643 /* Define this macro if GNU CC should produce XCOFF format debugging output in
4644    response to the `-g' option.  This is a variant of DBX format.  */
4645 /* #define XCOFF_DEBUGGING_INFO */
4646
4647 /* Define this macro to control whether GNU CC should by default generate GDB's
4648    extended version of DBX debugging information (assuming DBX-format debugging
4649    information is enabled at all).  If you don't define the macro, the default
4650    is 1: always generate the extended information if there is any occasion to.  */
4651 /* #define DEFAULT_GDB_EXTENSIONS */
4652
4653 /* Define this macro if all `.stabs' commands should be output while in the
4654    text section.  */
4655 /* #define DEBUG_SYMS_TEXT */
4656
4657 /* A C string constant naming the assembler pseudo op to use instead of
4658    `.stabs' to define an ordinary debugging symbol.  If you don't define this
4659    macro, `.stabs' is used.  This macro applies only to DBX debugging
4660    information format.  */
4661 /* #define ASM_STABS_OP */
4662
4663 /* A C string constant naming the assembler pseudo op to use instead of
4664    `.stabd' to define a debugging symbol whose value is the current location.
4665    If you don't define this macro, `.stabd' is used.  This macro applies only
4666    to DBX debugging information format.  */
4667 /* #define ASM_STABD_OP */
4668
4669 /* A C string constant naming the assembler pseudo op to use instead of
4670    `.stabn' to define a debugging symbol with no name.  If you don't define
4671    this macro, `.stabn' is used.  This macro applies only to DBX debugging
4672    information format.  */
4673 /* #define ASM_STABN_OP */
4674
4675 /* Define this macro if DBX on your system does not support the construct
4676    `xsTAGNAME'.  On some systems, this construct is used to describe a forward
4677    reference to a structure named TAGNAME.  On other systems, this construct is
4678    not supported at all.  */
4679 /* #define DBX_NO_XREFS */
4680
4681 /* A symbol name in DBX-format debugging information is normally continued
4682    (split into two separate `.stabs' directives) when it exceeds a certain
4683    length (by default, 80 characters).  On some operating systems, DBX requires
4684    this splitting; on others, splitting must not be done.  You can inhibit
4685    splitting by defining this macro with the value zero.  You can override the
4686    default splitting-length by defining this macro as an expression for the
4687    length you desire.  */
4688 /* #define DBX_CONTIN_LENGTH */
4689
4690 /* Normally continuation is indicated by adding a `\' character to the end of a
4691    `.stabs' string when a continuation follows.  To use a different character
4692    instead, define this macro as a character constant for the character you
4693    want to use.  Do not define this macro if backslash is correct for your
4694    system.  */
4695 /* #define DBX_CONTIN_CHAR */
4696
4697 /* Define this macro if it is necessary to go to the data section before
4698    outputting the `.stabs' pseudo-op for a non-global static variable.  */
4699 /* #define DBX_STATIC_STAB_DATA_SECTION */
4700
4701 /* The value to use in the "code" field of the `.stabs' directive for a
4702    typedef.  The default is `N_LSYM'.  */
4703 /* #define DBX_TYPE_DECL_STABS_CODE */
4704
4705 /* The value to use in the "code" field of the `.stabs' directive for a static
4706    variable located in the text section.  DBX format does not provide any
4707    "right" way to do this.  The default is `N_FUN'.  */
4708 /* #define DBX_STATIC_CONST_VAR_CODE */
4709
4710 /* The value to use in the "code" field of the `.stabs' directive for a
4711    parameter passed in registers.  DBX format does not provide any "right" way
4712    to do this.  The default is `N_RSYM'.  */
4713 /* #define DBX_REGPARM_STABS_CODE */
4714
4715 /* The letter to use in DBX symbol data to identify a symbol as a parameter
4716    passed in registers.  DBX format does not customarily provide any way to do
4717    this.  The default is `'P''.  */
4718 /* #define DBX_REGPARM_STABS_LETTER */
4719
4720 /* The letter to use in DBX symbol data to identify a symbol as a stack
4721    parameter.  The default is `'p''.  */
4722 /* #define DBX_MEMPARM_STABS_LETTER */
4723
4724 /* Define this macro if the DBX information for a function and its arguments
4725    should precede the assembler code for the function.  Normally, in DBX
4726    format, the debugging information entirely follows the assembler code.
4727
4728    Defined in svr4.h.  */
4729 /* #define DBX_FUNCTION_FIRST */
4730
4731 /* Define this macro if the `N_LBRAC' symbol for a block should precede the
4732    debugging information for variables and functions defined in that block.
4733    Normally, in DBX format, the `N_LBRAC' symbol comes first.  */
4734 /* #define DBX_LBRAC_FIRST */
4735
4736 /* Define this macro if the value of a symbol describing the scope of a block
4737    (`N_LBRAC' or `N_RBRAC') should be relative to the start of the enclosing
4738    function.  Normally, GNU C uses an absolute address.
4739
4740    Defined in svr4.h.  */
4741 /* #define DBX_BLOCKS_FUNCTION_RELATIVE */
4742
4743 /* Define this macro if GNU C should generate `N_BINCL' and `N_EINCL'
4744    stabs for included header files, as on Sun systems.  This macro
4745    also directs GNU C to output a type number as a pair of a file
4746    number and a type number within the file.  Normally, GNU C does not
4747    generate `N_BINCL' or `N_EINCL' stabs, and it outputs a single
4748    number for a type number.  */
4749 /* #define DBX_USE_BINCL */
4750
4751 \f
4752 /* Open ended Hooks for DBX Output.  */
4753
4754 /* Define this macro to say how to output to STREAM the debugging information
4755    for the start of a scope level for variable names.  The argument NAME is the
4756    name of an assembler symbol (for use with `assemble_name') whose value is
4757    the address where the scope begins.  */
4758 /* #define DBX_OUTPUT_LBRAC(STREAM, NAME) */
4759
4760 /* Like `DBX_OUTPUT_LBRAC', but for the end of a scope level.  */
4761 /* #define DBX_OUTPUT_RBRAC(STREAM, NAME) */
4762
4763 /* Define this macro if the target machine requires special handling to output
4764    an enumeration type.  The definition should be a C statement (sans
4765    semicolon) to output the appropriate information to STREAM for the type
4766    TYPE.  */
4767 /* #define DBX_OUTPUT_ENUM(STREAM, TYPE) */
4768
4769 /* Define this macro if the target machine requires special output at the end
4770    of the debugging information for a function.  The definition should be a C
4771    statement (sans semicolon) to output the appropriate information to STREAM.
4772    FUNCTION is the `FUNCTION_DECL' node for the function.  */
4773 /* #define DBX_OUTPUT_FUNCTION_END(STREAM, FUNCTION) */
4774
4775 /* Define this macro if you need to control the order of output of the standard
4776    data types at the beginning of compilation.  The argument SYMS is a `tree'
4777    which is a chain of all the predefined global symbols, including names of
4778    data types.
4779
4780    Normally, DBX output starts with definitions of the types for integers and
4781    characters, followed by all the other predefined types of the particular
4782    language in no particular order.
4783
4784    On some machines, it is necessary to output different particular types
4785    first.  To do this, define `DBX_OUTPUT_STANDARD_TYPES' to output those
4786    symbols in the necessary order.  Any predefined types that you don't
4787    explicitly output will be output afterward in no particular order.
4788
4789    Be careful not to define this macro so that it works only for C.  There are
4790    no global variables to access most of the built-in types, because another
4791    language may have another set of types.  The way to output a particular type
4792    is to look through SYMS to see if you can find it.  Here is an example:
4793
4794         {
4795           tree decl;
4796           for (decl = syms; decl; decl = TREE_CHAIN (decl))
4797             if (!strcmp (IDENTIFIER_POINTER (DECL_NAME (decl)),
4798                          "long int"))
4799               dbxout_symbol (decl);
4800           ...
4801         }
4802
4803    This does nothing if the expected type does not exist.
4804
4805    See the function `init_decl_processing' in `c-decl.c' to find the names to
4806    use for all the built-in C types. */
4807 /* #define DBX_OUTPUT_STANDARD_TYPES(SYMS) */
4808
4809 /* Some stabs encapsulation formats (in particular ECOFF), cannot
4810    handle the `.stabs "",N_FUN,,0,0,Lscope-function-1' gdb dbx
4811    extention construct.  On those machines, define this macro to turn
4812    this feature off without disturbing the rest of the gdb extensions.  */
4813 /* #define NO_DBX_FUNCTION_END */
4814
4815 \f
4816 /* File names in DBX format.  */
4817
4818 /* Define this if DBX wants to have the current directory recorded in each
4819    object file.
4820
4821    Note that the working directory is always recorded if GDB extensions are
4822    enabled.  */
4823 /* #define DBX_WORKING_DIRECTORY */
4824
4825 /* A C statement to output DBX debugging information to the stdio stream STREAM
4826    which indicates that file NAME is the main source file--the file specified
4827    as the input file for compilation.  This macro is called only once, at the
4828    beginning of compilation.
4829
4830    This macro need not be defined if the standard form of output for DBX
4831    debugging information is appropriate.
4832
4833    Defined in svr4.h.  */
4834 /* #define DBX_OUTPUT_MAIN_SOURCE_FILENAME(STREAM, NAME) */
4835
4836 /* A C statement to output DBX debugging information to the stdio stream STREAM
4837    which indicates that the current directory during compilation is named NAME.
4838
4839    This macro need not be defined if the standard form of output for DBX
4840    debugging information is appropriate.  */
4841 /* #define DBX_OUTPUT_MAIN_SOURCE_DIRECTORY(STREAM, NAME) */
4842
4843 /* A C statement to output DBX debugging information at the end of compilation
4844    of the main source file NAME.
4845
4846    If you don't define this macro, nothing special is output at the end of
4847    compilation, which is correct for most machines.  */
4848 /* #define DBX_OUTPUT_MAIN_SOURCE_FILE_END(STREAM, NAME) */
4849
4850 /* A C statement to output DBX debugging information to the stdio stream STREAM
4851    which indicates that file NAME is the current source file.  This output is
4852    generated each time input shifts to a different source file as a result of
4853    `#include', the end of an included file, or a `#line' command.
4854
4855    This macro need not be defined if the standard form of output for DBX
4856    debugging information is appropriate.  */
4857 /* #define DBX_OUTPUT_SOURCE_FILENAME(STREAM, NAME) */
4858
4859 \f
4860 /* Macros for SDB and Dwarf Output.  */
4861
4862 /* Define this macro if GNU CC should produce COFF-style debugging output for
4863    SDB in response to the `-g' option.  */
4864 /* #define SDB_DEBUGGING_INFO */
4865
4866 /* Define this macro if GNU CC should produce dwarf format debugging output in
4867    response to the `-g' option.
4868
4869    Defined in svr4.h.  */
4870 /* #define DWARF_DEBUGGING_INFO */
4871
4872 /* Define this macro if GNU CC should produce dwarf version 2 format debugging
4873    output in response to the `-g' option.
4874
4875    To support optional call frame debugging information, you must also define
4876    `INCOMING_RETURN_ADDR_RTX' and either set `RTX_FRAME_RELATED_P' on the
4877    prologue insns if you use RTL for the prologue, or call `dwarf2out_def_cfa'
4878    and `dwarf2out_reg_save' as appropriate from `FUNCTION_PROLOGUE' if you
4879    don't.
4880
4881    Defined in svr4.h.  */
4882 /* #define DWARF2_DEBUGGING_INFO */
4883
4884 /* Define this macro if GNU CC should produce dwarf version 2-style
4885    line numbers.  This usually requires extending the assembler to
4886    support them, and #defining DWARF2_LINE_MIN_INSN_LENGTH in the
4887    assembler configuration header files.  */
4888 /* #define DWARF2_ASM_LINE_DEBUG_INFO 1 */
4889
4890 /* Define this macro if addresses in Dwarf 2 debugging info should not
4891    be the same size as pointers on the target architecture.  The
4892    macro's value should be the size, in bytes, to use for addresses in
4893    the debugging info.
4894
4895    Some architectures use word addresses to refer to code locations,
4896    but Dwarf 2 info always uses byte addresses.  On such machines,
4897    Dwarf 2 addresses need to be larger than the architecture's
4898    pointers.  */
4899 #define DWARF2_ADDR_SIZE 4
4900
4901 /* Define these macros to override the assembler syntax for the special SDB
4902    assembler directives.  See `sdbout.c' for a list of these macros and their
4903    arguments.  If the standard syntax is used, you need not define them
4904    yourself.  */
4905 /* #define PUT_SDB_... */
4906
4907 /* Some assemblers do not support a semicolon as a delimiter, even between SDB
4908    assembler directives.  In that case, define this macro to be the delimiter
4909    to use (usually `\n').  It is not necessary to define a new set of
4910    `PUT_SDB_OP' macros if this is the only change required.  */
4911 /* #define SDB_DELIM */
4912
4913 /* Define this macro to override the usual method of constructing a dummy name
4914    for anonymous structure and union types.  See `sdbout.c' for more
4915    information.  */
4916 /* #define SDB_GENERATE_FAKE */
4917
4918 /* Define this macro to allow references to unknown structure, union, or
4919    enumeration tags to be emitted.  Standard COFF does not allow handling of
4920    unknown references, MIPS ECOFF has support for it.  */
4921 /* #define SDB_ALLOW_UNKNOWN_REFERENCES */
4922
4923 /* Define this macro to allow references to structure, union, or enumeration
4924    tags that have not yet been seen to be handled.  Some assemblers choke if
4925    forward tags are used, while some require it.  */
4926 /* #define SDB_ALLOW_FORWARD_REFERENCES */
4927
4928 \f
4929 /* Miscellaneous Parameters.  */
4930
4931 /* Define REAL_ARITHMETIC to use a software emulator for the target floating
4932    point mode.  Otherwise the host floating point mode is used.  */
4933 #define REAL_ARITHMETIC
4934
4935 /* Define this if you have defined special-purpose predicates in the file
4936    `MACHINE.c'.  This macro is called within an initializer of an array of
4937    structures.  The first field in the structure is the name of a predicate and
4938    the second field is an array of rtl codes.  For each predicate, list all rtl
4939    codes that can be in expressions matched by the predicate.  The list should
4940    have a trailing comma.  Here is an example of two entries in the list for a
4941    typical RISC machine:
4942
4943         #define PREDICATE_CODES \
4944           {"gen_reg_rtx_operand", {SUBREG, REG}},  \
4945           {"reg_or_short_cint_operand", {SUBREG, REG, CONST_INT}},
4946
4947    Defining this macro does not affect the generated code (however, incorrect
4948    definitions that omit an rtl code that may be matched by the predicate can
4949    cause the compiler to malfunction).  Instead, it allows the table built by
4950    `genrecog' to be more compact and efficient, thus speeding up the compiler.
4951    The most important predicates to include in the list specified by this macro
4952    are thoses used in the most insn patterns.  */
4953 #define PREDICATE_CODES                                 \
4954   {"shift_operator", {ASHIFT, ASHIFTRT, LSHIFTRT }},    \
4955   {"equality_operator", {EQ, NE }},                     \
4956   {"inequality_operator", {GE, GT, LE, LT, GEU, GTU, LEU, LTU }}, \
4957   {"stormy16_ineqsi_operator", {LT, GE, LTU, GEU }},
4958
4959 /* An alias for a machine mode name.  This is the machine mode that elements of
4960    a jump-table should have.  */
4961 #define CASE_VECTOR_MODE SImode
4962
4963 /* Define as C expression which evaluates to nonzero if the tablejump
4964    instruction expects the table to contain offsets from the address of the
4965    table.
4966    Do not define this if the table should contain absolute addresses. */
4967 /* #define CASE_VECTOR_PC_RELATIVE 1 */
4968
4969 /* Define this if control falls through a `case' insn when the index value is
4970    out of range.  This means the specified default-label is actually ignored by
4971    the `case' insn proper.  */
4972 /* #define CASE_DROPS_THROUGH */
4973
4974 /* Define this to be the smallest number of different values for which it is
4975    best to use a jump-table instead of a tree of conditional branches.  The
4976    default is four for machines with a `casesi' instruction and five otherwise.
4977    This is best for most machines.  */
4978 /* #define CASE_VALUES_THRESHOLD */
4979
4980 /* Define this macro if operations between registers with integral mode smaller
4981    than a word are always performed on the entire register.  Most RISC machines
4982    have this property and most CISC machines do not.  */
4983 #define WORD_REGISTER_OPERATIONS
4984
4985 /* Define this macro to be a C expression indicating when insns that read
4986    memory in MODE, an integral mode narrower than a word, set the bits outside
4987    of MODE to be either the sign-extension or the zero-extension of the data
4988    read.  Return `SIGN_EXTEND' for values of MODE for which the insn
4989    sign-extends, `ZERO_EXTEND' for which it zero-extends, and `NIL' for other
4990    modes.
4991
4992    This macro is not called with MODE non-integral or with a width greater than
4993    or equal to `BITS_PER_WORD', so you may return any value in this case.  Do
4994    not define this macro if it would always return `NIL'.  On machines where
4995    this macro is defined, you will normally define it as the constant
4996    `SIGN_EXTEND' or `ZERO_EXTEND'.  */
4997 #define LOAD_EXTEND_OP(MODE) ZERO_EXTEND
4998
4999 /* Define if loading short immediate values into registers sign extends.  */
5000 /* #define SHORT_IMMEDIATES_SIGN_EXTEND */
5001
5002 /* An alias for a tree code that should be used by default for conversion of
5003    floating point values to fixed point.  Normally, `FIX_ROUND_EXPR' is used.  */
5004 /* #define IMPLICIT_FIX_EXPR */
5005
5006 /* Define this macro if the same instructions that convert a floating point
5007    number to a signed fixed point number also convert validly to an unsigned
5008    one.  */
5009 /* #define FIXUNS_TRUNC_LIKE_FIX_TRUNC */
5010
5011 /* An alias for a tree code that is the easiest kind of division to compile
5012    code for in the general case.  It may be `TRUNC_DIV_EXPR', `FLOOR_DIV_EXPR',
5013    `CEIL_DIV_EXPR' or `ROUND_DIV_EXPR'.  These four division operators differ
5014    in how they round the result to an integer.  `EASY_DIV_EXPR' is used when it
5015    is permissible to use any of those kinds of division and the choice should
5016    be made on the basis of efficiency.  */
5017 #define EASY_DIV_EXPR TRUNC_DIV_EXPR
5018
5019 /* The maximum number of bytes that a single instruction can move quickly from
5020    memory to memory.  */
5021 #define MOVE_MAX 2
5022
5023 /* The maximum number of bytes that a single instruction can move quickly from
5024    memory to memory.  If this is undefined, the default is `MOVE_MAX'.
5025    Otherwise, it is the constant value that is the largest value that
5026    `MOVE_MAX' can have at run-time.  */
5027 /* #define MAX_MOVE_MAX */
5028
5029 /* A C expression that is nonzero if on this machine the number of bits
5030    actually used for the count of a shift operation is equal to the number of
5031    bits needed to represent the size of the object being shifted.  When this
5032    macro is non-zero, the compiler will assume that it is safe to omit a
5033    sign-extend, zero-extend, and certain bitwise `and' instructions that
5034    truncates the count of a shift operation.  On machines that have
5035    instructions that act on bitfields at variable positions, which may include
5036    `bit test' instructions, a nonzero `SHIFT_COUNT_TRUNCATED' also enables
5037    deletion of truncations of the values that serve as arguments to bitfield
5038    instructions.
5039
5040    If both types of instructions truncate the count (for shifts) and position
5041    (for bitfield operations), or if no variable-position bitfield instructions
5042    exist, you should define this macro.
5043
5044    However, on some machines, such as the 80386 and the 680x0, truncation only
5045    applies to shift operations and not the (real or pretended) bitfield
5046    operations.  Define `SHIFT_COUNT_TRUNCATED' to be zero on such machines.
5047    Instead, add patterns to the `md' file that include the implied truncation
5048    of the shift instructions.
5049
5050    You need not define this macro if it would always have the value of zero.  */
5051 #define SHIFT_COUNT_TRUNCATED 1
5052
5053 /* A C expression which is nonzero if on this machine it is safe to "convert"
5054    an integer of INPREC bits to one of OUTPREC bits (where OUTPREC is smaller
5055    than INPREC) by merely operating on it as if it had only OUTPREC bits.
5056
5057    On many machines, this expression can be 1.
5058
5059    When `TRULY_NOOP_TRUNCATION' returns 1 for a pair of sizes for modes for
5060    which `MODES_TIEABLE_P' is 0, suboptimal code can result.  If this is the
5061    case, making `TRULY_NOOP_TRUNCATION' return 0 in such cases may improve
5062    things.  */
5063 #define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1
5064
5065 /* A C expression describing the value returned by a comparison operator with
5066    an integral mode and stored by a store-flag instruction (`sCOND') when the
5067    condition is true.  This description must apply to *all* the `sCOND'
5068    patterns and all the comparison operators whose results have a `MODE_INT'
5069    mode.
5070
5071    A value of 1 or -1 means that the instruction implementing the comparison
5072    operator returns exactly 1 or -1 when the comparison is true and 0 when the
5073    comparison is false.  Otherwise, the value indicates which bits of the
5074    result are guaranteed to be 1 when the comparison is true.  This value is
5075    interpreted in the mode of the comparison operation, which is given by the
5076    mode of the first operand in the `sCOND' pattern.  Either the low bit or the
5077    sign bit of `STORE_FLAG_VALUE' be on.  Presently, only those bits are used
5078    by the compiler.
5079
5080    If `STORE_FLAG_VALUE' is neither 1 or -1, the compiler will generate code
5081    that depends only on the specified bits.  It can also replace comparison
5082    operators with equivalent operations if they cause the required bits to be
5083    set, even if the remaining bits are undefined.  For example, on a machine
5084    whose comparison operators return an `SImode' value and where
5085    `STORE_FLAG_VALUE' is defined as `0x80000000', saying that just the sign bit
5086    is relevant, the expression
5087
5088         (ne:SI (and:SI X (const_int POWER-OF-2)) (const_int 0))
5089
5090    can be converted to
5091
5092         (ashift:SI X (const_int N))
5093
5094    where N is the appropriate shift count to move the bit being tested into the
5095    sign bit.
5096
5097    There is no way to describe a machine that always sets the low-order bit for
5098    a true value, but does not guarantee the value of any other bits, but we do
5099    not know of any machine that has such an instruction.  If you are trying to
5100    port GNU CC to such a machine, include an instruction to perform a
5101    logical-and of the result with 1 in the pattern for the comparison operators
5102    and let us know.
5103
5104    Often, a machine will have multiple instructions that obtain a value from a
5105    comparison (or the condition codes).  Here are rules to guide the choice of
5106    value for `STORE_FLAG_VALUE', and hence the instructions to be used:
5107
5108       * Use the shortest sequence that yields a valid definition for
5109         `STORE_FLAG_VALUE'.  It is more efficient for the compiler to
5110         "normalize" the value (convert it to, e.g., 1 or 0) than for
5111         the comparison operators to do so because there may be
5112         opportunities to combine the normalization with other
5113         operations.
5114
5115       * For equal-length sequences, use a value of 1 or -1, with -1
5116         being slightly preferred on machines with expensive jumps and
5117         1 preferred on other machines.
5118
5119       * As a second choice, choose a value of `0x80000001' if
5120         instructions exist that set both the sign and low-order bits
5121         but do not define the others.
5122
5123       * Otherwise, use a value of `0x80000000'.
5124
5125    Many machines can produce both the value chosen for `STORE_FLAG_VALUE' and
5126    its negation in the same number of instructions.  On those machines, you
5127    should also define a pattern for those cases, e.g., one matching
5128
5129         (set A (neg:M (ne:M B C)))
5130
5131    Some machines can also perform `and' or `plus' operations on condition code
5132    values with less instructions than the corresponding `sCOND' insn followed
5133    by `and' or `plus'.  On those machines, define the appropriate patterns.
5134    Use the names `incscc' and `decscc', respectively, for the the patterns
5135    which perform `plus' or `minus' operations on condition code values.  See
5136    `rs6000.md' for some examples.  The GNU Superoptizer can be used to find
5137    such instruction sequences on other machines.
5138
5139    You need not define `STORE_FLAG_VALUE' if the machine has no store-flag
5140    instructions.  */
5141 /* #define STORE_FLAG_VALUE */
5142
5143 /* A C expression that gives a non-zero floating point value that is returned
5144    when comparison operators with floating-point results are true.  Define this
5145    macro on machine that have comparison operations that return floating-point
5146    values.  If there are no such operations, do not define this macro.  */
5147 /* #define FLOAT_STORE_FLAG_VALUE */
5148
5149 /* An alias for the machine mode for pointers.  On most machines, define this
5150    to be the integer mode corresponding to the width of a hardware pointer;
5151    `SImode' on 32-bit machine or `DImode' on 64-bit machines.  On some machines
5152    you must define this to be one of the partial integer modes, such as
5153    `PSImode'.
5154
5155    The width of `Pmode' must be at least as large as the value of
5156    `POINTER_SIZE'.  If it is not equal, you must define the macro
5157    `POINTERS_EXTEND_UNSIGNED' to specify how pointers are extended to `Pmode'.  */
5158 #define Pmode HImode
5159
5160 /* An alias for the machine mode used for memory references to functions being
5161    called, in `call' RTL expressions.  On most machines this should be
5162    `QImode'.  */
5163 #define FUNCTION_MODE HImode
5164
5165 /* A C expression for the maximum number of instructions above which the
5166    function DECL should not be inlined.  DECL is a `FUNCTION_DECL' node.
5167
5168    The default definition of this macro is 64 plus 8 times the number of
5169    arguments that the function accepts.  Some people think a larger threshold
5170    should be used on RISC machines.  */
5171 /* #define INTEGRATE_THRESHOLD(DECL) */
5172
5173 /* Define this if the preprocessor should ignore `#sccs' directives and print
5174    no error message.
5175
5176    Defined in svr4.h.  */
5177 /* #define SCCS_DIRECTIVE */
5178
5179 /* Define this macro if the system header files support C++ as well as C.  This
5180    macro inhibits the usual method of using system header files in C++, which
5181    is to pretend that the file's contents are enclosed in `extern "C" {...}'.  */
5182 #define NO_IMPLICIT_EXTERN_C
5183
5184 /* Define this macro if you want to implement any pragmas.  If defined, it
5185    should be a C expression to be executed when #pragma is seen.  The
5186    argument GETC is a function which will return the next character in the
5187    input stream, or EOF if no characters are left.  The argument UNGETC is
5188    a function which will push a character back into the input stream.  The
5189    argument NAME is the word following #pragma in the input stream.  The input
5190    stream pointer will be pointing just beyond the end of this word.  The
5191    expression should return true if it handled the pragma, false otherwise.
5192    The input stream should be left undistrubed if false is returned, otherwise
5193    it should be pointing at the next character after the end of the pragma.
5194    Any characters left between the end of the pragma and the end of the line will
5195    be ignored.
5196    
5197    It is generally a bad idea to implement new uses of `#pragma'.  The only
5198    reason to define this macro is for compatibility with other compilers that
5199    do support `#pragma' for the sake of any user programs which already use it.  */
5200 /* #define HANDLE_PRAGMA(GETC, UNGETC, NAME) handle_pragma (GETC, UNGETC, NAME) */
5201
5202 /* Define this macro to handle System V style pragmas: #pragma pack and
5203    #pragma weak.  Note, #pragma weak will only be supported if SUPPORT_WEAK is
5204    defined.
5205
5206    Defined in svr4.h.  */
5207 #define HANDLE_SYSV_PRAGMA
5208
5209 /* Define this macro if you want to support the Win32 style pragmas
5210    #pragma pack(push,<n>) and #pragma pack(pop). */
5211 /* HANDLE_PRAGMA_PACK_PUSH_POP 1 */
5212    
5213 /* If defined, a C expression whose value is nonzero if IDENTIFIER with
5214    arguments ARGS is a valid machine specific attribute for DECL.  The
5215    attributes in ATTRIBUTES have previously been assigned to DECL.  */
5216 /* #define VALID_MACHINE_DECL_ATTRIBUTE(DECL, ATTRIBUTES, IDENTIFIER, ARGS) */
5217
5218 /* If defined, a C expression whose value is nonzero if IDENTIFIER with
5219    arguments ARGS is a valid machine specific attribute for TYPE.  The
5220    attributes in ATTRIBUTES have previously been assigned to TYPE.  */
5221 /* #define VALID_MACHINE_TYPE_ATTRIBUTE(TYPE, ATTRIBUTES, IDENTIFIER, ARGS) */
5222
5223 /* If defined, a C expression whose value is zero if the attributes on TYPE1
5224    and TYPE2 are incompatible, one if they are compatible, and two if they are
5225    nearly compatible (which causes a warning to be generated).  */
5226 /* #define COMP_TYPE_ATTRIBUTES(TYPE1, TYPE2) */
5227
5228 /* If defined, a C statement that assigns default attributes to newly defined
5229    TYPE.  */
5230 /* #define SET_DEFAULT_TYPE_ATTRIBUTES(TYPE) */
5231
5232 /* Define this macro to control use of the character `$' in identifier names.
5233    The value should be 0, 1, or 2.  0 means `$' is not allowed by default; 1
5234    means it is allowed by default if `-traditional' is used; 2 means it is
5235    allowed by default provided `-ansi' is not used.  1 is the default; there is
5236    no need to define this macro in that case.  */
5237 /* #define DOLLARS_IN_IDENTIFIERS */
5238
5239 /* Define this macro if the assembler does not accept the character `$' in
5240    label names.  By default constructors and destructors in G++ have `$' in the
5241    identifiers.  If this macro is defined, `.' is used instead.
5242
5243    Defined in svr4.h.  */
5244 /* #define NO_DOLLAR_IN_LABEL */
5245
5246 /* Define this macro if the assembler does not accept the character `.' in
5247    label names.  By default constructors and destructors in G++ have names that
5248    use `.'.  If this macro is defined, these names are rewritten to avoid `.'.  */
5249 /* #define NO_DOT_IN_LABEL */
5250
5251 /* Define this macro if the target system expects every program's `main'
5252    function to return a standard "success" value by default (if no other value
5253    is explicitly returned).
5254
5255    The definition should be a C statement (sans semicolon) to generate the
5256    appropriate rtl instructions.  It is used only when compiling the end of
5257    `main'.  */
5258 /* #define DEFAULT_MAIN_RETURN */
5259
5260 /* Define this if the target system supports the function `atexit' from the
5261    ANSI C standard.  If this is not defined, and `INIT_SECTION_ASM_OP' is not
5262    defined, a default `exit' function will be provided to support C++.
5263
5264    Defined by svr4.h */
5265 /* #define HAVE_ATEXIT */
5266
5267 /* Define this if your `exit' function needs to do something besides calling an
5268    external function `_cleanup' before terminating with `_exit'.  The
5269    `EXIT_BODY' macro is only needed if netiher `HAVE_ATEXIT' nor
5270    `INIT_SECTION_ASM_OP' are defined.  */
5271 /* #define EXIT_BODY */
5272
5273 /* Define this macro as a C expression that is nonzero if it is safe for the
5274    delay slot scheduler to place instructions in the delay slot of INSN, even
5275    if they appear to use a resource set or clobbered in INSN.  INSN is always a
5276    `jump_insn' or an `insn'; GNU CC knows that every `call_insn' has this
5277    behavior.  On machines where some `insn' or `jump_insn' is really a function
5278    call and hence has this behavior, you should define this macro.
5279
5280    You need not define this macro if it would always return zero.  */
5281 /* #define INSN_SETS_ARE_DELAYED(INSN) */
5282
5283 /* Define this macro as a C expression that is nonzero if it is safe for the
5284    delay slot scheduler to place instructions in the delay slot of INSN, even
5285    if they appear to set or clobber a resource referenced in INSN.  INSN is
5286    always a `jump_insn' or an `insn'.  On machines where some `insn' or
5287    `jump_insn' is really a function call and its operands are registers whose
5288    use is actually in the subroutine it calls, you should define this macro.
5289    Doing so allows the delay slot scheduler to move instructions which copy
5290    arguments into the argument registers into the delay slot of INSN.
5291
5292    You need not define this macro if it would always return zero.  */
5293 /* #define INSN_REFERENCES_ARE_DELAYED(INSN) */
5294
5295 /* In rare cases, correct code generation requires extra machine dependent
5296    processing between the second jump optimization pass and delayed branch
5297    scheduling.  On those machines, define this macro as a C statement to act on
5298    the code starting at INSN.  */
5299 /* #define MACHINE_DEPENDENT_REORG(INSN) */
5300
5301 /* Define this macro if in some cases global symbols from one translation unit
5302    may not be bound to undefined symbols in another translation unit without
5303    user intervention.  For instance, under Microsoft Windows symbols must be
5304    explicitly imported from shared libraries (DLLs).  */
5305 /* #define MULTIPLE_SYMBOL_SPACES */
5306
5307 /* A C expression for the maximum number of instructions to execute via
5308    conditional execution instructions instead of a branch.  A value of
5309    BRANCH_COST+1 is the default if the machine does not use
5310    cc0, and 1 if it does use cc0.  */
5311 /* #define MAX_CONDITIONAL_EXECUTE */
5312
5313 /* A C statement that adds to tree CLOBBERS a set of STRING_CST trees for any
5314    hard regs the port wishes to automatically clobber for all asms. */
5315 /* #define MD_ASM_CLOBBERS(CLOBBERS) */
5316
5317 /* Indicate how many instructions can be issued at the same time.  */
5318 /* #define ISSUE_RATE */
5319
5320 /* A C statement which is executed by the Haifa scheduler at the beginning of
5321    each block of instructions that are to be scheduled.  FILE is either a null
5322    pointer, or a stdio stream to write any debug output to.  VERBOSE is the
5323    verbose level provided by -fsched-verbose-<n>. */
5324 /* #define MD_SCHED_INIT (FILE, VERBOSE) */
5325
5326 /* A C statement which is executed by the Haifa scheduler after it has scheduled
5327    the ready list to allow the machine description to reorder it (for example to
5328    combine two small instructions together on VLIW machines).  FILE is either a
5329    null pointer, or a stdio stream to write any debug output to.  VERBOSE is the
5330    verbose level provided by -fsched-verbose-=<n>.  READY is a pointer to the
5331    ready list of instructions that are ready to be scheduled.  N_READY is the
5332    number of elements in the ready list.  The scheduler reads the ready list in
5333    reverse order, starting with READY[N_READY-1] and going to READY[0].  CLOCK
5334    is the timer tick of the scheduler.  CAN_ISSUE_MORE is an output parameter that
5335    is set to the number of insns that can issue this clock; normally this is just
5336    'issue_rate'  */
5337 /* #define  MD_SCHED_REORDER (FILE, VERBOSE, READY, N_READY, CLOCK, CAN_ISSUE_MORE) */
5338
5339 /* A C statement which is executed by the Haifa scheduler after it has scheduled
5340    an insn from the ready list.  FILE is either a null pointer, or a stdio stream
5341    to write any debug output to.  VERBOSE is the verbose level provided by
5342    -fsched-verbose-<n>.  INSN is the instruction that was scheduled.  MORE is the
5343    number of instructions that can be issued in the current cycle.  This macro
5344    is responsible for updating the value of MORE (typically by (MORE)--). */
5345 /* #define MD_SCHED_VARIABLE_ISSUE (FILE, VERBOSE, INSN, MORE) */
5346
5347 /* Define this to the largest integer machine mode which can be used for
5348    operations other than load, store and copy operations.  You need only define
5349    this macro if the target holds values larger than word_mode in general purpose
5350    registers.  Most targets should not define this macro.  */
5351 /* #define MAX_INTEGER_COMPUTATION_MODE */
5352
5353 /* Define this macro as a C string constant for the linker argument to link in the
5354    system math library, or "" if the target does not have a separate math library.
5355    You need only define this macro if the default of "-lm" is wrong. */
5356 /* #define  MATH_LIBRARY */
5357 \f
5358 /* Define the information needed to generate branch and scc insns.  This is
5359    stored from the compare operation.  Note that we can't use "rtx" here
5360    since it hasn't been defined!  */
5361
5362 extern struct rtx_def *stormy16_compare_op0, *stormy16_compare_op1;
5363
5364 /* End of stormy16.h */