home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / gcc-2.6.0-src.lha / GNU / src / amiga / gcc-2.6.0 / gcc.info-4 < prev    next >
Encoding:
GNU Info File  |  1994-07-15  |  49.5 KB  |  1,210 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. 
  31. File: gcc.info,  Node: M88K Options,  Next: RS/6000 and PowerPC Options,  Prev: ARM Options,  Up: Submodel Options
  32.  
  33. M88K Options
  34. ------------
  35.  
  36.    These `-m' options are defined for Motorola 88k architectures:
  37.  
  38. `-m88000'
  39.      Generate code that works well on both the m88100 and the m88110.
  40.  
  41. `-m88100'
  42.      Generate code that works best for the m88100, but that also runs
  43.      on the m88110.
  44.  
  45. `-m88110'
  46.      Generate code that works best for the m88110, and may not run on
  47.      the m88100.
  48.  
  49. `-mbig-pic'
  50.      Obsolete option to be removed from the next revision.  Use `-fPIC'.
  51.  
  52. `-midentify-revision'
  53.      Include an `ident' directive in the assembler output recording the
  54.      source file name, compiler name and version, timestamp, and
  55.      compilation flags used.
  56.  
  57. `-mno-underscores'
  58.      In assembler output, emit symbol names without adding an underscore
  59.      character at the beginning of each name.  The default is to use an
  60.      underscore as prefix on each name.
  61.  
  62. `-mocs-debug-info'
  63. `-mno-ocs-debug-info'
  64.      Include (or omit) additional debugging information (about
  65.      registers used in each stack frame) as specified in the 88open
  66.      Object Compatibility Standard, "OCS".  This extra information
  67.      allows debugging of code that has had the frame pointer
  68.      eliminated.  The default for DG/UX, SVr4, and Delta 88 SVr3.2 is
  69.      to include this information; other 88k configurations omit this
  70.      information by default.
  71.  
  72. `-mocs-frame-position'
  73.      When emitting COFF debugging information for automatic variables
  74.      and parameters stored on the stack, use the offset from the
  75.      canonical frame address, which is the stack pointer (register 31)
  76.      on entry to the function.  The DG/UX, SVr4, Delta88 SVr3.2, and
  77.      BCS configurations use `-mocs-frame-position'; other 88k
  78.      configurations have the default `-mno-ocs-frame-position'.
  79.  
  80. `-mno-ocs-frame-position'
  81.      When emitting COFF debugging information for automatic variables
  82.      and parameters stored on the stack, use the offset from the frame
  83.      pointer register (register 30).  When this option is in effect,
  84.      the frame pointer is not eliminated when debugging information is
  85.      selected by the -g switch.
  86.  
  87. `-moptimize-arg-area'
  88. `-mno-optimize-arg-area'
  89.      Control how function arguments are stored in stack frames.
  90.      `-moptimize-arg-area' saves space by optimizing them, but this
  91.      conflicts with the 88open specifications.  The opposite
  92.      alternative, `-mno-optimize-arg-area', agrees with 88open
  93.      standards.  By default GNU CC does not optimize the argument area.
  94.  
  95. `-mshort-data-NUM'
  96.      Generate smaller data references by making them relative to `r0',
  97.      which allows loading a value using a single instruction (rather
  98.      than the usual two).  You control which data references are
  99.      affected by specifying NUM with this option.  For example, if you
  100.      specify `-mshort-data-512', then the data references affected are
  101.      those involving displacements of less than 512 bytes.
  102.      `-mshort-data-NUM' is not effective for NUM greater than 64k.
  103.  
  104. `-mserialize-volatile'
  105. `-mno-serialize-volatile'
  106.      Do, or do not, generate code to guarantee sequential consistency of
  107.      volatile memory references.
  108.  
  109.      GNU CC always guarantees consistency by default.
  110.  
  111.      The order of memory references made by the m88110 processor does
  112.      not always match the order of the instructions requesting those
  113.      references.  In particular, a load instruction may execute before
  114.      a preceding store instruction.  Such reordering violates
  115.      sequential consistency of volatile memory references, when there
  116.      are multiple processors.
  117.  
  118.      The extra code generated to guarantee consistency may affect the
  119.      performance of your application.  If you know that you can safely
  120.      forgo this guarantee, you may use the option
  121.      `-mno-serialize-volatile'.
  122.  
  123. `-msvr4'
  124. `-msvr3'
  125.      Turn on (`-msvr4') or off (`-msvr3') compiler extensions related
  126.      to System V release 4 (SVr4).  This controls the following:
  127.  
  128.        1. Which variant of the assembler syntax to emit (which you can
  129.           select independently using `-mversion-03.00').
  130.  
  131.        2. `-msvr4' makes the C preprocessor recognize `#pragma weak'
  132.           that is used on System V release 4.
  133.  
  134.        3. `-msvr4' makes GNU CC issue additional declaration directives
  135.           used in SVr4.
  136.  
  137.      `-msvr3' is the default for all m88k configurations except the
  138.      SVr4 configuration.
  139.  
  140. `-mversion-03.00'
  141.      In the DG/UX configuration, there are two flavors of SVr4.  This
  142.      option modifies `-msvr4' to select whether the hybrid-COFF or
  143.      real-ELF flavor is used.  All other configurations ignore this
  144.      option.
  145.  
  146. `-mno-check-zero-division'
  147. `-mcheck-zero-division'
  148.      Early models of the 88k architecture had problems with division by
  149.      zero; in particular, many of them didn't trap.  Use these options
  150.      to avoid including (or to include explicitly) additional code to
  151.      detect division by zero and signal an exception.  All GNU CC
  152.      configurations for the 88k use `-mcheck-zero-division' by default.
  153.  
  154. `-muse-div-instruction'
  155.      Do not emit code to check both the divisor and dividend when doing
  156.      signed integer division to see if either is negative, and adjust
  157.      the signs so the divide is done using non-negative numbers.
  158.      Instead, rely on the operating system to calculate the correct
  159.      value when the `div' instruction traps.  This results in different
  160.      behavior when the most negative number is divided by -1, but is
  161.      useful when most or all signed integer divisions are done with
  162.      positive numbers.
  163.  
  164. `-mtrap-large-shift'
  165. `-mhandle-large-shift'
  166.      Include code to detect bit-shifts of more than 31 bits;
  167.      respectively, trap such shifts or emit code to handle them
  168.      properly.  By default GNU CC makes no special provision for large
  169.      bit shifts.
  170.  
  171. `-mwarn-passed-structs'
  172.      Warn when a function passes a struct as an argument or result.
  173.      Structure-passing conventions have changed during the evolution of
  174.      the C language, and are often the source of portability problems.
  175.      By default, GNU CC issues no such warning.
  176.  
  177. 
  178. File: gcc.info,  Node: RS/6000 and PowerPC Options,  Next: RT Options,  Prev: M88K Options,  Up: Submodel Options
  179.  
  180. IBM RS/6000 and PowerPC Options
  181. -------------------------------
  182.  
  183.    These `-m' options are defined for the IBM RS/6000 and PowerPC:
  184. `-mpower'
  185. `-mno-power'
  186. `-mpower2'
  187. `-mno-power2'
  188. `-mpowerpc'
  189. `-mno-powerpc'
  190. `-mpowerpc-gpopt'
  191. `-mno-powerpc-gpopt'
  192. `-mpowerpc-gfxopt'
  193. `-mno-powerpc-gfxopt'
  194.      GNU CC supports two related instruction set architectures for the
  195.      RS/6000 and PowerPC.  The "POWER" instruction set are those
  196.      instructions supported by the `rios' chip set used in the original
  197.      RS/6000 systems and the "PowerPC" instruction set is the
  198.      architecture of the Motorola MPC6xx microprocessors.  The PowerPC
  199.      architecture defines 64-bit instructions, but they are not
  200.      supported by any current processors.
  201.  
  202.      Neither architecture is a subset of the other.  However there is a
  203.      large common subset of instructions supported by both.  An MQ
  204.      register is included in processors supporting the POWER
  205.      architecture.
  206.  
  207.      You use these options to specify which instructions are available
  208.      on the processor you are using.  The default value of these
  209.      options is determined when configuring GNU CC.  Specifying the
  210.      `-mcpu=CPU_TYPE' overrides the specification of these options.  We
  211.      recommend you use that option rather than these.
  212.  
  213.      The `-mpower' option allows GNU CC to generate instructions that
  214.      are found only in the POWER architecture and to use the MQ
  215.      register.  Specifying `-mpower2' implies `-power' and also allows
  216.      GNU CC to generate instructions that are present in the POWER2
  217.      architecture but not the original POWER architecture.
  218.  
  219.      The `-mpowerpc' option allows GNU CC to generate instructions that
  220.      are found only in the 32-bit subset of the PowerPC architecture.
  221.      Specifying `-mpowerpc-gpopt' implies `-mpowerpc' and also allows
  222.      GNU CC to use the optional PowerPC architecture instructions in the
  223.      General Purpose group, including floating-point square root.
  224.      Specifying `-mpowerpc-gfxopt' implies `-mpowerpc' and also allows
  225.      GNU CC to use the optional PowerPC architecture instructions in
  226.      the Graphics group, including floating-point select.
  227.  
  228.      If you specify both `-mno-power' and `-mno-powerpc', GNU CC will
  229.      use only the instructions in the common subset of both
  230.      architectures plus some special AIX common-mode calls, and will
  231.      not use the MQ register.  Specifying both `-mpower' and `-mpowerpc'
  232.      permits GNU CC to use any instruction from either architecture and
  233.      to allow use of the MQ register; specify this for the Motorola
  234.      MPC601.
  235.  
  236. `-mnew-mnemonics'
  237. `-mold-mnemonics'
  238.      Select which mnemonics to use in the generated assembler code.
  239.      `-mnew-mnemonics' requests output that uses the assembler mnemonics
  240.      defined for the PowerPC architecture, while `-mold-mnemonics'
  241.      requests the assembler mnemonics defined for the POWER
  242.      architecture.  Instructions defined in only one architecture have
  243.      only one mnemonic; GNU CC uses that mnemonic irrespective of which
  244.      of thse options is specified.
  245.  
  246.      PowerPC assemblers support both the old and new mnemonics, as will
  247.      later POWER assemblers.  Current POWER assemblers only support the
  248.      old mnemonics.  Specify `-mnew-mnemonics' if you have an assembler
  249.      that supports them, otherwise specify `-mold-mnemonics'.
  250.  
  251.      The default value of these options depends on how GNU CC was
  252.      configured.  Specifing `-mcpu=CPU_TYPE' sometimes overrides the
  253.      value of these option.  Unless you are building a cross-compiler,
  254.      you should normally not specify either `-mnew-mnemonics' or
  255.      `-mold-mnemonics', but should instead accept the default.
  256.  
  257. `-mcpu=CPU_TYPE'
  258.      Set architecture type, register usage, choice of mnemonics, and
  259.      instruction scheduling parameters for machine type CPU_TYPE.  By
  260.      default, CPU_TYPE is the target system defined when GNU CC was
  261.      configured.  Supported values for CPU_TYPE are `rios1', `rios2',
  262.      `rsc', `601', `603', `604', `power', `powerpc', and `common'.
  263.      `-mcpu=power' and `-mcpu=powerpc' specify generic POWER and pure
  264.      PowerPC (i.e., not MPC601) architecture machine types, with an
  265.      appropriate, generic processor model assumed for scheduling
  266.      purposes.
  267.  
  268.      Specifying `-mcpu=rios1', `-mcpu=rios2', `-mcpu=rsc', or
  269.      `-mcpu=power' enables the `-mpower' option and disables the
  270.      `-mpowerpc' option; `-mcpu=601' enables both the `-mpower' and
  271.      `-mpowerpc' options; `-mcpu=603', `-mcpu=604', and `-mcpu=powerpc'
  272.      enable the `-mpowerpc' option and disable the `-mpower' option;
  273.      `-mcpu=common' disables both the `-mpower' and `-mpowerpc' options.
  274.  
  275.      To generate code that will operate on all members of the RS/6000
  276.      and PowerPC families, specify `-mcpu=common'.  In that case, GNU CC
  277.      will use only the instructions in the common subset of both
  278.      architectures plus some special AIX common-mode calls, and will
  279.      not use the MQ register.  GNU CC assumes a generic processor model
  280.      for scheduling purposes.
  281.  
  282.      Specifying `-mcpu=rios1', `-mcpu=rios2', `-mcpu=rsc', or
  283.      `-mcpu=power' also disables the `new-mnemonics' option.
  284.      Specifying `-mcpu=601', `-mcpu=603', `-mcpu=604', or
  285.      `-mcpu=powerpc' also enables the `new-mnemonics' option.
  286.  
  287. `-mfull-toc'
  288. `-mno-fp-in-toc'
  289. `-mno-sum-in-toc'
  290. `-mminimal-toc'
  291.      Modify generation of the TOC (Table Of Contents), which is created
  292.      for every executable file.  The `-mfull-toc' option is selected by
  293.      default.  In that case, GNU CC will allocate at least one TOC
  294.      entry for each unique non-automatic variable reference in your
  295.      program.  GNU CC will also place floating-point constants in the
  296.      TOC.  However, only 16,384 entries are available in the TOC.
  297.  
  298.      If you receive a linker error message that saying you have
  299.      overflowed the available TOC space, you can reduce the amount of
  300.      TOC space used with the `-mno-fp-in-toc' and `-mno-sum-in-toc'
  301.      options.  `-mno-fp-in-toc' prevents GNU CC from putting
  302.      floating-point constants in the TOC and `-mno-sum-in-toc' forces
  303.      GNU CC to generate code to calculate the sum of an address and a
  304.      constant at run-time instead of putting that sum into the TOC.
  305.      You may specify one or both of these options.  Each causes GNU CC
  306.      to produce very slightly slower and larger code at the expense of
  307.      conserving TOC space.
  308.  
  309.      If you still run out of space in the TOC even when you specify
  310.      both of these options, specify `-mminimal-toc' instead.  This
  311.      option causes GNU CC to make only one TOC entry for every file.
  312.      When you specify this option, GNU CC will produce code that is
  313.      slower and larger but which uses extremely little TOC space.  You
  314.      may wish to use this option only on files that contain less
  315.      frequently executed code.
  316.  
  317. 
  318. File: gcc.info,  Node: RT Options,  Next: MIPS Options,  Prev: RS/6000 and PowerPC Options,  Up: Submodel Options
  319.  
  320. IBM RT Options
  321. --------------
  322.  
  323.    These `-m' options are defined for the IBM RT PC:
  324.  
  325. `-min-line-mul'
  326.      Use an in-line code sequence for integer multiplies.  This is the
  327.      default.
  328.  
  329. `-mcall-lib-mul'
  330.      Call `lmul$$' for integer multiples.
  331.  
  332. `-mfull-fp-blocks'
  333.      Generate full-size floating point data blocks, including the
  334.      minimum amount of scratch space recommended by IBM.  This is the
  335.      default.
  336.  
  337. `-mminimum-fp-blocks'
  338.      Do not include extra scratch space in floating point data blocks.
  339.      This results in smaller code, but slower execution, since scratch
  340.      space must be allocated dynamically.
  341.  
  342. `-mfp-arg-in-fpregs'
  343.      Use a calling sequence incompatible with the IBM calling
  344.      convention in which floating point arguments are passed in
  345.      floating point registers.  Note that `varargs.h' and `stdargs.h'
  346.      will not work with floating point operands if this option is
  347.      specified.
  348.  
  349. `-mfp-arg-in-gregs'
  350.      Use the normal calling convention for floating point arguments.
  351.      This is the default.
  352.  
  353. `-mhc-struct-return'
  354.      Return structures of more than one word in memory, rather than in a
  355.      register.  This provides compatibility with the MetaWare HighC (hc)
  356.      compiler.  Use the option `-fpcc-struct-return' for compatibility
  357.      with the Portable C Compiler (pcc).
  358.  
  359. `-mnohc-struct-return'
  360.      Return some structures of more than one word in registers, when
  361.      convenient.  This is the default.  For compatibility with the
  362.      IBM-supplied compilers, use the option `-fpcc-struct-return' or the
  363.      option `-mhc-struct-return'.
  364.  
  365. 
  366. File: gcc.info,  Node: MIPS Options,  Next: i386 Options,  Prev: RT Options,  Up: Submodel Options
  367.  
  368. MIPS Options
  369. ------------
  370.  
  371.    These `-m' options are defined for the MIPS family of computers:
  372.  
  373. `-mcpu=CPU TYPE'
  374.      Assume the defaults for the machine type CPU TYPE when scheduling
  375.      instructions.  The choices for CPU TYPE are `r2000', `r3000',
  376.      `r4000', `r4400', `r4600', and `r6000'.  While picking a specific
  377.      CPU TYPE will schedule things appropriately for that particular
  378.      chip, the compiler will not generate any code that does not meet
  379.      level 1 of the MIPS ISA (instruction set architecture) without the
  380.      `-mips2' or `-mips3' switches being used.
  381.  
  382. `-mips1'
  383.      Issue instructions from level 1 of the MIPS ISA.  This is the
  384.      default.  `r3000' is the default CPU TYPE at this ISA level.
  385.  
  386. `-mips2'
  387.      Issue instructions from level 2 of the MIPS ISA (branch likely,
  388.      square root instructions).  `r6000' is the default CPU TYPE at this
  389.      ISA level.
  390.  
  391. `-mips3'
  392.      Issue instructions from level 3 of the MIPS ISA (64 bit
  393.      instructions).  `r4000' is the default CPU TYPE at this ISA level.
  394.  
  395. `-mfp32'
  396.      Assume that 32 32-bit floating point registers are available.
  397.      This is the default.
  398.  
  399. `-mfp64'
  400.      Assume that 32 64-bit floating point registers are available.
  401.      This is the default when the `-mips3' option is used.
  402.  
  403. `-mgp32'
  404.      Assume that 32 32-bit general purpose registers are available.
  405.      This is the default.
  406.  
  407. `-mgp64'
  408.      Assume that 32 64-bit general purpose registers are available.
  409.      This is the default when the `-mips3' option is used.
  410.  
  411. `-mint64'
  412.      Types long and int are 64 bits.  This works only if `-mips3' is
  413.      also specified.
  414.  
  415. `-mlong64'
  416.      Type long is 64 bits, and type int is 32 bits.  This works only if
  417.      `-mips3' is also specified.
  418.  
  419. `-mmips-as'
  420.      Generate code for the MIPS assembler, and invoke `mips-tfile' to
  421.      add normal debug information.  This is the default for all
  422.      platforms except for the OSF/1 reference platform, using the
  423.      OSF/rose object format.  If the either of the `-gstabs' or
  424.      `-gstabs+' switches are used, the `mips-tfile' program will
  425.      encapsulate the stabs within MIPS ECOFF.
  426.  
  427. `-mgas'
  428.      Generate code for the GNU assembler.  This is the default on the
  429.      OSF/1 reference platform, using the OSF/rose object format.
  430.  
  431. `-mrnames'
  432. `-mno-rnames'
  433.      The `-mrnames' switch says to output code using the MIPS software
  434.      names for the registers, instead of the hardware names (ie, A0
  435.      instead of $4).  The only known assembler that supports this option
  436.      is the Algorithmics assembler.
  437.  
  438. `-mgpopt'
  439. `-mno-gpopt'
  440.      The `-mgpopt' switch says to write all of the data declarations
  441.      before the instructions in the text section, this allows the MIPS
  442.      assembler to generate one word memory references instead of using
  443.      two words for short global or static data items.  This is on by
  444.      default if optimization is selected.
  445.  
  446. `-mstats'
  447. `-mno-stats'
  448.      For each non-inline function processed, the `-mstats' switch
  449.      causes the compiler to emit one line to the standard error file to
  450.      print statistics about the program (number of registers saved,
  451.      stack size, etc.).
  452.  
  453. `-mmemcpy'
  454. `-mno-memcpy'
  455.      The `-mmemcpy' switch makes all block moves call the appropriate
  456.      string function (`memcpy' or `bcopy') instead of possibly
  457.      generating inline code.
  458.  
  459. `-mmips-tfile'
  460. `-mno-mips-tfile'
  461.      The `-mno-mips-tfile' switch causes the compiler not postprocess
  462.      the object file with the `mips-tfile' program, after the MIPS
  463.      assembler has generated it to add debug support.  If `mips-tfile'
  464.      is not run, then no local variables will be available to the
  465.      debugger.  In addition, `stage2' and `stage3' objects will have
  466.      the temporary file names passed to the assembler embedded in the
  467.      object file, which means the objects will not compare the same.
  468.      The `-mno-mips-tfile' switch should only be used when there are
  469.      bugs in the `mips-tfile' program that prevents compilation.
  470.  
  471. `-msoft-float'
  472.      Generate output containing library calls for floating point.
  473.      *Warning:* the requisite libraries are not part of GNU CC.
  474.      Normally the facilities of the machine's usual C compiler are
  475.      used, but this can't be done directly in cross-compilation.  You
  476.      must make your own arrangements to provide suitable library
  477.      functions for cross-compilation.
  478.  
  479. `-mhard-float'
  480.      Generate output containing floating point instructions.  This is
  481.      the default if you use the unmodified sources.
  482.  
  483. `-mabicalls'
  484. `-mno-abicalls'
  485.      Emit (or do not emit) the pseudo operations `.abicalls',
  486.      `.cpload', and `.cprestore' that some System V.4 ports use for
  487.      position independent code.
  488.  
  489. `-mlong-calls'
  490. `-mno-long-calls'
  491.      Do all calls with the `JALR' instruction, which requires loading
  492.      up a function's address into a register before the call.  You need
  493.      to use this switch, if you call outside of the current 512
  494.      megabyte segment to functions that are not through pointers.
  495.  
  496. `-mhalf-pic'
  497. `-mno-half-pic'
  498.      Put pointers to extern references into the data section and load
  499.      them up, rather than put the references in the text section.
  500.  
  501. `-membedded-pic'
  502. `-mno-embedded-pic'
  503.      Generate PIC code suitable for some embedded systems.  All calls
  504.      are made using PC relative address, and all data is addressed
  505.      using the $gp register.  This requires GNU as and GNU ld which do
  506.      most of the work.
  507.  
  508. `-membedded-data'
  509. `-mno-embedded-data'
  510.      Allocate variables to the read-only data section first if
  511.      possible, then next in the small data section if possible,
  512.      otherwise in data.  This gives slightly slower code than the
  513.      default, but reduces the amount of RAM required when executing,
  514.      and thus may be preferred for some embedded systems.
  515.  
  516. `-G NUM'
  517.      Put global and static items less than or equal to NUM bytes into
  518.      the small data or bss sections instead of the normal data or bss
  519.      section.  This allows the assembler to emit one word memory
  520.      reference instructions based on the global pointer (GP or $28),
  521.      instead of the normal two words used.  By default, NUM is 8 when
  522.      the MIPS assembler is used, and 0 when the GNU assembler is used.
  523.      The `-G NUM' switch is also passed to the assembler and linker.
  524.      All modules should be compiled with the same `-G NUM' value.
  525.  
  526. `-nocpp'
  527.      Tell the MIPS assembler to not run it's preprocessor over user
  528.      assembler files (with a `.s' suffix) when assembling them.
  529.  
  530.    These options are defined by the macro `TARGET_SWITCHES' in the
  531. machine description.  The default for the options is also defined by
  532. that macro, which enables you to change the defaults.
  533.  
  534. 
  535. File: gcc.info,  Node: i386 Options,  Next: HPPA Options,  Prev: MIPS Options,  Up: Submodel Options
  536.  
  537. Intel 386 Options
  538. -----------------
  539.  
  540.    These `-m' options are defined for the i386 family of computers:
  541.  
  542. `-m486'
  543. `-mno-486'
  544.      Control whether or not code is optimized for a 486 instead of an
  545.      386.  Code generated for an 486 will run on a 386 and vice versa.
  546.  
  547. `-msoft-float'
  548.      Generate output containing library calls for floating point.
  549.      *Warning:* the requisite libraries are not part of GNU CC.
  550.      Normally the facilities of the machine's usual C compiler are
  551.      used, but this can't be done directly in cross-compilation.  You
  552.      must make your own arrangements to provide suitable library
  553.      functions for cross-compilation.
  554.  
  555.      On machines where a function returns floating point results in the
  556.      80387 register stack, some floating point opcodes may be emitted
  557.      even if `-msoft-float' is used.
  558.  
  559. `-mno-fp-ret-in-387'
  560.      Do not use the FPU registers for return values of functions.
  561.  
  562.      The usual calling convention has functions return values of types
  563.      `float' and `double' in an FPU register, even if there is no FPU.
  564.      The idea is that the operating system should emulate an FPU.
  565.  
  566.      The option `-mno-fp-ret-in-387' causes such values to be returned
  567.      in ordinary CPU registers instead.
  568.  
  569. `-mno-fancy-math-387'
  570.      Some 387 emulators do not support the `sin', `cos' and `sqrt'
  571.      instructions for the 387.  Specify this option to avoid generating
  572.      those instructions. This option is the default on FreeBSD.
  573.  
  574. 
  575. File: gcc.info,  Node: HPPA Options,  Next: Intel 960 Options,  Prev: i386 Options,  Up: Submodel Options
  576.  
  577. HPPA Options
  578. ------------
  579.  
  580.    These `-m' options are defined for the HPPA family of computers:
  581.  
  582. `-mpa-risc-1-0'
  583.      Generate code for a PA 1.0 processor.
  584.  
  585. `-mpa-risc-1-1'
  586.      Generate code for a PA 1.1 processor.
  587.  
  588. `-mjump-in-delay'
  589.      Fill delay slots of function calls with unconditional jump
  590.      instructions by modifying the return pointer for the function call
  591.      to be the target of the conditional jump.
  592.  
  593. `-mlong-calls'
  594.      Generate code which allows calls to functions greater than 256k
  595.      away from the caller when the caller and callee are in the same
  596.      source file.  Do not turn this option on unless code refuses to
  597.      link with "branch out of range errors" from the linker.
  598.  
  599. `-mdisable-fpregs'
  600.      Prevent floating point registers from being used in any manner.
  601.      This is necessary for compiling kernels which perform lazy context
  602.      switching of floating point registers.  If you use this option and
  603.      attempt to perform floating point operations, the compiler will
  604.      abort.
  605.  
  606. `-mdisable-indexing'
  607.      Prevent the compiler from using indexing address modes.  This
  608.      avoids some rather obscure problems when compiling MIG generated
  609.      code under MACH.
  610.  
  611. `-mportable-runtime'
  612.      Use the portable calling conventions proposed by HP for ELF
  613.      systems.  Note this option also enables `-mlong-calls'.
  614.  
  615. `-mgas'
  616.      Unable the use of assembler directives only GAS understands.
  617.  
  618. 
  619. File: gcc.info,  Node: Intel 960 Options,  Next: DEC Alpha Options,  Prev: HPPA Options,  Up: Submodel Options
  620.  
  621. Intel 960 Options
  622. -----------------
  623.  
  624.    These `-m' options are defined for the Intel 960 implementations:
  625.  
  626. `-mCPU TYPE'
  627.      Assume the defaults for the machine type CPU TYPE for some of the
  628.      other options, including instruction scheduling, floating point
  629.      support, and addressing modes.  The choices for CPU TYPE are `ka',
  630.      `kb', `mc', `ca', `cf', `sa', and `sb'.  The default is `kb'.
  631.  
  632. `-mnumerics'
  633. `-msoft-float'
  634.      The `-mnumerics' option indicates that the processor does support
  635.      floating-point instructions.  The `-msoft-float' option indicates
  636.      that floating-point support should not be assumed.
  637.  
  638. `-mleaf-procedures'
  639. `-mno-leaf-procedures'
  640.      Do (or do not) attempt to alter leaf procedures to be callable
  641.      with the `bal' instruction as well as `call'.  This will result in
  642.      more efficient code for explicit calls when the `bal' instruction
  643.      can be substituted by the assembler or linker, but less efficient
  644.      code in other cases, such as calls via function pointers, or using
  645.      a linker that doesn't support this optimization.
  646.  
  647. `-mtail-call'
  648. `-mno-tail-call'
  649.      Do (or do not) make additional attempts (beyond those of the
  650.      machine-independent portions of the compiler) to optimize
  651.      tail-recursive calls into branches.  You may not want to do this
  652.      because the detection of cases where this is not valid is not
  653.      totally complete.  The default is `-mno-tail-call'.
  654.  
  655. `-mcomplex-addr'
  656. `-mno-complex-addr'
  657.      Assume (or do not assume) that the use of a complex addressing
  658.      mode is a win on this implementation of the i960.  Complex
  659.      addressing modes may not be worthwhile on the K-series, but they
  660.      definitely are on the C-series.  The default is currently
  661.      `-mcomplex-addr' for all processors except the CB and CC.
  662.  
  663. `-mcode-align'
  664. `-mno-code-align'
  665.      Align code to 8-byte boundaries for faster fetching (or don't
  666.      bother).  Currently turned on by default for C-series
  667.      implementations only.
  668.  
  669. `-mic-compat'
  670. `-mic2.0-compat'
  671. `-mic3.0-compat'
  672.      Enable compatibility with iC960 v2.0 or v3.0.
  673.  
  674. `-masm-compat'
  675. `-mintel-asm'
  676.      Enable compatibility with the iC960 assembler.
  677.  
  678. `-mstrict-align'
  679. `-mno-strict-align'
  680.      Do not permit (do permit) unaligned accesses.
  681.  
  682. `-mold-align'
  683.      Enable structure-alignment compatibility with Intel's gcc release
  684.      version 1.3 (based on gcc 1.37).  Currently this is buggy in that
  685.      `#pragma align 1' is always assumed as well, and cannot be turned
  686.      off.
  687.  
  688. 
  689. File: gcc.info,  Node: DEC Alpha Options,  Next: Clipper Options,  Prev: Intel 960 Options,  Up: Submodel Options
  690.  
  691. DEC Alpha Options
  692. -----------------
  693.  
  694.    These `-m' options are defined for the DEC Alpha implementations:
  695.  
  696. `-mno-soft-float'
  697. `-msoft-float'
  698.      Use (do not use) the hardware floating-point instructions for
  699.      floating-point operations.  When `-msoft-float' is specified,
  700.      functions in `libgcc1.c' will be used to perform floating-point
  701.      operations.  Unless they are replaced by routines that emulate the
  702.      floating-point operations, or compiled in such a way as to call
  703.      such emulations routines, these routines will issue floating-point
  704.      operations.   If you are compiling for an Alpha without
  705.      floating-point operations, you must ensure that the library is
  706.      built so as not to call them.
  707.  
  708.      Note that Alpha implementations without floating-point operations
  709.      are required to have floating-point registers.
  710.  
  711. `-mfp-reg'
  712. `-mno-fp-regs'
  713.      Generate code that uses (does not use) the floating-point register
  714.      set.  `-mno-fp-regs' implies `-msoft-float'.  If the floating-point
  715.      register set is not used, floating point operands are passed in
  716.      integer registers as if they were integers and floating-point
  717.      results are passed in $0 instead of $f0.  This is a non-standard
  718.      calling sequence, so any function with a floating-point argument
  719.      or return value called by code compiled with `-mno-fp-regs' must
  720.      also be compiled with that option.
  721.  
  722.      A typical use of this option is building a kernel that does not
  723.      use, and hence need not save and restore, any floating-point
  724.      registers.
  725.  
  726. 
  727. File: gcc.info,  Node: Clipper Options,  Next: H8/300 Options,  Prev: DEC Alpha Options,  Up: Submodel Options
  728.  
  729. Clipper Options
  730. ---------------
  731.  
  732.    These `-m' options are defined for the Clipper implementations:
  733.  
  734. `-mc300'
  735.      Produce code for a C300 Clipper processor. This is the default.
  736.  
  737. `-mc400'
  738.      Produce code for a C400 Clipper processor i.e. use floting point
  739.      registers f8..f15.
  740.  
  741. 
  742. File: gcc.info,  Node: H8/300 Options,  Next: System V Options,  Prev: Clipper Options,  Up: Submodel Options
  743.  
  744. H8/300 Options
  745. --------------
  746.  
  747.    These `-m' options are defined for the H8/300 implementations:
  748.  
  749. `-mrelax'
  750.      Shorten some address references at link time, when possible; uses
  751.      the linker option `-relax'.  *Note `ld' and the H8/300:
  752.      (ld.info)H8/300, for a fuller description.
  753.  
  754. `-mh'
  755.      Generate code for the H8/300H.
  756.  
  757. 
  758. File: gcc.info,  Node: System V Options,  Prev: H8/300 Options,  Up: Submodel Options
  759.  
  760. Options for System V
  761. --------------------
  762.  
  763.    These additional options are available on System V Release 4 for
  764. compatibility with other compilers on those systems:
  765.  
  766. `-Qy'
  767.      Identify the versions of each tool used by the compiler, in a
  768.      `.ident' assembler directive in the output.
  769.  
  770. `-Qn'
  771.      Refrain from adding `.ident' directives to the output file (this is
  772.      the default).
  773.  
  774. `-YP,DIRS'
  775.      Search the directories DIRS, and no others, for libraries
  776.      specified with `-l'.
  777.  
  778. `-Ym,DIR'
  779.      Look in the directory DIR to find the M4 preprocessor.  The
  780.      assembler uses this option.
  781.  
  782. 
  783. File: gcc.info,  Node: Code Gen Options,  Next: Environment Variables,  Prev: Submodel Options,  Up: Invoking GCC
  784.  
  785. Options for Code Generation Conventions
  786. =======================================
  787.  
  788.    These machine-independent options control the interface conventions
  789. used in code generation.
  790.  
  791.    Most of them have both positive and negative forms; the negative form
  792. of `-ffoo' would be `-fno-foo'.  In the table below, only one of the
  793. forms is listed--the one which is not the default.  You can figure out
  794. the other form by either removing `no-' or adding it.
  795.  
  796. `-fpcc-struct-return'
  797.      Return "short" `struct' and `union' values in memory like longer
  798.      ones, rather than in registers.  This convention is less
  799.      efficient, but it has the advantage of allowing intercallability
  800.      between GNU CC-compiled files and files compiled with other
  801.      compilers.
  802.  
  803.      The precise convention for returning structures in memory depends
  804.      on the target configuration macros.
  805.  
  806.      Short structures and unions are those whose size and alignment
  807.      match that of some integer type.
  808.  
  809. `-freg-struct-return'
  810.      Use the convention that `struct' and `union' values are returned
  811.      in registers when possible.  This is more efficient for small
  812.      structures than `-fpcc-struct-return'.
  813.  
  814.      If you specify neither `-fpcc-struct-return' nor its contrary
  815.      `-freg-struct-return', GNU CC defaults to whichever convention is
  816.      standard for the target.  If there is no standard convention, GNU
  817.      CC defaults to `-fpcc-struct-return', except on targets where GNU
  818.      CC is the principal compiler.  In those cases, we can choose the
  819.      standard, and we chose the more efficient register return
  820.      alternative.
  821.  
  822. `-fshort-enums'
  823.      Allocate to an `enum' type only as many bytes as it needs for the
  824.      declared range of possible values.  Specifically, the `enum' type
  825.      will be equivalent to the smallest integer type which has enough
  826.      room.
  827.  
  828. `-fshort-double'
  829.      Use the same size for `double' as for `float'.
  830.  
  831. `-fshared-data'
  832.      Requests that the data and non-`const' variables of this
  833.      compilation be shared data rather than private data.  The
  834.      distinction makes sense only on certain operating systems, where
  835.      shared data is shared between processes running the same program,
  836.      while private data exists in one copy per process.
  837.  
  838. `-fno-common'
  839.      Allocate even uninitialized global variables in the bss section of
  840.      the object file, rather than generating them as common blocks.
  841.      This has the effect that if the same variable is declared (without
  842.      `extern') in two different compilations, you will get an error
  843.      when you link them.  The only reason this might be useful is if
  844.      you wish to verify that the program will work on other systems
  845.      which always work this way.
  846.  
  847. `-fno-ident'
  848.      Ignore the `#ident' directive.
  849.  
  850. `-fno-gnu-linker'
  851.      Do not output global initializations (such as C++ constructors and
  852.      destructors) in the form used by the GNU linker (on systems where
  853.      the GNU linker is the standard method of handling them).  Use this
  854.      option when you want to use a non-GNU linker, which also requires
  855.      using the `collect2' program to make sure the system linker
  856.      includes constructors and destructors.  (`collect2' is included in
  857.      the GNU CC distribution.)  For systems which *must* use
  858.      `collect2', the compiler driver `gcc' is configured to do this
  859.      automatically.
  860.  
  861. `-finhibit-size-directive'
  862.      Don't output a `.size' assembler directive, or anything else that
  863.      would cause trouble if the function is split in the middle, and the
  864.      two halves are placed at locations far apart in memory.  This
  865.      option is used when compiling `crtstuff.c'; you should not need to
  866.      use it for anything else.
  867.  
  868. `-fverbose-asm'
  869.      Put extra commentary information in the generated assembly code to
  870.      make it more readable.  This option is generally only of use to
  871.      those who actually need to read the generated assembly code
  872.      (perhaps while debugging the compiler itself).
  873.  
  874. `-fvolatile'
  875.      Consider all memory references through pointers to be volatile.
  876.  
  877. `-fvolatile-global'
  878.      Consider all memory references to extern and global data items to
  879.      be volatile.
  880.  
  881. `-fpic'
  882.      Generate position-independent code (PIC) suitable for use in a
  883.      shared library, if supported for the target machine.  Such code
  884.      accesses all constant addresses through a global offset table
  885.      (GOT).  If the GOT size for the linked executable exceeds a
  886.      machine-specific maximum size, you get an error message from the
  887.      linker indicating that `-fpic' does not work; in that case,
  888.      recompile with `-fPIC' instead.  (These maximums are 16k on the
  889.      m88k, 8k on the Sparc, and 32k on the m68k and RS/6000.  The 386
  890.      has no such limit.)
  891.  
  892.      Position-independent code requires special support, and therefore
  893.      works only on certain machines.  For the 386, GNU CC supports PIC
  894.      for System V but not for the Sun 386i.  Code generated for the IBM
  895.      RS/6000 is always position-independent.
  896.  
  897.      The GNU assembler does not fully support PIC.  Currently, you must
  898.      use some other assembler in order for PIC to work.  We would
  899.      welcome volunteers to upgrade GAS to handle this; the first part
  900.      of the job is to figure out what the assembler must do differently.
  901.  
  902. `-fPIC'
  903.      If supported for the target machine, emit position-independent
  904.      code, suitable for dynamic linking and avoiding any limit on the
  905.      size of the global offset table.  This option makes a difference
  906.      on the m68k, m88k and the Sparc.
  907.  
  908.      Position-independent code requires special support, and therefore
  909.      works only on certain machines.
  910.  
  911. `-ffixed-REG'
  912.      Treat the register named REG as a fixed register; generated code
  913.      should never refer to it (except perhaps as a stack pointer, frame
  914.      pointer or in some other fixed role).
  915.  
  916.      REG must be the name of a register.  The register names accepted
  917.      are machine-specific and are defined in the `REGISTER_NAMES' macro
  918.      in the machine description macro file.
  919.  
  920.      This flag does not have a negative form, because it specifies a
  921.      three-way choice.
  922.  
  923. `-fcall-used-REG'
  924.      Treat the register named REG as an allocatable register that is
  925.      clobbered by function calls.  It may be allocated for temporaries
  926.      or variables that do not live across a call.  Functions compiled
  927.      this way will not save and restore the register REG.
  928.  
  929.      Use of this flag for a register that has a fixed pervasive role in
  930.      the machine's execution model, such as the stack pointer or frame
  931.      pointer, will produce disastrous results.
  932.  
  933.      This flag does not have a negative form, because it specifies a
  934.      three-way choice.
  935.  
  936. `-fcall-saved-REG'
  937.      Treat the register named REG as an allocatable register saved by
  938.      functions.  It may be allocated even for temporaries or variables
  939.      that live across a call.  Functions compiled this way will save
  940.      and restore the register REG if they use it.
  941.  
  942.      Use of this flag for a register that has a fixed pervasive role in
  943.      the machine's execution model, such as the stack pointer or frame
  944.      pointer, will produce disastrous results.
  945.  
  946.      A different sort of disaster will result from the use of this flag
  947.      for a register in which function values may be returned.
  948.  
  949.      This flag does not have a negative form, because it specifies a
  950.      three-way choice.
  951.  
  952. `+e0'
  953. `+e1'
  954.      Control whether virtual function definitions in classes are used to
  955.      generate code, or only to define interfaces for their callers.
  956.      (C++ only).
  957.  
  958.      These options are provided for compatibility with `cfront' 1.x
  959.      usage; the recommended alternative GNU C++ usage is in flux.
  960.      *Note Declarations and Definitions in One Header: C++ Interface.
  961.  
  962.      With `+e0', virtual function definitions in classes are declared
  963.      `extern'; the declaration is used only as an interface
  964.      specification, not to generate code for the virtual functions (in
  965.      this compilation).
  966.  
  967.      With `+e1', G++ actually generates the code implementing virtual
  968.      functions defined in the code, and makes them publicly visible.
  969.  
  970. 
  971. File: gcc.info,  Node: Environment Variables,  Next: Running Protoize,  Prev: Code Gen Options,  Up: Invoking GCC
  972.  
  973. Environment Variables Affecting GNU CC
  974. ======================================
  975.  
  976.    This section describes several environment variables that affect how
  977. GNU CC operates.  They work by specifying directories or prefixes to use
  978. when searching for various kinds of files.
  979.  
  980.    Note that you can also specify places to search using options such as
  981. `-B', `-I' and `-L' (*note Directory Options::.).  These take
  982. precedence over places specified using environment variables, which in
  983. turn take precedence over those specified by the configuration of GNU
  984. CC.  *Note Driver::.
  985.  
  986. `TMPDIR'
  987.      If `TMPDIR' is set, it specifies the directory to use for temporary
  988.      files.  GNU CC uses temporary files to hold the output of one
  989.      stage of compilation which is to be used as input to the next
  990.      stage: for example, the output of the preprocessor, which is the
  991.      input to the compiler proper.
  992.  
  993. `GCC_EXEC_PREFIX'
  994.      If `GCC_EXEC_PREFIX' is set, it specifies a prefix to use in the
  995.      names of the subprograms executed by the compiler.  No slash is
  996.      added when this prefix is combined with the name of a subprogram,
  997.      but you can specify a prefix that ends with a slash if you wish.
  998.  
  999.      If GNU CC cannot find the subprogram using the specified prefix, it
  1000.      tries looking in the usual places for the subprogram.
  1001.  
  1002.      The default value of `GCC_EXEC_PREFIX' is
  1003.      `PREFIX/lib/gcc-lib/MACHINE/VERSION/' where PREFIX is the value of
  1004.      `prefix' when you ran the `configure' script and MACHINE and
  1005.      VERSION are the configuration name and version number of GNU CC,
  1006.      respectively.
  1007.  
  1008.      Other prefixes specified with `-B' take precedence over this
  1009.      prefix.
  1010.  
  1011.      This prefix is also used for finding files such as `crt0.o' that
  1012.      are used for linking.
  1013.  
  1014.      In addition, the prefix is used in an unusual way in finding the
  1015.      directories to search for header files.  For each of the standard
  1016.      directories whose name normally begins with
  1017.      `/usr/local/lib/gcc-lib' (more precisely, with the value of
  1018.      `GCC_INCLUDE_DIR'), GNU CC tries replacing that beginning with the
  1019.      specified prefix to produce an alternate directory name.  Thus,
  1020.      with `-Bfoo/', GNU CC will search `foo/bar' where it would
  1021.      normally search `/usr/local/lib/bar'.  These alternate directories
  1022.      are searched first; the standard directories come next.
  1023.  
  1024. `COMPILER_PATH'
  1025.      The value of `COMPILER_PATH' is a colon-separated list of
  1026.      directories, much like `PATH'.  GNU CC tries the directories thus
  1027.      specified when searching for subprograms, if it can't find the
  1028.      subprograms using `GCC_EXEC_PREFIX'.
  1029.  
  1030. `LIBRARY_PATH'
  1031.      The value of `LIBRARY_PATH' is a colon-separated list of
  1032.      directories, much like `PATH'.  GNU CC tries the directories thus
  1033.      specified when searching for special linker files, if it can't
  1034.      find them using `GCC_EXEC_PREFIX'.  Linking using GNU CC also uses
  1035.      these directories when searching for ordinary libraries for the
  1036.      `-l' option (but directories specified with `-L' come first).
  1037.  
  1038. `C_INCLUDE_PATH'
  1039. `CPLUS_INCLUDE_PATH'
  1040. `OBJC_INCLUDE_PATH'
  1041.      These environment variables pertain to particular languages.  Each
  1042.      variable's value is a colon-separated list of directories, much
  1043.      like `PATH'.  When GNU CC searches for header files, it tries the
  1044.      directories listed in the variable for the language you are using,
  1045.      after the directories specified with `-I' but before the standard
  1046.      header file directories.
  1047.  
  1048. `DEPENDENCIES_OUTPUT'
  1049.      If this variable is set, its value specifies how to output
  1050.      dependencies for Make based on the header files processed by the
  1051.      compiler.  This output looks much like the output from the `-M'
  1052.      option (*note Preprocessor Options::.), but it goes to a separate
  1053.      file, and is in addition to the usual results of compilation.
  1054.  
  1055.      The value of `DEPENDENCIES_OUTPUT' can be just a file name, in
  1056.      which case the Make rules are written to that file, guessing the
  1057.      target name from the source file name.  Or the value can have the
  1058.      form `FILE TARGET', in which case the rules are written to file
  1059.      FILE using TARGET as the target name.
  1060.  
  1061. 
  1062. File: gcc.info,  Node: Running Protoize,  Prev: Environment Variables,  Up: Invoking GCC
  1063.  
  1064. Running Protoize
  1065. ================
  1066.  
  1067.    The program `protoize' is an optional part of GNU C.  You can use it
  1068. to add prototypes to a program, thus converting the program to ANSI C
  1069. in one respect.  The companion program `unprotoize' does the reverse:
  1070. it removes argument types from any prototypes that are found.
  1071.  
  1072.    When you run these programs, you must specify a set of source files
  1073. as command line arguments.  The conversion programs start out by
  1074. compiling these files to see what functions they define.  The
  1075. information gathered about a file FOO is saved in a file named `FOO.X'.
  1076.  
  1077.    After scanning comes actual conversion.  The specified files are all
  1078. eligible to be converted; any files they include (whether sources or
  1079. just headers) are eligible as well.
  1080.  
  1081.    But not all the eligible files are converted.  By default,
  1082. `protoize' and `unprotoize' convert only source and header files in the
  1083. current directory.  You can specify additional directories whose files
  1084. should be converted with the `-d DIRECTORY' option.  You can also
  1085. specify particular files to exclude with the `-x FILE' option.  A file
  1086. is converted if it is eligible, its directory name matches one of the
  1087. specified directory names, and its name within the directory has not
  1088. been excluded.
  1089.  
  1090.    Basic conversion with `protoize' consists of rewriting most function
  1091. definitions and function declarations to specify the types of the
  1092. arguments.  The only ones not rewritten are those for varargs functions.
  1093.  
  1094.    `protoize' optionally inserts prototype declarations at the
  1095. beginning of the source file, to make them available for any calls that
  1096. precede the function's definition.  Or it can insert prototype
  1097. declarations with block scope in the blocks where undeclared functions
  1098. are called.
  1099.  
  1100.    Basic conversion with `unprotoize' consists of rewriting most
  1101. function declarations to remove any argument types, and rewriting
  1102. function definitions to the old-style pre-ANSI form.
  1103.  
  1104.    Both conversion programs print a warning for any function
  1105. declaration or definition that they can't convert.  You can suppress
  1106. these warnings with `-q'.
  1107.  
  1108.    The output from `protoize' or `unprotoize' replaces the original
  1109. source file.  The original file is renamed to a name ending with
  1110. `.save'.  If the `.save' file already exists, then the source file is
  1111. simply discarded.
  1112.  
  1113.    `protoize' and `unprotoize' both depend on GNU CC itself to scan the
  1114. program and collect information about the functions it uses.  So
  1115. neither of these programs will work until GNU CC is installed.
  1116.  
  1117.    Here is a table of the options you can use with `protoize' and
  1118. `unprotoize'.  Each option works with both programs unless otherwise
  1119. stated.
  1120.  
  1121. `-B DIRECTORY'
  1122.      Look for the file `SYSCALLS.c.X' in DIRECTORY, instead of the
  1123.      usual directory (normally `/usr/local/lib').  This file contains
  1124.      prototype information about standard system functions.  This option
  1125.      applies only to `protoize'.
  1126.  
  1127. `-c COMPILATION-OPTIONS'
  1128.      Use  COMPILATION-OPTIONS as the options when running `gcc' to
  1129.      produce the `.X' files.  The special option `-aux-info' is always
  1130.      passed in addition, to tell `gcc' to write a `.X' file.
  1131.  
  1132.      Note that the compilation options must be given as a single
  1133.      argument to `protoize' or `unprotoize'.  If you want to specify
  1134.      several `gcc' options, you must quote the entire set of
  1135.      compilation options to make them a single word in the shell.
  1136.  
  1137.      There are certain `gcc' arguments that you cannot use, because they
  1138.      would produce the wrong kind of output.  These include `-g', `-O',
  1139.      `-c', `-S', and `-o' If you include these in the
  1140.      COMPILATION-OPTIONS, they are ignored.
  1141.  
  1142. `-C'
  1143.      Rename files to end in `.C' instead of `.c'.  This is convenient
  1144.      if you are converting a C program to C++.  This option applies
  1145.      only to `protoize'.
  1146.  
  1147. `-g'
  1148.      Add explicit global declarations.  This means inserting explicit
  1149.      declarations at the beginning of each source file for each function
  1150.      that is called in the file and was not declared.  These
  1151.      declarations precede the first function definition that contains a
  1152.      call to an undeclared function.  This option applies only to
  1153.      `protoize'.
  1154.  
  1155. `-i STRING'
  1156.      Indent old-style parameter declarations with the string STRING.
  1157.      This option applies only to `protoize'.
  1158.  
  1159.      `unprotoize' converts prototyped function definitions to old-style
  1160.      function definitions, where the arguments are declared between the
  1161.      argument list and the initial `{'.  By default, `unprotoize' uses
  1162.      five spaces as the indentation.  If you want to indent with just
  1163.      one space instead, use `-i " "'.
  1164.  
  1165. `-k'
  1166.      Keep the `.X' files.  Normally, they are deleted after conversion
  1167.      is finished.
  1168.  
  1169. `-l'
  1170.      Add explicit local declarations.  `protoize' with `-l' inserts a
  1171.      prototype declaration for each function in each block which calls
  1172.      the function without any declaration.  This option applies only to
  1173.      `protoize'.
  1174.  
  1175. `-n'
  1176.      Make no real changes.  This mode just prints information about the
  1177.      conversions that would have been done without `-n'.
  1178.  
  1179. `-N'
  1180.      Make no `.save' files.  The original files are simply deleted.
  1181.      Use this option with caution.
  1182.  
  1183. `-p PROGRAM'
  1184.      Use the program PROGRAM as the compiler.  Normally, the name `gcc'
  1185.      is used.
  1186.  
  1187. `-q'
  1188.      Work quietly.  Most warnings are suppressed.
  1189.  
  1190. `-v'
  1191.      Print the version number, just like `-v' for `gcc'.
  1192.  
  1193.    If you need special compiler options to compile one of your program's
  1194. source files, then you should generate that file's `.X' file specially,
  1195. by running `gcc' on that source file with the appropriate options and
  1196. the option `-aux-info'.  Then run `protoize' on the entire set of
  1197. files.  `protoize' will use the existing `.X' file because it is newer
  1198. than the source file.  For example:
  1199.  
  1200.      gcc -Dfoo=bar file1.c -aux-info
  1201.      protoize *.c
  1202.  
  1203. You need to include the special files along with the rest in the
  1204. `protoize' command, even though their `.X' files already exist, because
  1205. otherwise they won't get converted.
  1206.  
  1207.    *Note Protoize Caveats::, for more information on how to use
  1208. `protoize' successfully.
  1209.  
  1210.