home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / gcc-2.5.8-bin.lha / info / gcc.info-17 < prev    next >
Encoding:
GNU Info File  |  1994-02-21  |  49.5 KB  |  1,224 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.55 from the input
  2. file gcc.texi.
  3.  
  4.    This file documents the use and the internals of the GNU compiler.
  5.  
  6.    Published by the Free Software Foundation 675 Massachusetts Avenue
  7. Cambridge, MA 02139 USA
  8.  
  9.    Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
  10.  
  11.    Permission is granted to make and distribute verbatim copies of this
  12. manual provided the copyright notice and this permission notice are
  13. preserved on all copies.
  14.  
  15.    Permission is granted to copy and distribute modified versions of
  16. this manual under the conditions for verbatim copying, provided also
  17. that the sections entitled "GNU General Public License" and "Protect
  18. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  19. original, and provided that the entire resulting derived work is
  20. distributed under the terms of a permission notice identical to this
  21. one.
  22.  
  23.    Permission is granted to copy and distribute translations of this
  24. manual into another language, under the above conditions for modified
  25. versions, except that the sections entitled "GNU General Public
  26. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  27. permission notice, may be included in translations approved by the Free
  28. Software Foundation instead of in the original English.
  29.  
  30. 
  31. File: gcc.info,  Node: Driver,  Next: Run-time Target,  Up: Target Macros
  32.  
  33. Controlling the Compilation Driver, `gcc'
  34. =========================================
  35.  
  36. `SWITCH_TAKES_ARG (CHAR)'
  37.      A C expression which determines whether the option `-CHAR' takes
  38.      arguments.  The value should be the number of arguments that
  39.      option takes-zero, for many options.
  40.  
  41.      By default, this macro is defined to handle the standard options
  42.      properly.  You need not define it unless you wish to add additional
  43.      options which take arguments.
  44.  
  45. `WORD_SWITCH_TAKES_ARG (NAME)'
  46.      A C expression which determines whether the option `-NAME' takes
  47.      arguments.  The value should be the number of arguments that
  48.      option takes-zero, for many options.  This macro rather than
  49.      `SWITCH_TAKES_ARG' is used for multi-character option names.
  50.  
  51.      By default, this macro is defined as
  52.      `DEFAULT_WORD_SWITCH_TAKES_ARG', which handles the standard options
  53.      properly.  You need not define `WORD_SWITCH_TAKES_ARG' unless you
  54.      wish to add additional options which take arguments.  Any
  55.      redefinition should call `DEFAULT_WORD_SWITCH_TAKES_ARG' and then
  56.      check for additional options.
  57.  
  58. `SWITCHES_NEED_SPACES'
  59.      A string-valued C expression which is nonempty if the linker needs
  60.      a space between the `-L' or `-o' option and its argument.
  61.  
  62.      If this macro is not defined, the default value is 0.
  63.  
  64. `CPP_SPEC'
  65.      A C string constant that tells the GNU CC driver program options to
  66.      pass to CPP.  It can also specify how to translate options you
  67.      give to GNU CC into options for GNU CC to pass to the CPP.
  68.  
  69.      Do not define this macro if it does not need to do anything.
  70.  
  71. `NO_BUILTIN_SIZE_TYPE'
  72.      If this macro is defined, the preprocessor will not define the
  73.      builtin macro `__SIZE_TYPE__'.  The macro `__SIZE_TYPE__' must
  74.      then be defined by `CPP_SPEC' instead.
  75.  
  76.      This should be defined if `SIZE_TYPE' depends on target dependent
  77.      flags which are not accessible to the preprocessor.  Otherwise, it
  78.      should not be defined.
  79.  
  80. `NO_BUILTIN_PTRDIFF_TYPE'
  81.      If this macro is defined, the preprocessor will not define the
  82.      builtin macro `__PTRDIFF_TYPE__'.  The macro `__PTRDIFF_TYPE__'
  83.      must then be defined by `CPP_SPEC' instead.
  84.  
  85.      This should be defined if `PTRDIFF_TYPE' depends on target
  86.      dependent flags which are not accessible to the preprocessor.
  87.      Otherwise, it should not be defined.
  88.  
  89. `SIGNED_CHAR_SPEC'
  90.      A C string constant that tells the GNU CC driver program options to
  91.      pass to CPP.  By default, this macro is defined to pass the option
  92.      `-D__CHAR_UNSIGNED__' to CPP if `char' will be treated as
  93.      `unsigned char' by `cc1'.
  94.  
  95.      Do not define this macro unless you need to override the default
  96.      definition.
  97.  
  98. `CC1_SPEC'
  99.      A C string constant that tells the GNU CC driver program options to
  100.      pass to `cc1'.  It can also specify how to translate options you
  101.      give to GNU CC into options for GNU CC to pass to the `cc1'.
  102.  
  103.      Do not define this macro if it does not need to do anything.
  104.  
  105. `CC1PLUS_SPEC'
  106.      A C string constant that tells the GNU CC driver program options to
  107.      pass to `cc1plus'.  It can also specify how to translate options
  108.      you give to GNU CC into options for GNU CC to pass to the
  109.      `cc1plus'.
  110.  
  111.      Do not define this macro if it does not need to do anything.
  112.  
  113. `ASM_SPEC'
  114.      A C string constant that tells the GNU CC driver program options to
  115.      pass to the assembler.  It can also specify how to translate
  116.      options you give to GNU CC into options for GNU CC to pass to the
  117.      assembler.  See the file `sun3.h' for an example of this.
  118.  
  119.      Do not define this macro if it does not need to do anything.
  120.  
  121. `ASM_FINAL_SPEC'
  122.      A C string constant that tells the GNU CC driver program how to
  123.      run any programs which cleanup after the normal assembler.
  124.      Normally, this is not needed.  See the file `mips.h' for an
  125.      example of this.
  126.  
  127.      Do not define this macro if it does not need to do anything.
  128.  
  129. `LINK_SPEC'
  130.      A C string constant that tells the GNU CC driver program options to
  131.      pass to the linker.  It can also specify how to translate options
  132.      you give to GNU CC into options for GNU CC to pass to the linker.
  133.  
  134.      Do not define this macro if it does not need to do anything.
  135.  
  136. `LIB_SPEC'
  137.      Another C string constant used much like `LINK_SPEC'.  The
  138.      difference between the two is that `LIB_SPEC' is used at the end
  139.      of the command given to the linker.
  140.  
  141.      If this macro is not defined, a default is provided that loads the
  142.      standard C library from the usual place.  See `gcc.c'.
  143.  
  144. `STARTFILE_SPEC'
  145.      Another C string constant used much like `LINK_SPEC'.  The
  146.      difference between the two is that `STARTFILE_SPEC' is used at the
  147.      very beginning of the command given to the linker.
  148.  
  149.      If this macro is not defined, a default is provided that loads the
  150.      standard C startup file from the usual place.  See `gcc.c'.
  151.  
  152. `ENDFILE_SPEC'
  153.      Another C string constant used much like `LINK_SPEC'.  The
  154.      difference between the two is that `ENDFILE_SPEC' is used at the
  155.      very end of the command given to the linker.
  156.  
  157.      Do not define this macro if it does not need to do anything.
  158.  
  159. `LINK_LIBGCC_SPECIAL'
  160.      Define this macro meaning that `gcc' should find the library
  161.      `libgcc.a' by hand, rather than passing the argument `-lgcc' to
  162.      tell the linker to do the search; also, `gcc' should not generate
  163.      `-L' options to pass to the linker (as it normally does).
  164.  
  165. `LINK_LIBGCC_SPECIAL_1'
  166.      Define this macro meaning that `gcc' should find the library
  167.      `libgcc.a' by hand, rather than passing the argument `-lgcc' to
  168.      tell the linker to do the search.
  169.  
  170. `RELATIVE_PREFIX_NOT_LINKDIR'
  171.      Define this macro to tell `gcc' that it should only translate a
  172.      `-B' prefix into a `-L' linker option if the prefix indicates an
  173.      absolute file name.
  174.  
  175. `STANDARD_EXEC_PREFIX'
  176.      Define this macro as a C string constant if you wish to override
  177.      the standard choice of `/gnu/lib/gcc-lib/' as the default prefix to
  178.      try when searching for the executable files of the compiler.
  179.  
  180. `MD_EXEC_PREFIX'
  181.      If defined, this macro is an additional prefix to try after
  182.      `STANDARD_EXEC_PREFIX'.  `MD_EXEC_PREFIX' is not searched when the
  183.      `-b' option is used, or the compiler is built as a cross compiler.
  184.  
  185. `STANDARD_STARTFILE_PREFIX'
  186.      Define this macro as a C string constant if you wish to override
  187.      the standard choice of `/gnu/lib/' as the default prefix to try
  188.      when searching for startup files such as `crt0.o'.
  189.  
  190. `MD_STARTFILE_PREFIX'
  191.      If defined, this macro supplies an additional prefix to try after
  192.      the standard prefixes.  `MD_EXEC_PREFIX' is not searched when the
  193.      `-b' option is used, or when the compiler is built as a cross
  194.      compiler.
  195.  
  196. `MD_STARTFILE_PREFIX_1'
  197.      If defined, this macro supplies yet another prefix to try after the
  198.      standard prefixes.  It is not searched when the `-b' option is
  199.      used, or when the compiler is built as a cross compiler.
  200.  
  201. `LOCAL_INCLUDE_DIR'
  202.      Define this macro as a C string constant if you wish to override
  203.      the standard choice of `/gnu/include' as the default prefix to try
  204.      when searching for local header files.  `LOCAL_INCLUDE_DIR' comes
  205.      before `SYSTEM_INCLUDE_DIR' in the search order.
  206.  
  207.      Cross compilers do not use this macro and do not search either
  208.      `/gnu/include' or its replacement.
  209.  
  210. `SYSTEM_INCLUDE_DIR'
  211.      Define this macro as a C string constant if you wish to specify a
  212.      system-specific directory to search for header files before the
  213.      standard directory.  `SYSTEM_INCLUDE_DIR' comes before
  214.      `STANDARD_INCLUDE_DIR' in the search order.
  215.  
  216.      Cross compilers do not use this macro and do not search the
  217.      directory specified.
  218.  
  219. `STANDARD_INCLUDE_DIR'
  220.      Define this macro as a C string constant if you wish to override
  221.      the standard choice of `/usr/include' as the default prefix to try
  222.      when searching for header files.
  223.  
  224.      Cross compilers do not use this macro and do not search either
  225.      `/usr/include' or its replacement.
  226.  
  227. `INCLUDE_DEFAULTS'
  228.      Define this macro if you wish to override the entire default
  229.      search path for include files.  The default search path includes
  230.      `GCC_INCLUDE_DIR', `LOCAL_INCLUDE_DIR', `SYSTEM_INCLUDE_DIR',
  231.      `GPLUSPLUS_INCLUDE_DIR', and `STANDARD_INCLUDE_DIR'.  In addition,
  232.      `GPLUSPLUS_INCLUDE_DIR' and `GCC_INCLUDE_DIR' are defined
  233.      automatically by `Makefile', and specify private search areas for
  234.      GCC.  The directory `GPLUSPLUS_INCLUDE_DIR' is used only for C++
  235.      programs.
  236.  
  237.      The definition should be an initializer for an array of structures.
  238.      Each array element should have two elements: the directory name (a
  239.      string constant) and a flag for C++-only directories.  Mark the
  240.      end of the array with a null element.  For example, here is the
  241.      definition used for VMS:
  242.  
  243.           #define INCLUDE_DEFAULTS \
  244.           {                                       \
  245.             { "GNU_GXX_INCLUDE:", 1},             \
  246.             { "GNU_CC_INCLUDE:", 0},              \
  247.             { "SYS$SYSROOT:[SYSLIB.]", 0},        \
  248.             { ".", 0},                            \
  249.             { 0, 0}                               \
  250.           }
  251.  
  252.    Here is the order of prefixes tried for exec files:
  253.  
  254.   1. Any prefixes specified by the user with `-B'.
  255.  
  256.   2. The environment variable `GCC_EXEC_PREFIX', if any.
  257.  
  258.   3. The directories specified by the environment variable
  259.      `COMPILER_PATH'.
  260.  
  261.   4. The macro `STANDARD_EXEC_PREFIX'.
  262.  
  263.   5. `/usr/lib/gcc/'.
  264.  
  265.   6. The macro `MD_EXEC_PREFIX', if any.
  266.  
  267.    Here is the order of prefixes tried for startfiles:
  268.  
  269.   1. Any prefixes specified by the user with `-B'.
  270.  
  271.   2. The environment variable `GCC_EXEC_PREFIX', if any.
  272.  
  273.   3. The directories specified by the environment variable
  274.      `LIBRARY_PATH'.
  275.  
  276.   4. The macro `STANDARD_EXEC_PREFIX'.
  277.  
  278.   5. `/usr/lib/gcc/'.
  279.  
  280.   6. The macro `MD_EXEC_PREFIX', if any.
  281.  
  282.   7. The macro `MD_STARTFILE_PREFIX', if any.
  283.  
  284.   8. The macro `STANDARD_STARTFILE_PREFIX'.
  285.  
  286.   9. `/lib/'.
  287.  
  288.  10. `/usr/lib/'.
  289.  
  290. 
  291. File: gcc.info,  Node: Run-time Target,  Next: Storage Layout,  Prev: Driver,  Up: Target Macros
  292.  
  293. Run-time Target Specification
  294. =============================
  295.  
  296. `CPP_PREDEFINES'
  297.      Define this to be a string constant containing `-D' options to
  298.      define the predefined macros that identify this machine and system.
  299.      These macros will be predefined unless the `-ansi' option is
  300.      specified.
  301.  
  302.      In addition, a parallel set of macros are predefined, whose names
  303.      are made by appending `__' at the beginning and at the end.  These
  304.      `__' macros are permitted by the ANSI standard, so they are
  305.      predefined regardless of whether `-ansi' is specified.
  306.  
  307.      For example, on the Sun, one can use the following value:
  308.  
  309.           "-Dmc68000 -Dsun -Dunix"
  310.  
  311.      The result is to define the macros `__mc68000__', `__sun__' and
  312.      `__unix__' unconditionally, and the macros `mc68000', `sun' and
  313.      `unix' provided `-ansi' is not specified.
  314.  
  315. `STDC_VALUE'
  316.      Define the value to be assigned to the built-in macro `__STDC__'.
  317.      The default is the value `1'.
  318.  
  319. `extern int target_flags;'
  320.      This declaration should be present.
  321.  
  322. `TARGET_...'
  323.      This series of macros is to allow compiler command arguments to
  324.      enable or disable the use of optional features of the target
  325.      machine.  For example, one machine description serves both the
  326.      68000 and the 68020; a command argument tells the compiler whether
  327.      it should use 68020-only instructions or not.  This command
  328.      argument works by means of a macro `TARGET_68020' that tests a bit
  329.      in `target_flags'.
  330.  
  331.      Define a macro `TARGET_FEATURENAME' for each such option.  Its
  332.      definition should test a bit in `target_flags'; for example:
  333.  
  334.           #define TARGET_68020 (target_flags & 1)
  335.  
  336.      One place where these macros are used is in the
  337.      condition-expressions of instruction patterns.  Note how
  338.      `TARGET_68020' appears frequently in the 68000 machine description
  339.      file, `m68k.md'.  Another place they are used is in the
  340.      definitions of the other macros in the `MACHINE.h' file.
  341.  
  342. `TARGET_SWITCHES'
  343.      This macro defines names of command options to set and clear bits
  344.      in `target_flags'.  Its definition is an initializer with a
  345.      subgrouping for each command option.
  346.  
  347.      Each subgrouping contains a string constant, that defines the
  348.      option name, and a number, which contains the bits to set in
  349.      `target_flags'.  A negative number says to clear bits instead; the
  350.      negative of the number is which bits to clear.  The actual option
  351.      name is made by appending `-m' to the specified name.
  352.  
  353.      One of the subgroupings should have a null string.  The number in
  354.      this grouping is the default value for `target_flags'.  Any target
  355.      options act starting with that value.
  356.  
  357.      Here is an example which defines `-m68000' and `-m68020' with
  358.      opposite meanings, and picks the latter as the default:
  359.  
  360.           #define TARGET_SWITCHES \
  361.             { { "68020", 1},      \
  362.               { "68000", -1},     \
  363.               { "", 1}}
  364.  
  365. `TARGET_OPTIONS'
  366.      This macro is similar to `TARGET_SWITCHES' but defines names of
  367.      command options that have values.  Its definition is an
  368.      initializer with a subgrouping for each command option.
  369.  
  370.      Each subgrouping contains a string constant, that defines the
  371.      fixed part of the option name, and the address of a variable.  The
  372.      variable, type `char *', is set to the variable part of the given
  373.      option if the fixed part matches.  The actual option name is made
  374.      by appending `-m' to the specified name.
  375.  
  376.      Here is an example which defines `-mshort-data-NUMBER'.  If the
  377.      given option is `-mshort-data-512', the variable `m88k_short_data'
  378.      will be set to the string `"512"'.
  379.  
  380.           extern char *m88k_short_data;
  381.           #define TARGET_OPTIONS \
  382.            { { "short-data-", &m88k_short_data } }
  383.  
  384. `TARGET_VERSION'
  385.      This macro is a C statement to print on `stderr' a string
  386.      describing the particular machine description choice.  Every
  387.      machine description should define `TARGET_VERSION'.  For example:
  388.  
  389.           #ifdef MOTOROLA
  390.           #define TARGET_VERSION \
  391.             fprintf (stderr, " (68k, Motorola syntax)");
  392.           #else
  393.           #define TARGET_VERSION \
  394.             fprintf (stderr, " (68k, MIT syntax)");
  395.           #endif
  396.  
  397. `OVERRIDE_OPTIONS'
  398.      Sometimes certain combinations of command options do not make
  399.      sense on a particular target machine.  You can define a macro
  400.      `OVERRIDE_OPTIONS' to take account of this.  This macro, if
  401.      defined, is executed once just after all the command options have
  402.      been parsed.
  403.  
  404.      Don't use this macro to turn on various extra optimizations for
  405.      `-O'.  That is what `OPTIMIZATION_OPTIONS' is for.
  406.  
  407. `OPTIMIZATION_OPTIONS (LEVEL)'
  408.      Some machines may desire to change what optimizations are
  409.      performed for various optimization levels.   This macro, if
  410.      defined, is executed once just after the optimization level is
  411.      determined and before the remainder of the command options have
  412.      been parsed.  Values set in this macro are used as the default
  413.      values for the other command line options.
  414.  
  415.      LEVEL is the optimization level specified; 2 if -O2 is specified,
  416.      1 if -O is specified, and 0 if neither is specified.
  417.  
  418.      *Do not examine `write_symbols' in this macro!* The debugging
  419.      options are not supposed to alter the generated code.
  420.  
  421. 
  422. File: gcc.info,  Node: Storage Layout,  Next: Type Layout,  Prev: Run-time Target,  Up: Target Macros
  423.  
  424. Storage Layout
  425. ==============
  426.  
  427.    Note that the definitions of the macros in this table which are
  428. sizes or alignments measured in bits do not need to be constant.  They
  429. can be C expressions that refer to static variables, such as the
  430. `target_flags'.  *Note Run-time Target::.
  431.  
  432. `BITS_BIG_ENDIAN'
  433.      Define this macro to be the value 1 if the most significant bit in
  434.      a byte has the lowest number; otherwise define it to be the value
  435.      zero.  This means that bit-field instructions count from the most
  436.      significant bit.  If the machine has no bit-field instructions,
  437.      then this must still be defined, but it doesn't matter which value
  438.      it is defined to.
  439.  
  440.      This macro does not affect the way structure fields are packed into
  441.      bytes or words; that is controlled by `BYTES_BIG_ENDIAN'.
  442.  
  443. `BYTES_BIG_ENDIAN'
  444.      Define this macro to be 1 if the most significant byte in a word
  445.      has the lowest number.
  446.  
  447. `WORDS_BIG_ENDIAN'
  448.      Define this macro to be 1 if, in a multiword object, the most
  449.      significant word has the lowest number.  This applies to both
  450.      memory locations and registers; GNU CC fundamentally assumes that
  451.      the order of words in memory is the same as the order in registers.
  452.  
  453. `FLOAT_WORDS_BIG_ENDIAN'
  454.      Define this macro to be 1 if `DFmode', `XFmode' or `TFmode'
  455.      floating point numbers are stored in memory with the word
  456.      containing the sign bit at the lowest address; otherwise define it
  457.      to be 0.
  458.  
  459.      You need not define this macro if the ordering is the same as for
  460.      multi-word integers.
  461.  
  462. `BITS_PER_UNIT'
  463.      Define this macro to be the number of bits in an addressable
  464.      storage unit (byte); normally 8.
  465.  
  466. `BITS_PER_WORD'
  467.      Number of bits in a word; normally 32.
  468.  
  469. `MAX_BITS_PER_WORD'
  470.      Maximum number of bits in a word.  If this is undefined, the
  471.      default is `BITS_PER_WORD'.  Otherwise, it is the constant value
  472.      that is the largest value that `BITS_PER_WORD' can have at
  473.      run-time.
  474.  
  475. `UNITS_PER_WORD'
  476.      Number of storage units in a word; normally 4.
  477.  
  478. `MAX_UNITS_PER_WORD'
  479.      Maximum number of units in a word.  If this is undefined, the
  480.      default is `UNITS_PER_WORD'.  Otherwise, it is the constant value
  481.      that is the largest value that `UNITS_PER_WORD' can have at
  482.      run-time.
  483.  
  484. `POINTER_SIZE'
  485.      Width of a pointer, in bits.
  486.  
  487. `PROMOTE_MODE (M, UNSIGNEDP, TYPE)'
  488.      A macro to update M and UNSIGNEDP when an object whose type is
  489.      TYPE and which has the specified mode and signedness is to be
  490.      stored in a register.  This macro is only called when TYPE is a
  491.      scalar type.
  492.  
  493.      On most RISC machines, which only have operations that operate on
  494.      a full register, define this macro to set M to `word_mode' if M is
  495.      an integer mode narrower than `BITS_PER_WORD'.  In most cases,
  496.      only integer modes should be widened because wider-precision
  497.      floating-point operations are usually more expensive than their
  498.      narrower counterparts.
  499.  
  500.      For most machines, the macro definition does not change UNSIGNEDP.
  501.      However, some machines, have instructions that preferentially
  502.      handle either signed or unsigned quantities of certain modes.  For
  503.      example, on the DEC Alpha, 32-bit loads from memory and 32-bit add
  504.      instructions sign-extend the result to 64 bits.  On such machines,
  505.      set UNSIGNEDP according to which kind of extension is more
  506.      efficient.
  507.  
  508.      Do not define this macro if it would never modify M.
  509.  
  510. `PROMOTE_FUNCTION_ARGS'
  511.      Define this macro if the promotion described by `PROMOTE_MODE'
  512.      should also be done for outgoing function arguments.
  513.  
  514. `PROMOTE_FUNCTION_RETURN'
  515.      Define this macro if the promotion described by `PROMOTE_MODE'
  516.      should also be done for the return value of functions.
  517.  
  518.      If this macro is defined, `FUNCTION_VALUE' must perform the same
  519.      promotions done by `PROMOTE_MODE'.
  520.  
  521. `PARM_BOUNDARY'
  522.      Normal alignment required for function parameters on the stack, in
  523.      bits.  All stack parameters receive at least this much alignment
  524.      regardless of data type.  On most machines, this is the same as the
  525.      size of an integer.
  526.  
  527. `STACK_BOUNDARY'
  528.      Define this macro if you wish to preserve a certain alignment for
  529.      the stack pointer.  The definition is a C expression for the
  530.      desired alignment (measured in bits).
  531.  
  532.      If `PUSH_ROUNDING' is not defined, the stack will always be aligned
  533.      to the specified boundary.  If `PUSH_ROUNDING' is defined and
  534.      specifies a less strict alignment than `STACK_BOUNDARY', the stack
  535.      may be momentarily unaligned while pushing arguments.
  536.  
  537. `FUNCTION_BOUNDARY'
  538.      Alignment required for a function entry point, in bits.
  539.  
  540. `BIGGEST_ALIGNMENT'
  541.      Biggest alignment that any data type can require on this machine,
  542.      in bits.
  543.  
  544. `BIGGEST_FIELD_ALIGNMENT'
  545.      Biggest alignment that any structure field can require on this
  546.      machine, in bits.  If defined, this overrides `BIGGEST_ALIGNMENT'
  547.      for structure fields only.
  548.  
  549. `MAX_OFILE_ALIGNMENT'
  550.      Biggest alignment supported by the object file format of this
  551.      machine.  Use this macro to limit the alignment which can be
  552.      specified using the `__attribute__ ((aligned (N)))' construct.  If
  553.      not defined, the default value is `BIGGEST_ALIGNMENT'.
  554.  
  555. `DATA_ALIGNMENT (TYPE, BASIC-ALIGN)'
  556.      If defined, a C expression to compute the alignment for a static
  557.      variable.  TYPE is the data type, and BASIC-ALIGN is the alignment
  558.      that the object would ordinarily have.  The value of this macro is
  559.      used instead of that alignment to align the object.
  560.  
  561.      If this macro is not defined, then BASIC-ALIGN is used.
  562.  
  563.      One use of this macro is to increase alignment of medium-size data
  564.      to make it all fit in fewer cache lines.  Another is to cause
  565.      character arrays to be word-aligned so that `strcpy' calls that
  566.      copy constants to character arrays can be done inline.
  567.  
  568. `CONSTANT_ALIGNMENT (CONSTANT, BASIC-ALIGN)'
  569.      If defined, a C expression to compute the alignment given to a
  570.      constant that is being placed in memory.  CONSTANT is the constant
  571.      and BASIC-ALIGN is the alignment that the object would ordinarily
  572.      have.  The value of this macro is used instead of that alignment to
  573.      align the object.
  574.  
  575.      If this macro is not defined, then BASIC-ALIGN is used.
  576.  
  577.      The typical use of this macro is to increase alignment for string
  578.      constants to be word aligned so that `strcpy' calls that copy
  579.      constants can be done inline.
  580.  
  581. `EMPTY_FIELD_BOUNDARY'
  582.      Alignment in bits to be given to a structure bit field that
  583.      follows an empty field such as `int : 0;'.
  584.  
  585.      Note that `PCC_BITFIELD_TYPE_MATTERS' also affects the alignment
  586.      that results from an empty field.
  587.  
  588. `STRUCTURE_SIZE_BOUNDARY'
  589.      Number of bits which any structure or union's size must be a
  590.      multiple of.  Each structure or union's size is rounded up to a
  591.      multiple of this.
  592.  
  593.      If you do not define this macro, the default is the same as
  594.      `BITS_PER_UNIT'.
  595.  
  596. `STRICT_ALIGNMENT'
  597.      Define this macro to be the value 1 if instructions will fail to
  598.      work if given data not on the nominal alignment.  If instructions
  599.      will merely go slower in that case, define this macro as 0.
  600.  
  601. `PCC_BITFIELD_TYPE_MATTERS'
  602.      Define this if you wish to imitate the way many other C compilers
  603.      handle alignment of bitfields and the structures that contain them.
  604.  
  605.      The behavior is that the type written for a bitfield (`int',
  606.      `short', or other integer type) imposes an alignment for the
  607.      entire structure, as if the structure really did contain an
  608.      ordinary field of that type.  In addition, the bitfield is placed
  609.      within the structure so that it would fit within such a field, not
  610.      crossing a boundary for it.
  611.  
  612.      Thus, on most machines, a bitfield whose type is written as `int'
  613.      would not cross a four-byte boundary, and would force four-byte
  614.      alignment for the whole structure.  (The alignment used may not be
  615.      four bytes; it is controlled by the other alignment parameters.)
  616.  
  617.      If the macro is defined, its definition should be a C expression;
  618.      a nonzero value for the expression enables this behavior.
  619.  
  620.      Note that if this macro is not defined, or its value is zero, some
  621.      bitfields may cross more than one alignment boundary.  The
  622.      compiler can support such references if there are `insv', `extv',
  623.      and `extzv' insns that can directly reference memory.
  624.  
  625.      The other known way of making bitfields work is to define
  626.      `STRUCTURE_SIZE_BOUNDARY' as large as `BIGGEST_ALIGNMENT'.  Then
  627.      every structure can be accessed with fullwords.
  628.  
  629.      Unless the machine has bitfield instructions or you define
  630.      `STRUCTURE_SIZE_BOUNDARY' that way, you must define
  631.      `PCC_BITFIELD_TYPE_MATTERS' to have a nonzero value.
  632.  
  633.      If your aim is to make GNU CC use the same conventions for laying
  634.      out bitfields as are used by another compiler, here is how to
  635.      investigate what the other compiler does.  Compile and run this
  636.      program:
  637.  
  638.           struct foo1
  639.           {
  640.             char x;
  641.             char :0;
  642.             char y;
  643.           };
  644.           
  645.           struct foo2
  646.           {
  647.             char x;
  648.             int :0;
  649.             char y;
  650.           };
  651.           
  652.           main ()
  653.           {
  654.             printf ("Size of foo1 is %d\n",
  655.                     sizeof (struct foo1));
  656.             printf ("Size of foo2 is %d\n",
  657.                     sizeof (struct foo2));
  658.             exit (0);
  659.           }
  660.  
  661.      If this prints 2 and 5, then the compiler's behavior is what you
  662.      would get from `PCC_BITFIELD_TYPE_MATTERS'.
  663.  
  664. `BITFIELD_NBYTES_LIMITED'
  665.      Like PCC_BITFIELD_TYPE_MATTERS except that its effect is limited to
  666.      aligning a bitfield within the structure.
  667.  
  668. `ROUND_TYPE_SIZE (STRUCT, SIZE, ALIGN)'
  669.      Define this macro as an expression for the overall size of a
  670.      structure (given by STRUCT as a tree node) when the size computed
  671.      from the fields is SIZE and the alignment is ALIGN.
  672.  
  673.      The default is to round SIZE up to a multiple of ALIGN.
  674.  
  675. `ROUND_TYPE_ALIGN (STRUCT, COMPUTED, SPECIFIED)'
  676.      Define this macro as an expression for the alignment of a structure
  677.      (given by STRUCT as a tree node) if the alignment computed in the
  678.      usual way is COMPUTED and the alignment explicitly specified was
  679.      SPECIFIED.
  680.  
  681.      The default is to use SPECIFIED if it is larger; otherwise, use
  682.      the smaller of COMPUTED and `BIGGEST_ALIGNMENT'
  683.  
  684. `MAX_FIXED_MODE_SIZE'
  685.      An integer expression for the size in bits of the largest integer
  686.      machine mode that should actually be used.  All integer machine
  687.      modes of this size or smaller can be used for structures and
  688.      unions with the appropriate sizes.  If this macro is undefined,
  689.      `GET_MODE_BITSIZE (DImode)' is assumed.
  690.  
  691. `CHECK_FLOAT_VALUE (MODE, VALUE)'
  692.      A C statement to validate the value VALUE (of type `double') for
  693.      mode MODE.  This means that you check whether VALUE fits within
  694.      the possible range of values for mode MODE on this target machine.
  695.      The mode MODE is always `SFmode' or `DFmode'.
  696.  
  697.      If VALUE is not valid, you should call `error' to print an error
  698.      message and then assign some valid value to VALUE.  Allowing an
  699.      invalid value to go through the compiler can produce incorrect
  700.      assembler code which may even cause Unix assemblers to crash.
  701.  
  702.      This macro need not be defined if there is no work for it to do.
  703.  
  704. `TARGET_FLOAT_FORMAT'
  705.      A code distinguishing the floating point format of the target
  706.      machine.  There are three defined values:
  707.  
  708.     `IEEE_FLOAT_FORMAT'
  709.           This code indicates IEEE floating point.  It is the default;
  710.           there is no need to define this macro when the format is IEEE.
  711.  
  712.     `VAX_FLOAT_FORMAT'
  713.           This code indicates the peculiar format used on the Vax.
  714.  
  715.     `UNKNOWN_FLOAT_FORMAT'
  716.           This code indicates any other format.
  717.  
  718.      The value of this macro is compared with `HOST_FLOAT_FORMAT'
  719.      (*note Config::.) to determine whether the target machine has the
  720.      same format as the host machine.  If any other formats are
  721.      actually in use on supported machines, new codes should be defined
  722.      for them.
  723.  
  724.      The ordering of the component words of floating point values
  725.      stored in memory is controlled by `FLOAT_WORDS_BIG_ENDIAN' for the
  726.      target machine and `HOST_FLOAT_WORDS_BIG_ENDIAN' for the host.
  727.  
  728. 
  729. File: gcc.info,  Node: Type Layout,  Next: Registers,  Prev: Storage Layout,  Up: Target Macros
  730.  
  731. Layout of Source Language Data Types
  732. ====================================
  733.  
  734.    These macros define the sizes and other characteristics of the
  735. standard basic data types used in programs being compiled.  Unlike the
  736. macros in the previous section, these apply to specific features of C
  737. and related languages, rather than to fundamental aspects of storage
  738. layout.
  739.  
  740. `INT_TYPE_SIZE'
  741.      A C expression for the size in bits of the type `int' on the
  742.      target machine.  If you don't define this, the default is one word.
  743.  
  744. `MAX_INT_TYPE_SIZE'
  745.      Maximum number for the size in bits of the type `int' on the target
  746.      machine.  If this is undefined, the default is `INT_TYPE_SIZE'.
  747.      Otherwise, it is the constant value that is the largest value that
  748.      `INT_TYPE_SIZE' can have at run-time.  This is used in `cpp'.
  749.  
  750. `SHORT_TYPE_SIZE'
  751.      A C expression for the size in bits of the type `short' on the
  752.      target machine.  If you don't define this, the default is half a
  753.      word.  (If this would be less than one storage unit, it is rounded
  754.      up to one unit.)
  755.  
  756. `LONG_TYPE_SIZE'
  757.      A C expression for the size in bits of the type `long' on the
  758.      target machine.  If you don't define this, the default is one word.
  759.  
  760. `MAX_LONG_TYPE_SIZE'
  761.      Maximum number for the size in bits of the type `long' on the
  762.      target machine.  If this is undefined, the default is
  763.      `LONG_TYPE_SIZE'.  Otherwise, it is the constant value that is the
  764.      largest value that `LONG_TYPE_SIZE' can have at run-time.  This is
  765.      used in `cpp'.
  766.  
  767. `LONG_LONG_TYPE_SIZE'
  768.      A C expression for the size in bits of the type `long long' on the
  769.      target machine.  If you don't define this, the default is two
  770.      words.
  771.  
  772. `CHAR_TYPE_SIZE'
  773.      A C expression for the size in bits of the type `char' on the
  774.      target machine.  If you don't define this, the default is one
  775.      quarter of a word.  (If this would be less than one storage unit,
  776.      it is rounded up to one unit.)
  777.  
  778. `MAX_CHAR_TYPE_SIZE'
  779.      Maximum number for the size in bits of the type `char' on the
  780.      target machine.  If this is undefined, the default is
  781.      `CHAR_TYPE_SIZE'.  Otherwise, it is the constant value that is the
  782.      largest value that `CHAR_TYPE_SIZE' can have at run-time.  This is
  783.      used in `cpp'.
  784.  
  785. `FLOAT_TYPE_SIZE'
  786.      A C expression for the size in bits of the type `float' on the
  787.      target machine.  If you don't define this, the default is one word.
  788.  
  789. `DOUBLE_TYPE_SIZE'
  790.      A C expression for the size in bits of the type `double' on the
  791.      target machine.  If you don't define this, the default is two
  792.      words.
  793.  
  794. `LONG_DOUBLE_TYPE_SIZE'
  795.      A C expression for the size in bits of the type `long double' on
  796.      the target machine.  If you don't define this, the default is two
  797.      words.
  798.  
  799. `DEFAULT_SIGNED_CHAR'
  800.      An expression whose value is 1 or 0, according to whether the type
  801.      `char' should be signed or unsigned by default.  The user can
  802.      always override this default with the options `-fsigned-char' and
  803.      `-funsigned-char'.
  804.  
  805. `DEFAULT_SHORT_ENUMS'
  806.      A C expression to determine whether to give an `enum' type only as
  807.      many bytes as it takes to represent the range of possible values
  808.      of that type.  A nonzero value means to do that; a zero value
  809.      means all `enum' types should be allocated like `int'.
  810.  
  811.      If you don't define the macro, the default is 0.
  812.  
  813. `SIZE_TYPE'
  814.      A C expression for a string describing the name of the data type
  815.      to use for size values.  The typedef name `size_t' is defined
  816.      using the contents of the string.
  817.  
  818.      The string can contain more than one keyword.  If so, separate
  819.      them with spaces, and write first any length keyword, then
  820.      `unsigned' if appropriate, and finally `int'.  The string must
  821.      exactly match one of the data type names defined in the function
  822.      `init_decl_processing' in the file `c-decl.c'.  You may not omit
  823.      `int' or change the order--that would cause the compiler to crash
  824.      on startup.
  825.  
  826.      If you don't define this macro, the default is `"long unsigned
  827.      int"'.
  828.  
  829. `PTRDIFF_TYPE'
  830.      A C expression for a string describing the name of the data type
  831.      to use for the result of subtracting two pointers.  The typedef
  832.      name `ptrdiff_t' is defined using the contents of the string.  See
  833.      `SIZE_TYPE' above for more information.
  834.  
  835.      If you don't define this macro, the default is `"long int"'.
  836.  
  837. `WCHAR_TYPE'
  838.      A C expression for a string describing the name of the data type
  839.      to use for wide characters.  The typedef name `wchar_t' is defined
  840.      using the contents of the string.  See `SIZE_TYPE' above for more
  841.      information.
  842.  
  843.      If you don't define this macro, the default is `"int"'.
  844.  
  845. `WCHAR_TYPE_SIZE'
  846.      A C expression for the size in bits of the data type for wide
  847.      characters.  This is used in `cpp', which cannot make use of
  848.      `WCHAR_TYPE'.
  849.  
  850. `MAX_WCHAR_TYPE_SIZE'
  851.      Maximum number for the size in bits of the data type for wide
  852.      characters.  If this is undefined, the default is
  853.      `WCHAR_TYPE_SIZE'.  Otherwise, it is the constant value that is the
  854.      largest value that `WCHAR_TYPE_SIZE' can have at run-time.  This is
  855.      used in `cpp'.
  856.  
  857. `OBJC_INT_SELECTORS'
  858.      Define this macro if the type of Objective C selectors should be
  859.      `int'.
  860.  
  861.      If this macro is not defined, then selectors should have the type
  862.      `struct objc_selector *'.
  863.  
  864. `OBJC_SELECTORS_WITHOUT_LABELS'
  865.      Define this macro if the compiler can group all the selectors
  866.      together into a vector and use just one label at the beginning of
  867.      the vector.  Otherwise, the compiler must give each selector its
  868.      own assembler label.
  869.  
  870.      On certain machines, it is important to have a separate label for
  871.      each selector because this enables the linker to eliminate
  872.      duplicate selectors.
  873.  
  874. `TARGET_BELL'
  875.      A C constant expression for the integer value for escape sequence
  876.      `\a'.
  877.  
  878. `TARGET_BS'
  879. `TARGET_TAB'
  880. `TARGET_NEWLINE'
  881.      C constant expressions for the integer values for escape sequences
  882.      `\b', `\t' and `\n'.
  883.  
  884. `TARGET_VT'
  885. `TARGET_FF'
  886. `TARGET_CR'
  887.      C constant expressions for the integer values for escape sequences
  888.      `\v', `\f' and `\r'.
  889.  
  890. 
  891. File: gcc.info,  Node: Registers,  Next: Register Classes,  Prev: Type Layout,  Up: Target Macros
  892.  
  893. Register Usage
  894. ==============
  895.  
  896.    This section explains how to describe what registers the target
  897. machine has, and how (in general) they can be used.
  898.  
  899.    The description of which registers a specific instruction can use is
  900. done with register classes; see *Note Register Classes::.  For
  901. information on using registers to access a stack frame, see *Note Frame
  902. Registers::.  For passing values in registers, see *Note Register
  903. Arguments::.  For returning values in registers, see *Note Scalar
  904. Return::.
  905.  
  906. * Menu:
  907.  
  908. * Register Basics::        Number and kinds of registers.
  909. * Allocation Order::        Order in which registers are allocated.
  910. * Values in Registers::        What kinds of values each reg can hold.
  911. * Leaf Functions::        Renumbering registers for leaf functions.
  912. * Stack Registers::        Handling a register stack such as 80387.
  913. * Obsolete Register Macros::    Macros formerly used for the 80387.
  914.  
  915. 
  916. File: gcc.info,  Node: Register Basics,  Next: Allocation Order,  Up: Registers
  917.  
  918. Basic Characteristics of Registers
  919. ----------------------------------
  920.  
  921. `FIRST_PSEUDO_REGISTER'
  922.      Number of hardware registers known to the compiler.  They receive
  923.      numbers 0 through `FIRST_PSEUDO_REGISTER-1'; thus, the first
  924.      pseudo register's number really is assigned the number
  925.      `FIRST_PSEUDO_REGISTER'.
  926.  
  927. `FIXED_REGISTERS'
  928.      An initializer that says which registers are used for fixed
  929.      purposes all throughout the compiled code and are therefore not
  930.      available for general allocation.  These would include the stack
  931.      pointer, the frame pointer (except on machines where that can be
  932.      used as a general register when no frame pointer is needed), the
  933.      program counter on machines where that is considered one of the
  934.      addressable registers, and any other numbered register with a
  935.      standard use.
  936.  
  937.      This information is expressed as a sequence of numbers, separated
  938.      by commas and surrounded by braces.  The Nth number is 1 if
  939.      register N is fixed, 0 otherwise.
  940.  
  941.      The table initialized from this macro, and the table initialized by
  942.      the following one, may be overridden at run time either
  943.      automatically, by the actions of the macro
  944.      `CONDITIONAL_REGISTER_USAGE', or by the user with the command
  945.      options `-ffixed-REG', `-fcall-used-REG' and `-fcall-saved-REG'.
  946.  
  947. `CALL_USED_REGISTERS'
  948.      Like `FIXED_REGISTERS' but has 1 for each register that is
  949.      clobbered (in general) by function calls as well as for fixed
  950.      registers.  This macro therefore identifies the registers that are
  951.      not available for general allocation of values that must live
  952.      across function calls.
  953.  
  954.      If a register has 0 in `CALL_USED_REGISTERS', the compiler
  955.      automatically saves it on function entry and restores it on
  956.      function exit, if the register is used within the function.
  957.  
  958. `CONDITIONAL_REGISTER_USAGE'
  959.      Zero or more C statements that may conditionally modify two
  960.      variables `fixed_regs' and `call_used_regs' (both of type `char
  961.      []') after they have been initialized from the two preceding
  962.      macros.
  963.  
  964.      This is necessary in case the fixed or call-clobbered registers
  965.      depend on target flags.
  966.  
  967.      You need not define this macro if it has no work to do.
  968.  
  969.      If the usage of an entire class of registers depends on the target
  970.      flags, you may indicate this to GCC by using this macro to modify
  971.      `fixed_regs' and `call_used_regs' to 1 for each of the registers
  972.      in the classes which should not be used by GCC.  Also define the
  973.      macro `REG_CLASS_FROM_LETTER' to return `NO_REGS' if it is called
  974.      with a letter for a class that shouldn't be used.
  975.  
  976.      (However, if this class is not included in `GENERAL_REGS' and all
  977.      of the insn patterns whose constraints permit this class are
  978.      controlled by target switches, then GCC will automatically avoid
  979.      using these registers when the target switches are opposed to
  980.      them.)
  981.  
  982. `NON_SAVING_SETJMP'
  983.      If this macro is defined and has a nonzero value, it means that
  984.      `setjmp' and related functions fail to save the registers, or that
  985.      `longjmp' fails to restore them.  To compensate, the compiler
  986.      avoids putting variables in registers in functions that use
  987.      `setjmp'.
  988.  
  989. `INCOMING_REGNO (OUT)'
  990.      Define this macro if the target machine has register windows.
  991.      This C expression returns the register number as seen by the
  992.      called function corresponding to the register number OUT as seen
  993.      by the calling function.  Return OUT if register number OUT is not
  994.      an outbound register.
  995.  
  996. `OUTGOING_REGNO (IN)'
  997.      Define this macro if the target machine has register windows.
  998.      This C expression returns the register number as seen by the
  999.      calling function corresponding to the register number IN as seen
  1000.      by the called function.  Return IN if register number IN is not an
  1001.      inbound register.
  1002.  
  1003. 
  1004. File: gcc.info,  Node: Allocation Order,  Next: Values in Registers,  Prev: Register Basics,  Up: Registers
  1005.  
  1006. Order of Allocation of Registers
  1007. --------------------------------
  1008.  
  1009. `REG_ALLOC_ORDER'
  1010.      If defined, an initializer for a vector of integers, containing the
  1011.      numbers of hard registers in the order in which GNU CC should
  1012.      prefer to use them (from most preferred to least).
  1013.  
  1014.      If this macro is not defined, registers are used lowest numbered
  1015.      first (all else being equal).
  1016.  
  1017.      One use of this macro is on machines where the highest numbered
  1018.      registers must always be saved and the save-multiple-registers
  1019.      instruction supports only sequences of consecutive registers.  On
  1020.      such machines, define `REG_ALLOC_ORDER' to be an initializer that
  1021.      lists the highest numbered allocatable register first.
  1022.  
  1023. `ORDER_REGS_FOR_LOCAL_ALLOC'
  1024.      A C statement (sans semicolon) to choose the order in which to
  1025.      allocate hard registers for pseudo-registers local to a basic
  1026.      block.
  1027.  
  1028.      Store the desired register order in the array `reg_alloc_order'.
  1029.      Element 0 should be the register to allocate first; element 1, the
  1030.      next register; and so on.
  1031.  
  1032.      The macro body should not assume anything about the contents of
  1033.      `reg_alloc_order' before execution of the macro.
  1034.  
  1035.      On most machines, it is not necessary to define this macro.
  1036.  
  1037. 
  1038. File: gcc.info,  Node: Values in Registers,  Next: Leaf Functions,  Prev: Allocation Order,  Up: Registers
  1039.  
  1040. How Values Fit in Registers
  1041. ---------------------------
  1042.  
  1043.    This section discusses the macros that describe which kinds of values
  1044. (specifically, which machine modes) each register can hold, and how many
  1045. consecutive registers are needed for a given mode.
  1046.  
  1047. `HARD_REGNO_NREGS (REGNO, MODE)'
  1048.      A C expression for the number of consecutive hard registers,
  1049.      starting at register number REGNO, required to hold a value of mode
  1050.      MODE.
  1051.  
  1052.      On a machine where all registers are exactly one word, a suitable
  1053.      definition of this macro is
  1054.  
  1055.           #define HARD_REGNO_NREGS(REGNO, MODE)            \
  1056.              ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1)  \
  1057.               / UNITS_PER_WORD))
  1058.  
  1059. `HARD_REGNO_MODE_OK (REGNO, MODE)'
  1060.      A C expression that is nonzero if it is permissible to store a
  1061.      value of mode MODE in hard register number REGNO (or in several
  1062.      registers starting with that one).  For a machine where all
  1063.      registers are equivalent, a suitable definition is
  1064.  
  1065.           #define HARD_REGNO_MODE_OK(REGNO, MODE) 1
  1066.  
  1067.      It is not necessary for this macro to check for the numbers of
  1068.      fixed registers, because the allocation mechanism considers them
  1069.      to be always occupied.
  1070.  
  1071.      On some machines, double-precision values must be kept in even/odd
  1072.      register pairs.  The way to implement that is to define this macro
  1073.      to reject odd register numbers for such modes.
  1074.  
  1075.      The minimum requirement for a mode to be OK in a register is that
  1076.      the `movMODE' instruction pattern support moves between the
  1077.      register and any other hard register for which the mode is OK; and
  1078.      that moving a value into the register and back out not alter it.
  1079.  
  1080.      Since the same instruction used to move `SImode' will work for all
  1081.      narrower integer modes, it is not necessary on any machine for
  1082.      `HARD_REGNO_MODE_OK' to distinguish between these modes, provided
  1083.      you define patterns `movhi', etc., to take advantage of this.  This
  1084.      is useful because of the interaction between `HARD_REGNO_MODE_OK'
  1085.      and `MODES_TIEABLE_P'; it is very desirable for all integer modes
  1086.      to be tieable.
  1087.  
  1088.      Many machines have special registers for floating point arithmetic.
  1089.      Often people assume that floating point machine modes are allowed
  1090.      only in floating point registers.  This is not true.  Any
  1091.      registers that can hold integers can safely *hold* a floating
  1092.      point machine mode, whether or not floating arithmetic can be done
  1093.      on it in those registers.  Integer move instructions can be used
  1094.      to move the values.
  1095.  
  1096.      On some machines, though, the converse is true: fixed-point machine
  1097.      modes may not go in floating registers.  This is true if the
  1098.      floating registers normalize any value stored in them, because
  1099.      storing a non-floating value there would garble it.  In this case,
  1100.      `HARD_REGNO_MODE_OK' should reject fixed-point machine modes in
  1101.      floating registers.  But if the floating registers do not
  1102.      automatically normalize, if you can store any bit pattern in one
  1103.      and retrieve it unchanged without a trap, then any machine mode
  1104.      may go in a floating register, so you can define this macro to say
  1105.      so.
  1106.  
  1107.      On some machines, such as the Sparc and the Mips, we get better
  1108.      code by defining `HARD_REGNO_MODE_OK' to forbid integers in
  1109.      floating registers, even though the hardware is capable of
  1110.      handling them.  This is because transferring values between
  1111.      floating registers and general registers is so slow that it is
  1112.      better to keep the integer in memory.
  1113.  
  1114.      The primary significance of special floating registers is rather
  1115.      that they are the registers acceptable in floating point arithmetic
  1116.      instructions.  However, this is of no concern to
  1117.      `HARD_REGNO_MODE_OK'.  You handle it by writing the proper
  1118.      constraints for those instructions.
  1119.  
  1120.      On some machines, the floating registers are especially slow to
  1121.      access, so that it is better to store a value in a stack frame
  1122.      than in such a register if floating point arithmetic is not being
  1123.      done.  As long as the floating registers are not in class
  1124.      `GENERAL_REGS', they will not be used unless some pattern's
  1125.      constraint asks for one.
  1126.  
  1127. `MODES_TIEABLE_P (MODE1, MODE2)'
  1128.      A C expression that is nonzero if it is desirable to choose
  1129.      register allocation so as to avoid move instructions between a
  1130.      value of mode MODE1 and a value of mode MODE2.
  1131.  
  1132.      If `HARD_REGNO_MODE_OK (R, MODE1)' and `HARD_REGNO_MODE_OK (R,
  1133.      MODE2)' are ever different for any R, then `MODES_TIEABLE_P (MODE1,
  1134.      MODE2)' must be zero.
  1135.  
  1136. 
  1137. File: gcc.info,  Node: Leaf Functions,  Next: Stack Registers,  Prev: Values in Registers,  Up: Registers
  1138.  
  1139. Handling Leaf Functions
  1140. -----------------------
  1141.  
  1142.    On some machines, a leaf function (i.e., one which makes no calls)
  1143. can run more efficiently if it does not make its own register window.
  1144. Often this means it is required to receive its arguments in the
  1145. registers where they are passed by the caller, instead of the registers
  1146. where they would normally arrive.
  1147.  
  1148.    The special treatment for leaf functions generally applies only when
  1149. other conditions are met; for example, often they may use only those
  1150. registers for its own variables and temporaries.  We use the term "leaf
  1151. function" to mean a function that is suitable for this special
  1152. handling, so that functions with no calls are not necessarily "leaf
  1153. functions".
  1154.  
  1155.    GNU CC assigns register numbers before it knows whether the function
  1156. is suitable for leaf function treatment.  So it needs to renumber the
  1157. registers in order to output a leaf function.  The following macros
  1158. accomplish this.
  1159.  
  1160. `LEAF_REGISTERS'
  1161.      A C initializer for a vector, indexed by hard register number,
  1162.      which contains 1 for a register that is allowable in a candidate
  1163.      for leaf function treatment.
  1164.  
  1165.      If leaf function treatment involves renumbering the registers,
  1166.      then the registers marked here should be the ones before
  1167.      renumbering--those that GNU CC would ordinarily allocate.  The
  1168.      registers which will actually be used in the assembler code, after
  1169.      renumbering, should not be marked with 1 in this vector.
  1170.  
  1171.      Define this macro only if the target machine offers a way to
  1172.      optimize the treatment of leaf functions.
  1173.  
  1174. `LEAF_REG_REMAP (REGNO)'
  1175.      A C expression whose value is the register number to which REGNO
  1176.      should be renumbered, when a function is treated as a leaf
  1177.      function.
  1178.  
  1179.      If REGNO is a register number which should not appear in a leaf
  1180.      function before renumbering, then the expression should yield -1,
  1181.      which will cause the compiler to abort.
  1182.  
  1183.      Define this macro only if the target machine offers a way to
  1184.      optimize the treatment of leaf functions, and registers need to be
  1185.      renumbered to do this.
  1186.  
  1187. `REG_LEAF_ALLOC_ORDER'
  1188.      If defined, an initializer for a vector of integers, containing the
  1189.      numbers of hard registers in the order in which the GNU CC should
  1190.      prefer to use them (from most preferred to least) in a leaf
  1191.      function.  If this macro is not defined, REG_ALLOC_ORDER is used
  1192.      for both non-leaf and leaf-functions.
  1193.  
  1194.    Normally, `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE' must treat
  1195. leaf functions specially.  It can test the C variable `leaf_function'
  1196. which is nonzero for leaf functions.  (The variable `leaf_function' is
  1197. defined only if `LEAF_REGISTERS' is defined.)
  1198.  
  1199. 
  1200. File: gcc.info,  Node: Stack Registers,  Next: Obsolete Register Macros,  Prev: Leaf Functions,  Up: Registers
  1201.  
  1202. Registers That Form a Stack
  1203. ---------------------------
  1204.  
  1205.    There are special features to handle computers where some of the
  1206. "registers" form a stack, as in the 80387 coprocessor for the 80386.
  1207. Stack registers are normally written by pushing onto the stack, and are
  1208. numbered relative to the top of the stack.
  1209.  
  1210.    Currently, GNU CC can only handle one group of stack-like registers,
  1211. and they must be consecutively numbered.
  1212.  
  1213. `STACK_REGS'
  1214.      Define this if the machine has any stack-like registers.
  1215.  
  1216. `FIRST_STACK_REG'
  1217.      The number of the first stack-like register.  This one is the top
  1218.      of the stack.
  1219.  
  1220. `LAST_STACK_REG'
  1221.      The number of the last stack-like register.  This one is the
  1222.      bottom of the stack.
  1223.  
  1224.