home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gccdist / gcc / gcc.info-1 < prev    next >
Encoding:
GNU Info File  |  1992-09-10  |  22.7 KB  |  509 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.47 from the input
  2. file gcc.texinfo.
  3.  
  4.    This file documents the use and the internals of the GNU compiler.
  5.  
  6.    Copyright (C) 1988, 1989, 1990 Free Software Foundation, Inc.
  7.  
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12.    Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled "GNU General Public License" and "Protect
  15. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  16. original, and provided that the entire resulting derived work is
  17. distributed under the terms of a permission notice identical to this
  18. one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled "GNU General Public
  23. License" and "Protect Your Freedom--Fight `Look And Feel'" and this
  24. permission notice may be included in translations approved by the Free
  25. Software Foundation instead of in the original English.
  26.  
  27. 
  28. File: gcc.info,  Node: Top,  Next: Copying,  Up: (DIR)
  29.  
  30. Introduction
  31. ************
  32.  
  33.    This manual documents how to run, install and port the GNU C
  34. compiler, as well as its new features and incompatibilities, and how to
  35. report bugs.
  36.  
  37. * Menu:
  38.  
  39. * Copying::         GNU General Public License says
  40.                      how you can copy and share GNU CC.
  41. * Contributors::    People who have contributed to GNU CC.
  42. * Boycott::        Protect your freedom--fight "look and feel".
  43. * Options::         Command options supported by `gcc'.
  44. * Installation::    How to configure, compile and install GNU CC.
  45. * Trouble::         If you have trouble installing GNU CC.
  46. * Service::         How to find suppliers of services for GNU CC users.
  47. * Incompatibilities:: Incompatibilities of GNU CC.
  48. * Extensions::      GNU extensions to the C language.
  49. * Bugs::            How to report bugs (if you want to get them fixed).
  50. * Portability::     Goals of GNU CC's portability features.
  51. * Interface::       Function-call interface of GNU CC output.
  52. * Passes::          Order of passes, what they do, and what each file is for.
  53. * RTL::             The intermediate representation that most passes work on.
  54. * Machine Desc::    How to write machine description instruction patterns.
  55. * Machine Macros::  How to write the machine description C macros.
  56. * Config::          Writing the `xm-MACHINE.h' file.
  57.  
  58. 
  59. File: gcc.info,  Node: Copying,  Next: Contributors,  Prev: Top,  Up: Top
  60.  
  61. GNU GENERAL PUBLIC LICENSE
  62. **************************
  63.  
  64.                        Version 1, February 1989
  65.  
  66.      Copyright (C) 1989 Free Software Foundation, Inc.
  67.      675 Mass Ave, Cambridge, MA 02139, USA
  68.      
  69.      Everyone is permitted to copy and distribute verbatim copies
  70.      of this license document, but changing it is not allowed.
  71.  
  72. Preamble
  73. ========
  74.  
  75.    The license agreements of most software companies try to keep users
  76. at the mercy of those companies.  By contrast, our General Public
  77. License is intended to guarantee your freedom to share and change free
  78. software--to make sure the software is free for all its users.  The
  79. General Public License applies to the Free Software Foundation's
  80. software and to any other program whose authors commit to using it. You
  81. can use it for your programs, too.
  82.  
  83.    When we speak of free software, we are referring to freedom, not
  84. price.  Specifically, the General Public License is designed to make
  85. sure that you have the freedom to give away or sell copies of free
  86. software, that you receive source code or can get it if you want it,
  87. that you can change the software or use pieces of it in new free
  88. programs; and that you know you can do these things.
  89.  
  90.    To protect your rights, we need to make restrictions that forbid
  91. anyone to deny you these rights or to ask you to surrender the rights.
  92. These restrictions translate to certain responsibilities for you if you
  93. distribute copies of the software, or if you modify it.
  94.  
  95.    For example, if you distribute copies of a such a program, whether
  96. gratis or for a fee, you must give the recipients all the rights that
  97. you have.  You must make sure that they, too, receive or can get the
  98. source code.  And you must tell them their rights.
  99.  
  100.    We protect your rights with two steps: (1) copyright the software,
  101. and (2) offer you this license which gives you legal permission to copy,
  102. distribute and/or modify the software.
  103.  
  104.    Also, for each author's protection and ours, we want to make certain
  105. that everyone understands that there is no warranty for this free
  106. software.  If the software is modified by someone else and passed on, we
  107. want its recipients to know that what they have is not the original, so
  108. that any problems introduced by others will not reflect on the original
  109. authors' reputations.
  110.  
  111.    The precise terms and conditions for copying, distribution and
  112. modification follow.
  113.  
  114.                          TERMS AND CONDITIONS
  115.  
  116.   1. This License Agreement applies to any program or other work which
  117.      contains a notice placed by the copyright holder saying it may be
  118.      distributed under the terms of this General Public License.  The
  119.      "Program", below, refers to any such program or work, and a "work
  120.      based on the Program" means either the Program or any work
  121.      containing the Program or a portion of it, either verbatim or with
  122.      modifications.  Each licensee is addressed as "you".
  123.  
  124.   2. You may copy and distribute verbatim copies of the Program's source
  125.      code as you receive it, in any medium, provided that you
  126.      conspicuously and appropriately publish on each copy an
  127.      appropriate copyright notice and disclaimer of warranty; keep
  128.      intact all the notices that refer to this General Public License
  129.      and to the absence of any warranty; and give any other recipients
  130.      of the Program a copy of this General Public License along with
  131.      the Program.  You may charge a fee for the physical act of
  132.      transferring a copy.
  133.  
  134.   3. You may modify your copy or copies of the Program or any portion of
  135.      it, and copy and distribute such modifications under the terms of
  136.      Paragraph 1 above, provided that you also do the following:
  137.  
  138.         * cause the modified files to carry prominent notices stating
  139.           that you changed the files and the date of any change; and
  140.  
  141.         * cause the whole of any work that you distribute or publish,
  142.           that in whole or in part contains the Program or any part
  143.           thereof, either with or without modifications, to be licensed
  144.           at no charge to all third parties under the terms of this
  145.           General Public License (except that you may choose to grant
  146.           warranty protection to some or all third parties, at your
  147.           option).
  148.  
  149.         * If the modified program normally reads commands interactively
  150.           when run, you must cause it, when started running for such
  151.           interactive use in the simplest and most usual way, to print
  152.           or display an announcement including an appropriate copyright
  153.           notice and a notice that there is no warranty (or else,
  154.           saying that you provide a warranty) and that users may
  155.           redistribute the program under these conditions, and telling
  156.           the user how to view a copy of this General Public License.
  157.  
  158.         * You may charge a fee for the physical act of transferring a
  159.           copy, and you may at your option offer warranty protection in
  160.           exchange for a fee.
  161.  
  162.      Mere aggregation of another independent work with the Program (or
  163.      its derivative) on a volume of a storage or distribution medium
  164.      does not bring the other work under the scope of these terms.
  165.  
  166.   4. You may copy and distribute the Program (or a portion or
  167.      derivative of it, under Paragraph 2) in object code or executable
  168.      form under the terms of Paragraphs 1 and 2 above provided that you
  169.      also do one of the following:
  170.  
  171.         * accompany it with the complete corresponding machine-readable
  172.           source code, which must be distributed under the terms of
  173.           Paragraphs 1 and 2 above; or,
  174.  
  175.         * accompany it with a written offer, valid for at least three
  176.           years, to give any third party free (except for a nominal
  177.           charge for the cost of distribution) a complete
  178.           machine-readable copy of the corresponding source code, to be
  179.           distributed under the terms of Paragraphs 1 and 2 above; or,
  180.  
  181.         * accompany it with the information you received as to where the
  182.           corresponding source code may be obtained.  (This alternative
  183.           is allowed only for noncommercial distribution and only if you
  184.           received the program in object code or executable form alone.)
  185.  
  186.      Source code for a work means the preferred form of the work for
  187.      making modifications to it.  For an executable file, complete
  188.      source code means all the source code for all modules it contains;
  189.      but, as a special exception, it need not include source code for
  190.      modules which are standard libraries that accompany the operating
  191.      system on which the executable file runs, or for standard header
  192.      files or definitions files that accompany that operating system.
  193.  
  194.   5. You may not copy, modify, sublicense, distribute or transfer the
  195.      Program except as expressly provided under this General Public
  196.      License. Any attempt otherwise to copy, modify, sublicense,
  197.      distribute or transfer the Program is void, and will automatically
  198.      terminate your rights to use the Program under this License. 
  199.      However, parties who have received copies, or rights to use
  200.      copies, from you under this General Public License will not have
  201.      their licenses terminated so long as such parties remain in full
  202.      compliance.
  203.  
  204.   6. By copying, distributing or modifying the Program (or any work
  205.      based on the Program) you indicate your acceptance of this license
  206.      to do so, and all its terms and conditions.
  207.  
  208.   7. Each time you redistribute the Program (or any work based on the
  209.      Program), the recipient automatically receives a license from the
  210.      original licensor to copy, distribute or modify the Program
  211.      subject to these terms and conditions.  You may not impose any
  212.      further restrictions on the recipients' exercise of the rights
  213.      granted herein.
  214.  
  215.   8. The Free Software Foundation may publish revised and/or new
  216.      versions of the General Public License from time to time.  Such
  217.      new versions will be similar in spirit to the present version, but
  218.      may differ in detail to address new problems or concerns.
  219.  
  220.      Each version is given a distinguishing version number.  If the
  221.      Program specifies a version number of the license which applies to
  222.      it and "any later version", you have the option of following the
  223.      terms and conditions either of that version or of any later
  224.      version published by the Free Software Foundation.  If the Program
  225.      does not specify a version number of the license, you may choose
  226.      any version ever published by the Free Software Foundation.
  227.  
  228.   9. If you wish to incorporate parts of the Program into other free
  229.      programs whose distribution conditions are different, write to the
  230.      author to ask for permission.  For software which is copyrighted
  231.      by the Free Software Foundation, write to the Free Software
  232.      Foundation; we sometimes make exceptions for this.  Our decision
  233.      will be guided by the two goals of preserving the free status of
  234.      all derivatives of our free software and of promoting the sharing
  235.      and reuse of software generally.
  236.  
  237.                                 NO WARRANTY
  238.  
  239.  10. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  240.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  241.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  242.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  243.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  244.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  245.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  246.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  247.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  248.      SERVICING, REPAIR OR CORRECTION.
  249.  
  250.  11. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  251.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  252.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  253.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  254.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  255.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  256.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  257.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  258.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  259.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  260.  
  261.                       END OF TERMS AND CONDITIONS
  262.  
  263. Appendix: How to Apply These Terms to Your New Programs
  264. =======================================================
  265.  
  266.    If you develop a new program, and you want it to be of the greatest
  267. possible use to humanity, the best way to achieve this is to make it
  268. free software which everyone can redistribute and change under these
  269. terms.
  270.  
  271.    To do so, attach the following notices to the program.  It is safest
  272. to attach them to the start of each source file to most effectively
  273. convey the exclusion of warranty; and each file should have at least the
  274. "copyright" line and a pointer to where the full notice is found.
  275.  
  276.      ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  277.      Copyright (C) 19YY  NAME OF AUTHOR
  278.      
  279.      This program is free software; you can redistribute it and/or modify
  280.      it under the terms of the GNU General Public License as published by
  281.      the Free Software Foundation; either version 1, or (at your option)
  282.      any later version.
  283.      
  284.      This program is distributed in the hope that it will be useful,
  285.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  286.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  287.      GNU General Public License for more details.
  288.      
  289.      You should have received a copy of the GNU General Public License
  290.      along with this program; if not, write to the Free Software
  291.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  292.  
  293.    Also add information on how to contact you by electronic and paper
  294. mail.
  295.  
  296.    If the program is interactive, make it output a short notice like
  297. this when it starts in an interactive mode:
  298.  
  299.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  300.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  301.      This is free software, and you are welcome to redistribute it
  302.      under certain conditions; type `show c' for details.
  303.  
  304.    The hypothetical commands `show w' and `show c' should show the
  305. appropriate parts of the General Public License.  Of course, the
  306. commands you use may be called something other than `show w' and `show
  307. c'; they could even be mouse-clicks or menu items--whatever suits your
  308. program.
  309.  
  310.    You should also get your employer (if you work as a programmer) or
  311. your school, if any, to sign a "copyright disclaimer" for the program,
  312. if necessary.  Here a sample; alter the names:
  313.  
  314.      Yoyodyne, Inc., hereby disclaims all copyright interest in the
  315.      program `Gnomovision' (a program to direct compilers to make passes
  316.      at assemblers) written by James Hacker.
  317.      
  318.      SIGNATURE OF TY COON, 1 April 1989
  319.      Ty Coon, President of Vice
  320.  
  321.    That's all there is to it!
  322.  
  323. 
  324. File: gcc.info,  Node: Contributors,  Next: Boycott,  Prev: Copying,  Up: Top
  325.  
  326. Contributors to GNU CC
  327. **********************
  328.  
  329.    In addition to Richard Stallman, several people have written parts
  330. of GNU CC.
  331.  
  332.    * The idea of using RTL and some of the optimization ideas came from
  333.      the U. of Arizona Portable Optimizer, written by Jack Davidson and
  334.      Christopher Fraser.  See "Register Allocation and Exhaustive
  335.      Peephole Optimization", Software Practice and Experience 14 (9),
  336.      Sept. 1984, 857-866.
  337.  
  338.    * Paul Rubin wrote most of the preprocessor.
  339.  
  340.    * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  341.      definitions, and of the Vax machine description.
  342.  
  343.    * Ted Lemon wrote parts of the RTL reader and printer.
  344.  
  345.    * Jim Wilson implemented loop strength reduction and some other loop
  346.      optimizations.
  347.  
  348.    * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  349.      contributed the support for the Sony NEWS machine.
  350.  
  351.    * Charles LaBrec contributed the support for the Integrated Solutions
  352.      68020 system.
  353.  
  354.    * Michael Tiemann of MCC wrote most of the description of the
  355.      National Semiconductor 32000 series cpu.  He also wrote the code
  356.      for inline function integration and for the SPARC cpu and Motorola
  357.      88000 cpu and part of the Sun FPA support.
  358.  
  359.    * Jan Stein of the Chalmers Computer Society provided support for
  360.      Genix, as well as part of the 32000 machine description.
  361.  
  362.    * Randy Smith finished the Sun FPA support.
  363.  
  364.    * Robert Brown implemented the support for Encore 32000 systems.
  365.  
  366.    * David Kashtan of SRI adapted GNU CC to the Vomit-Making System.
  367.  
  368.    * Alex Crain provided changes for the 3b1.
  369.  
  370.    * Greg Satz and Chris Hanson assisted in making GNU CC work on HP-UX
  371.      for the 9000 series 300.
  372.  
  373.    * William Schelter did most of the work on the Intel 80386 support.
  374.  
  375.    * Christopher Smith did the port for Convex machines.
  376.  
  377.    * Paul Petersen wrote the machine description for the Alliant FX/8.
  378.  
  379.    * Alain Lichnewsky ported GNU CC to the Mips cpu.
  380.  
  381.    * Devon Bowen, Dale Wiles and Kevin Zachmann ported GNU CC to the
  382.      Tahoe.
  383.  
  384.    * Jonathan Stone wrote the machine description for the Pyramid
  385.      computer.
  386.  
  387. 
  388. File: gcc.info,  Node: Boycott,  Next: Options,  Prev: Contributors,  Up: Top
  389.  
  390. Protect Your Freedom--Fight "Look And Feel"
  391. *******************************************
  392.  
  393.      This section is a political message from the League for Programming
  394.      Freedom to the users of GNU CC.  It is included here as an
  395.      expression of support for the League on the part of the Free
  396.      Software Foundation and Richard Stallman.
  397.  
  398.    Ashton-Tate, Apple, Lotus and Xerox are trying to create a new form
  399. of legal monopoly: a copyright on a class of user interfaces.  These
  400. monopolies would cause serious problems for users and developers of
  401. computer software and systems.
  402.  
  403.    Until a few years ago, the law seemed clear: no one could restrict
  404. others from using a user interface; programmers were free to implement
  405. any interface they chose.  Imitating interfaces, sometimes with changes,
  406. was standard practice in the computer field.  The interfaces we know
  407. evolved gradually in this way; for example, the Macintosh user interface
  408. drew ideas from the Xerox interface, which in turn drew on work done at
  409. Stanford and SRI.  1-2-3 imitated VisiCalc, and dBase imitated a
  410. database program from JPL.
  411.  
  412.    Most computer companies, and nearly all computer users, were happy
  413. with this state of affairs.  The companies that are suing say it does
  414. not offer "enough incentive" to develop their products, but they must
  415. have considered it "enough" when they made their decision to do so.  It
  416. seems they are not satisfied with the opportunity to continue to compete
  417. in the marketplace--not even with a head start.
  418.  
  419.    If Xerox, Lotus, Apple and Ashton-Tate are permitted to make law
  420. through the courts, the precedent will hobble the software industry:
  421.  
  422.    * Gratuitous incompatibilities will burden users.  Imagine if each
  423.      car manufacturer had to arrange the pedals in a different order.
  424.  
  425.    * Software will become and remain more expensive.  Users will be
  426.      "locked in" to proprietary interfaces, for which there is no real
  427.      competition.
  428.  
  429.    * Large companies have an unfair advantage wherever lawsuits become
  430.      commonplace.  Since they can easily afford to sue, they can
  431.      intimidate small companies with threats even when they don't
  432.      really have a case.
  433.  
  434.    * User interface improvements will come slower, since incremental
  435.      evolution through creative imitation will no longer be permitted.
  436.  
  437.    * Even Apple, etc., will find it harder to make improvements if they
  438.      can no longer adapt the good ideas that others introduce, for fear
  439.      of weakening their own legal positions.  Some users suggest that
  440.      this stagnation may already have started.
  441.  
  442.    * If you use GNU software, you might find it of some concern that
  443.      user interface copyright will make it hard for the Free Software
  444.      Foundation to develop programs compatible with the interfaces that
  445.      you already know.
  446.  
  447.    To protect our freedom from lawsuits like these, a group of
  448. programmers and users have formed a new grass-roots political
  449. organization, the League for Programming Freedom.
  450.  
  451.    The purpose of the League is to oppose new monopolistic practices
  452. such as user-interface copyright and software patents; it calls for a
  453. return to the legal policies of the recent past, in which these
  454. practices were not allowed.  The League is not concerned with free
  455. software as an issue, and not affiliated with the Free Software
  456. Foundation.
  457.  
  458.    The League's membership rolls include John McCarthy, inventor of
  459. Lisp, Marvin Minsky, founder of the Artificial Intelligence lab, Guy L.
  460. Steele, Jr., author of well-known books on Lisp and C, as well as
  461. Richard Stallman, the developer of GNU CC.  Please join and add your
  462. name to the list.  Membership dues in the League are $42 per year for
  463. programmers, managers and professionals; $10.50 for students; $21 for
  464. others.
  465.  
  466.    The League needs both activist members and members who only pay their
  467. dues.
  468.  
  469.    To join, or for more information, phone (617) 492-0023 or write to:
  470.  
  471.      League for Programming Freedom
  472.      1 Kendall Square #143
  473.      P.O. Box 9171
  474.      Cambridge, MA 02139       league@prep.ai.mit.edu
  475.  
  476.    Here are some suggestions from the League for how you can protect
  477. your freedom to write programs:
  478.  
  479.    * Don't buy from Xerox, Lotus, Apple or Ashton-Tate.  Buy from their
  480.      competitors or from the defendants they are suing.
  481.  
  482.    * Don't develop software to work with the systems made by these
  483.      companies.
  484.  
  485.    * Port your existing software to competing systems, so that you
  486.      encourage users to switch.
  487.  
  488.    * Write letters to company presidents to let them know their conduct
  489.      is unacceptable.
  490.  
  491.    * Tell your friends and colleagues about this issue and how it
  492.      threatens to ruin the computer industry.
  493.  
  494.    * Above all, don't work for the look-and-feel plaintiffs, and don't
  495.      accept contracts from them.
  496.  
  497.    * Write to Congress to explain the importance of this issue.
  498.  
  499.           House Subcommittee on Intellectual Property
  500.           2137 Rayburn Bldg
  501.           Washington, DC 20515
  502.           
  503.           Senate Subcommittee on Patents, Trademarks and Copyrights
  504.           United States Senate
  505.           Washington, DC 20510
  506.  
  507.    Express your opinion!  You can make a difference.
  508.  
  509.