home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsgcc139_tar.Z / vmsgcc139_tar / gcc.info-1 < prev    next >
Encoding:
Text File  |  1991-12-18  |  22.7 KB  |  522 lines

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