home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / c / gcc / gcc258s.zoo / gcc.info-17 < prev    next >
Encoding:
GNU Info File  |  1993-11-30  |  49.5 KB  |  1,225 lines

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