Using and Porting GNU CC



Richard M. Stallman




last updated 15 February 1992


for version 2.0

(preliminary draft, which will change)

Copyright © 1988, 1989, 1992 Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided also that the section entitled “GNU General Public License” is included exactly as in the original, and provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that the section entitled “GNU General Public License” and this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

GNU GENERAL PUBLIC LICENSE

Version 2, June 1991

Copyright © 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA

Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Preamble

The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software—to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation’s software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.

When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.

To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.

For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.

We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.

Also, for each author’s protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors’ reputations.

Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone’s free use or not licensed at all.

The precise terms and conditions for copying, distribution and modification follow.

  1. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The “Program”, below, refers to any such program or work, and a “work based on the Program” means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term “modification”.) Each licensee is addressed as “you”.

    Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.

  2. You may copy and distribute verbatim copies of the Program’s source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.

    You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.

  3. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
    1. You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
    2. You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
    3. If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)

    These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.

    Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.

    In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.

  4. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
    1. Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
    2. Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
    3. Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)

    The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.

    If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.

  5. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
  6. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
  7. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients’ exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
  8. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.

    If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.

    It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.

    This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.

  9. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
  10. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.

    Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and “any later version”, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.

  11. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
  12. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  13. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Appendix: How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.

one line to give the program's name and a brief idea of what it does.
Copyright (C) 19yy  name of author

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this when it starts in an interactive mode:

Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands ‘show w’ and ‘show c’ should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than ‘show w’ and ‘show c’; they could even be mouse-clicks or menu items—whatever suits your program.

You should also get your employer (if you work as a programmer) or your school, if any, to sign a “copyright disclaimer” for the program, if necessary. Here is a sample; alter the names:

Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.

signature of Ty Coon, 1 April 1989
Ty Coon, President of Vice

This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Contributors to GNU CC

In addition to Richard Stallman, several people have written parts of GNU CC.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1 Protect Your Freedom—Fight “Look And Feel”

This section is a political message from the League for Programming Freedom to the users of GNU CC. It is included here as an expression of support for the League on the part of the Free Software Foundation.

Apple, Lotus and Xerox are trying to create a new form of legal monopoly: a copyright on a class of user interfaces. These monopolies would cause serious problems for users and developers of computer software and systems.

Until a few years ago, the law seemed clear: no one could restrict others from using a user interface; programmers were free to implement any interface they chose. Imitating interfaces, sometimes with changes, was standard practice in the computer field. The interfaces we know evolved gradually in this way; for example, the Macintosh user interface drew ideas from the Xerox interface, which in turn drew on work done at Stanford and SRI. 1-2-3 imitated VisiCalc, and dBase imitated a database program from JPL.

Most computer companies, and nearly all computer users, were happy with this state of affairs. The companies that are suing say it does not offer “enough incentive” to develop their products, but they must have considered it “enough” when they made their decision to do so. It seems they are not satisfied with the opportunity to continue to compete in the marketplace—not even with a head start.

If Xerox, Lotus, and Apple are permitted to make law through the courts, the precedent will hobble the software industry:

To protect our freedom from lawsuits like these, a group of programmers and users have formed a new grass-roots political organization, the League for Programming Freedom.

The purpose of the League is to oppose new monopolistic practices such as user-interface copyright and software patents; it calls for a return to the legal policies of the recent past, in which these practices were not allowed. The League is not concerned with free software as an issue, and not affiliated with the Free Software Foundation.

The League’s membership rolls include John McCarthy, inventor of Lisp, Marvin Minsky, founder of the Artificial Intelligence lab, Guy L. Steele, Jr., author of well-known books on Lisp and C, as well as Richard Stallman, the developer of GNU CC. Please join and add your name to the list. Membership dues in the League are $42 per year for programmers, managers and professionals; $10.50 for students; $21 for others.

The League needs both activist members and members who only pay their dues.

To join, or for more information, phone (617) 492-0023 or write to:

League for Programming Freedom
1 Kendall Square #143
P.O. Box 9171
Cambridge, MA 02139

You can also send electronic mail to league@prep.ai.mit.edu.

Here are some suggestions from the League for things you can do to protect your freedom to write programs:

Express your opinion! You can make a difference.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2 Installing GNU CC

Here is the procedure for installing GNU CC on a Unix system.

  1. If you have built GNU CC previously in the same directory for a different target machine, do ‘make cleanconfig’ to delete all files that might be invalid.
  2. On a Sequent system, go to the Berkeley universe.
  3. On a System V release 4 system, make sure ‘/usr/bin’ precedes ‘/usr/ucb’ in PATH. The cc command in ‘/usr/ucb’ uses libraries which have bugs.
  4. Specify the host and target machine configurations. You do this by running the file ‘configure’ with appropriate arguments.

    If you are building a compiler to produce code for the machine it runs on, specify just one machine type. To build a cross-compiler, specify two configurations, one for the host machine (which the compiler runs on), and one for the target machine (which the compiler produces code for). The command looks like this:

    configure --host=sun3-sunos3 --target=sparc-sun-sunos4.1
    

    A configuration name may be canonical or it may be more or less abbreviated.

    A canonical configuration name has three parts, separated by dashes. It looks like this: ‘cpu-company-system’. (The three parts may themselves contain dashes; ‘configure’ can figure out which dashes serve which purpose.) For example, ‘m68k-sun-sunos4.1’ specifies a Sun 3.

    You can also replace parts of the configuration by nicknames or aliases. For example, ‘sun3’ stands for ‘m68k-sun’, so ‘sun3-sunos4.1’ is another way to specify a Sun 3. You can also use simply ‘sun3-sunos’, since the version of Sunos is assumed by default to be version 4. ‘sun3-bsd’ also works, since ‘configure’ knows that the only BSD variant on a Sun 3 is Sunos.

    You can specify a version number after any of the system types, and some of the CPU types. In most cases, the version is irrelevant, and will be ignored. So you might as well specify the version if you know it.

    Here are the possible CPU types:

    a29k, arm, cn, hppa, i386, i860, m68000, m68k, m88k, mips, ns32k, romp, rs6000, sparc, vax.

    Note that the type hppa currently works only with Berkeley systems, not with HP/UX.

    Here are the recognized company names. As you can see, customary abbreviations are used rather than the longer official names.

    alliant, altos, apollo, att, convergent, convex, crds, dec, dg, encore, harris, hp, ibm, mips, motorola, ncr, next, ns, omron, sequent, sgi, sony, sun, tti, unicom.

    The company name is meaningful only to disambiguate when the rest of the information supplied is insufficient. You can omit it, writing just ‘cpu-system’, if it is not needed. For example, ‘vax-ultrix4.2’ is equivalent to ‘vax-dec-ultrix4.2’.

    Here is a list of system types:

    bsd, sysv, mach, minix, genix, ultrix, vms, sco, esix, isc, aix, sunos, hpux, unos, luna, dgux, newsos, osfrose, osf, dynix, aos, ctix.

    You can omit the system type; then ‘configure’ guesses the operating system from the CPU and company.

    Often a particular model of machine has a name. Many of these names are recognized as an alias for a CPU/company combination. The alias ‘sun3’, mentioned above, is an example of this: it stands for ‘m68k-sun’. Sometimes we accept a company name as a machine name, when the name is popularly used for a particular machine. Here is a table of the known machine names:

    3300, 3b1, 7300, altos3068, altos, apollo68, att-7300, balance, convex-cn, crds, decstation-3100, decstation-dec, decstation, delta, encore, gmicro, hp7nn, hp8nn, hp9k2nn, hp9k3nn, hp9k7nn, hp9k8nn, iris4d, iris, isi68, m3230, magnum, merlin, miniframe, mmax, news-3600, news800, news, next, pbd, pc532, pmax, ps2, risc-news, rtpc, sun2, sun386i, sun386, sun3, sun4, symmetry, tower-32, tower.

    If you specify an impossible combination such as ‘i860-dg-vms’, then you may get an error message from ‘configure’, or it may ignore part of the information and do the best it can with the rest. ‘configure’ always prints the canonical name for the alternative that it used.

    On certain systems, you must specify whether you want GNU CC to work with the usual compilation tools or with the GNU compilation tools (including GAS). Use the ‘--gas’ argument when you run ‘configure’, if you want to use the GNU tools. The systems were this makes a difference are ‘i386-anything-sysv’, ‘i860-anything-bsd’, ‘m68k-hp-hpux’, ‘m68k-sony-bsd’, ‘m68k-altos-sysv’, ‘m68000-hp-hpux’, and ‘m68000-att-sysv’. On any other system, ‘--gas’ has no effect.

    On certain systems, you must specify whether the machine has a floating point unit. These systems are ‘m68k-sun-sunosn’ and ‘m68k-isi-bsd’. On any other system, ‘--nfp’ currently has no effect, though perhaps there are other systems where it could usefully make a difference.

    If you want to install your own homemade configuration files, you can use ‘local’ as the company name to access them. If you use configuration ‘cpu-local’, the entire configuration name is used to form the configuration file names.

    Thus, if you specify ‘m68k-local’, then the files used are ‘m68k-local.md’, ‘m68k-local.h’, ‘m68k-local.c’, ‘xm-m68k-local.h’, ‘t-m68k-local’, and ‘x-m68k-local’.

    Here is a list of configurations that have special treatment:

    m68000-att

    AT&T 3b1, a.k.a. 7300 PC. Special procedures are needed to compile GNU CC with this machine’s standard C compiler, due to bugs in that compiler. See section Installing GNU CC on the 3b1. You can bootstrap it more easily with previous versions of GNU CC if you have them.

    m68000-hp-bsd

    HP 9000 series 200 running BSD. Note that the C compiler that comes with this system cannot compile GNU CC; contact law@super.org to get binaries of GNU CC for bootstrapping.

    m68k-altos

    Altos 3068. You must use the GNU assembler, linker and debugger, with COFF-encapsulation. Also, you must fix a kernel bug. Details in the file ‘ALTOS-README’.

    m68k-hp-hpux

    HP 9000 series 200 or 300 running HPUX. GNU CC does not support the special symbol table used by HP’s debugger, but you can debug programs with GDB if you specify ‘--gas’ to use the GNU tools instead. In order to use the GNU tools, you must install a library conversion program called hpxt.

    m68k-sun

    Sun 3. We do not provide a configuration file to use the Sun FPA by default, because programs that establish signal handlers for floating point traps inherently cannot work with the FPA.

    m88k-dgux

    Motorola m88k running DG/UX. To build native or cross compilers on DG/UX, you must first change to the 88open BCS software development environment. This is done by issuing this command:

    eval `sde-target m88kbcs`
    
    ns32k-encore

    Encore ns32000 system. Encore systems are supported only under BSD.

    ns32k-*-genix

    National Semiconductor ns32000 system. Genix has bugs in alloca and malloc; you must get the compiled versions of these from GNU Emacs.

    ns32k-utek

    UTEK ns32000 system (“merlin”). The C compiler that comes with this system cannot compile GNU CC; contact ‘tektronix!reed!mason’ to get binaries of GNU CC for bootstrapping.

    rs6000-ibm

    IBM PowerStation/6000 machines. Due to the nonstandard debugging information required for this machine, ‘-g’ is not available in this configuration.

    vax-dec-ultrix

    Don’t try compiling with Vax C (vcc). It produces incorrect code in some cases (for example, when alloca is used).

    Meanwhile, compiling ‘cp-parse.c’ with pcc does not work because of an internal table size limitation in that compiler. To avoid this problem, compile just the GNU C compiler first, and use it to recompile building all the languages that you want to run.

    Here we spell out what files will be set up by configure. Normally you need not be concerned with these files.

  5. Make sure the Bison parser generator is installed. (This is unnecessary if the Bison output files ‘c-parse.c’ and ‘cexp.c’ are more recent than ‘c-parse.y’ and ‘cexp.y’ and you do not plan to change the ‘.y’ files.)

    Bison versions older than Sept 8, 1988 will produce incorrect output for ‘c-parse.c’.

  6. Build the compiler. Just type ‘make LANGUAGES=c’ in the compiler directory.

    LANGUAGES=c’ specifies that only the C compiler should be compiled. The makefile normally builds compilers for all the supported languages; currently, C, C++ and Objective C. However, C is the only language that is sure to work when you build with other non-GNU C compilers. In addition, building anything but C at this stage is a waste of time.

    In general, you can specify the languages to build by typing the argument ‘LANGUAGES="list"’, where list is one or more words from the list ‘c’, ‘c++’, and ‘objective-c’.

    Ignore any warnings you may see about “statement not reached” in ‘insn-emit.c’; they are normal. Any other compilation errors may represent bugs in the port to your machine or operating system, and should be investigated and reported (see section Reporting Bugs).

    Some commercial compilers fail to compile GNU CC because they have bugs or limitations. For example, the Microsoft compiler is said to run out of macro space. Some Ultrix compilers run out of expression space; then you need to break up the statement where the problem happens.

  7. If you are using COFF-encapsulation, you must convert ‘libgcc.a’ to a GNU-format library at this point. See the file ‘README-ENCAP’ in the directory containing the GNU binary file utilities, for directions.
  8. Move the first-stage object files and executables into a subdirectory with this command:
    make stage1
    

    The files are moved into a subdirectory named ‘stage1’. Once installation is complete, you may wish to delete these files with rm -r stage1.

  9. Recompile the compiler with itself, with this command:
    make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
    

    This is called making the stage 2 compiler.

    The command shown above builds compilers for all the supported languages. If you don’t want them all, you can specify the languages to build by typing the argument ‘LANGUAGES="list"’. list should contain one or more words from the list ‘c’, ‘c++’, and ‘objective-c’, separated by spaces.

    On a 68000 or 68020 system lacking floating point hardware, unless you have selected a ‘tm.h’ file that expects by default that there is no such hardware, do this instead:

    make CC=stage1/gcc CFLAGS="-g -O -Bstage1/ -msoft-float"
    
  10. If you wish to test the compiler by compiling it with itself one more time, do this:
    make stage2
    make CC=stage2/gcc CFLAGS="-g -O -Bstage2/" 
    

    This is called making the stage 3 compiler. Aside from the ‘-B’ option, the options should be the same as when you made the stage 2 compiler.

    Then compare the latest object files with the stage 2 object files—they ought to be identical, unless they contain time stamps. On systems where object files do not contain time stamps, you can do this (in Bourne shell):

    for file in *.o; do
    cmp $file stage2/$file
    done
    

    This will mention any object files that differ between stage 2 and stage 3. Any difference, no matter how innocuous, indicates that the stage 2 compiler has compiled GNU CC incorrectly, and is therefore a potentially serious bug which you should investigate and report (see section Reporting Bugs).

    On systems that use COFF object files, bytes 5 to 8 will always be different, since it is a timestamp. On these systems, you can do the comparison as follows (in Bourne shell):

    for file in *.o; do
    tail +10c $file > foo1
    tail +10c stage2/$file > foo2
    cmp foo1 foo2 || echo $file
    done
    

    On MIPS machines, you need to use the shell script ‘ecoff-cmp’ to compare two object files if you have built the compiler with the ‘-mno-mips-tfile’ option. Thus, do this:

    for file in *.o; do
    ecoff-cmp $file stage2/$file
    done
    
  11. Install the compiler driver, the compiler’s passes and run-time support. You can use the following command:
    make CC=stage2/gcc install
    

    (Use the same value for CC that you used when compiling the files that are being installed.)

    This copies the files ‘cc1’, ‘cpp’ and ‘libgcc.a’ to files ‘cc1’, ‘cpp’ and ‘libgcc.a’ in directory ‘/usr/local/lib/gcc/target/version’, which is where the compiler driver program looks for them. Here target is the target machine type specified when you ran ‘configure’, and version is the version number of GNU CC. This naming scheme permits various versions and/or cross-compilers to coexist.

    It also copies the driver program ‘gcc’ into the directory ‘/usr/local/bin’, so that it appears in typical execution search paths.

    Warning: there is a bug in alloca in the Sun library. To avoid this bug, install the binaries of GNU CC that were compiled by GNU CC. They use alloca as a built-in function and never the one in the library.

  12. If you will be using C++ or Objective C, and your operating system does not handle constructors, then you must build and install the program collect2. Do this with the following command:
    make CC="stage2/gcc -O" install-collect2
    

    The systems that do handle constructors on their own include system V release 4, and system V release 3 on the Intel 386.

    Berkeley systems that use the “a.out” object file format handle constructors without collect2 if you use the GNU linker. But if you don’t use the GNU linker, then you need collect2 on these systems.

  13. Build and install protoize if you want it. Type
    make CC="stage2/gcc -O" install-proto
    

    There is as yet no documentation for protoize. Sorry.

  14. Correct errors in the header files on your machine.

    Various system header files often contain constructs which are incompatible with ANSI C, and they will not work when you compile programs with GNU CC. This behavior consists of substituting for macro argument names when they appear inside of character constants. The most common offender is ‘ioctl.h’.

    You can overcome this problem when you compile by specifying the ‘-traditional’ option.

    Alternatively, on Sun systems and 4.3BSD at least, you can correct the include files by running the shell script ‘fixincludes’. This installs modified, corrected copies of the files ‘ioctl.h’, ‘ttychars.h’ and many others, in a special directory where only GNU CC will normally look for them. This script will work on various systems because it chooses the files by searching all the system headers for the problem cases that we know about.

    Use the following command to do this:

    make install-fixincludes
    

    If you selected a different directory for GNU CC installation when you installed it, by specifying the Make variable prefix or libdir, specify it the same way in this command.

    Note that some systems are starting to come with ANSI C system header files. On these systems, don’t run ‘fixincludes’; it may not work, and is certainly not necessary.

If you cannot install the compiler’s passes and run-time support in ‘/usr/local/lib’, you can alternatively use the ‘-B’ option to specify a prefix by which they may be found. The compiler concatenates the prefix with the names ‘cpp’, ‘cc1’ and ‘libgcc.a’. Thus, you can put the files in a directory ‘/usr/foo/gcc’ and specify ‘-B/usr/foo/gcc/’ when you run GNU CC.

Also, you can specify an alternative default directory for these files by setting the Make variable libdir when you make GNU CC.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.1 Compilation in a Separate Directory

If you wish to build the object files and executables in a directory other than the one containing the source files, here is what you must do differently:

  1. Make sure you have a version of Make that supports the VPATH feature. (GNU Make supports it, as do Make versions on most BSD systems.)
  2. Go to that directory before running ‘configure’:
    mkdir gcc-sun3
    cd gcc-sun3
    

    On systems that do not support symbolic links, this directory must be on the same file system as the source code directory.

  3. Specify where to find ‘configure’ when you run it:
    ../gcc-2.00/configure …
    

    This also tells configure where to find the compiler sources; configure takes the directory from the file name that was used to invoke it. But if you want to be sure, you can specify the source directory with the ‘--srcdir’ option, like this:

    ../gcc-2.00/configure --srcdir=../gcc-2.00 sun3
    

    The directory you specify with ‘--srcdir’ need not be the same as the one that configure is found in.

Now, you can run make in that directory. You need not repeat the configuration steps shown above, when ordinary source files change. You must, however, run configure again when the configuration files change, if your system does not support symbolic links.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.2 Installing GNU CC on the Sun

Make sure the environment variable FLOAT_OPTION is not set when you compile ‘libgcc.a’. If this option were set to f68881 when ‘libgcc.a’ is compiled, the resulting code would demand to be linked with a special startup file and would not link properly without special pains.

There is a bug in alloca in certain versions of the Sun library. To avoid this bug, install the binaries of GNU CC that were compiled by GNU CC. They use alloca as a built-in function and never the one in the library.

Some versions of the Sun compiler crash when compiling GNU CC. The problem is a segmentation fault in cpp. This problem seems to be due to the bulk of data in the environment variables. You may be able to avoid it by using the following command to compile GNU CC with Sun CC:

make CC="TERMCAP=x OBJS=x LIBFUNCS=x STAGESTUFF=x cc"

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3 Installing GNU CC on the 3b1

Installing GNU CC on the 3b1 is difficult if you do not already have GNU CC running, due to bugs in the installed C compiler. However, the following procedure might work. We are unable to test it.

  1. Comment out the ‘#include "config.h"’ line on line 37 of ‘cccp.c’ and do ‘make cpp’. This makes a preliminary version of GNU cpp.
  2. Save the old ‘/lib/cpp’ and copy the preliminary GNU cpp to that file name.
  3. Undo your change in ‘cccp.c’, or reinstall the original version, and do ‘make cpp’ again.
  4. Copy this final version of GNU cpp into ‘/lib/cpp’.
  5. Replace every occurrence of obstack_free in the file ‘tree.c’ with _obstack_free.
  6. Run make to get the first-stage GNU CC.
  7. Reinstall the original version of ‘/lib/cpp’.
  8. Now you can compile GNU CC with itself and install it in the normal fashion.

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4 Installing GNU CC on SCO System V 3.2

The compiler that comes with this system does not work properly with ‘-O’. Therefore, you should redefine the Make variable CCLIBFLAGS not to use ‘-O’.

In addition, the compiler produces incorrect output when compiling parts of GNU CC; the resulting executable ‘cc1’ does not work properly when it is used with ‘-O’.

Therefore, what you must do after building the first stage is use GNU CC to compile itself without optimization. Here is how:

make -k cc1 CC="./gcc -B./"

You can think of this as “stage 1.1” of the installation process. However, using this command has the effect of discarding the faulty stage 1 executable for ‘cc1’ and replacing it with stage 1.1. You can then proceed with ‘make stage1’ and the rest of installation.

On Xenix, the same thing is necessary; in addition, you may have to remove ‘-g’ from the options used with cc, and you may have to simplify complicated statements in the sources of GNU CC to get them to compile.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.5 Installing GNU CC on Unos

Use ‘configure unos’ for building on Unos.

The Unos assembler is named casm instead of as. For some strange reason linking ‘/bin/as’ to ‘/bin/casm’ changes the behavior, and does not work. So, when installing GNU CC, you should install the following script as ‘as’ in the subdirectory where the passes of GCC are installed:

#!/bin/sh
casm $*

The default Unos library is named ‘libunos.a’ instead of ‘libc.a’. To allow GNU CC to function, either change all references to ‘-lc’ in ‘gcc.c’ to ‘-lunos’ or link ‘/lib/libc.a’ to ‘/lib/libunos.a’.

When compiling GNU CC with the standard compiler, to overcome bugs in the support of alloca, do not use ‘-O’ when making stage 2. Then use the stage 2 compiler with ‘-O’ to make the stage 3 compiler. This compiler will have the same characteristics as the usual stage 2 compiler on other systems. Use it to make a stage 4 compiler and compare that with stage 3 to verify proper compilation.

Unos uses memory segmentation instead of demand paging, so you will need a lot of memory. 5 Mb is barely enough if no other tasks are running. If linking ‘cc1’ fails, try putting the object files into a library and linking from that library.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.6 Installing GNU CC on VMS

The VMS version of GNU CC is distributed in a backup saveset containing both source code and precompiled binaries.

To install the ‘gcc’ command so you can use the compiler easily, in the same manner as you use the VMS C compiler, you must install the VMS CLD file for GNU CC as follows:

  1. Define the VMS logical names ‘GNU_CC’ and ‘GNU_CC_INCLUDE’ to point to the directories where the GNU CC executables (‘gcc-cpp’, ‘gcc-cc1’, etc.) and the C include files are kept. This should be done with the commands:
    $ assign /super /system disk:[gcc.] gnu_cc
    $ assign /super /system disk:[gcc.include.] gnu_cc_include
    

    with the appropriate disk and directory names. These commands can be placed in your system startup file so they will be executed whenever the machine is rebooted. You may, if you choose, do this via the ‘GCC_INSTALL.COM’ script in the ‘[GCC]’ directory.

  2. Install the ‘GCC’ command with the command line:
    $ set command /table=sys$library:dcltables gnu_cc:[000000]gcc
    
  3. To install the help file, do the following:
    $ lib/help sys$library:helplib.hlb gcc.hlp
    

    Now you can invoke the compiler with a command like ‘gcc /verbose file.c’, which is equivalent to the command ‘gcc -v -c file.c’ in Unix.

If you wish to use GNU C++ you must first install GNU CC, and then perform the following steps:

  1. Define the VMS logical name ‘GNU_GXX_INCLUDE’ to point to the directory where the preprocessor will search for the C++ header files. This can be done with the command:
    $ assign /super /system disk:[gcc.gxx_include.] gnu_gxx_include
    

    with the appropriate disk and directory name. If you are going to be using libg++, you should place the libg++ header files in the directory that this logical name points to.

  2. Obtain the file ‘gcc-cc1plus.exe’, and place this in the same directory that ‘gcc-cc1.exe’ is kept.
  3. You will need several library functions which are used to call the constructors and destructors for global objects. These functions are part of the libg++ distribution, and you will automatically get them if you install libg++.

    If you are not planning to install libg++, you will need to obtain the files ‘gxx-startup-1.mar’ and ‘gstart.cc’ from the libg++ distribution, compile them, and supply them to the linker whenever you link a C++ program.

    The GNU C++ compiler can be invoked with a command like ‘gcc /plus /verbose file.cc’, which is equivalent to the command ‘g++ -v -c file.cc’ in Unix.

We try to put corresponding binaries and sources on the VMS distribution tape. But sometimes the binaries will be from an older version that the sources, because we don’t always have time to update them. (Use the ‘/version’ option to determine the version number of the binaries and compare it with the source file ‘version.c’ to tell whether this is so.) In this case, you should use the binaries you get to recompile the sources. If you must recompile, here is how:

  1. Copy the file ‘vms.h’ to ‘tm.h’, ‘xm-vms.h’ to ‘config.h’, ‘vax.md’ to ‘md.’ and ‘vax.c’ to ‘aux-output.c’. The files to be copied are found in the subdirectory named ‘config’; they should be copied to the main directory of GNU CC. If you wish, you may use the command file ‘config-gcc.com’ to perform these steps for you.
  2. Setup the logical names and command tables as defined above. In addition, define the VMS logical name ‘GNU_BISON’ to point at the to the directories where the Bison executable is kept. This should be done with the command:
    $ assign /super /system disk:[bison.] gnu_bison
    

    You may, if you choose, use the ‘INSTALL_BISON.COM’ script in the ‘[BISON]’ directory.

  3. Install the ‘BISON’ command with the command line:
    $ set command /table=sys$library:dcltables gnu_bison:[000000]bison
    
  4. Type ‘@make-gcc’ to recompile everything (alternatively, you may submit the file ‘make-gcc.com’ to a batch queue). If you wish to build the GNU C++ compiler as well as the GNU CC compiler, you must first edit ‘make-gcc.com’ and follow the instructions that appear in the comments.

    If you are building GNU CC with a previous version of GNU CC, you also should check to see that you have the newest version of the assembler. In particular, GNU CC version 2 treats global constant variables slightly differently from GNU CC version 1, and GAS version 1.38.1 does not have the patches required to work with GCC version 2. If you use GAS 1.38.1, then extern const variables will not have the read-only bit set, and the linker will generate warning messages about mismatched psect attributes for these variables. These warning messages are merely a nuisance, and can safely be ignored.

    If you are compiling with a version of GNU CC older than 1.33, specify ‘/DEFINE=("inline=")’ as an option in all the compilations. This requires editing all the gcc commands in ‘make-cc1.com’. (The older versions had problems supporting inline.) Once you have a working 1.33 or newer GNU CC, you can change this file back.

Under previous versions of GNU CC, the generated code would occasionally give strange results when linked to the sharable ‘VAXCRTL’ library. Now this should work.

Even with this version, however, GNU CC itself should not be linked to the sharable ‘VAXCRTL’. The qsort routine supplied with ‘VAXCRTL’ has a bug which can cause a compiler crash.

Similarly, the preprocessor should not be linked to the sharable ‘VAXCRTL’. The strncat routine supplied with ‘VAXCRTL’ has a bug which can cause the preprocessor to go into an infinite loop.

If you attempt to link to the sharable ‘VAXCRTL’, the VMS linker will strongly resist any effort to force it to use the qsort and strncat routines from ‘gcclib’. Until the bugs in ‘VAXCRTL’ have been fixed, linking any of the compiler components to the sharable VAXCRTL is not recommended. (These routines can be bypassed by placing duplicate copies of qsort and strncat in ‘gcclib’ under different names, and patching the compiler sources to use these routines). Both of the bugs in ‘VAXCRTL’ are still present in VMS version 5.4-1, which is the most recent version as of this writing.

The executables that are generated by ‘make-cc1.com’ and ‘make-cccp.com’ use the nonshared version of ‘VAXCRTL’ (and thus use the qsort and strncat routines from ‘gcclib.olb’).


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3 Known Causes of Trouble with GNU CC

Here are some of the things that have caused trouble for people installing or using GNU CC.

For additional common problems, see Incompatibilities of GNU CC.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4 How To Get Help with GNU CC

If you need help installing, using or changing GNU CC, there are two ways to find it:


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5 Incompatibilities of GNU CC

There are several noteworthy incompatibilities between GNU C and most existing (non-ANSI) versions of C. The ‘-traditional’ option eliminates most of these incompatibilities, but not all, by telling GNU C to behave like the other C compilers.

There are also system-specific incompatibilities.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6 Reporting Bugs

Your bug reports play an essential role in making GNU CC reliable.

When you encounter a problem, the first thing to do is to see if it is already known. See section Known Causes of Trouble with GNU CC. Also look in Incompatibilities of GNU CC. If it isn’t known, then you should report the problem.

Reporting a bug may help you by bringing a solution to your problem, or it may not. (If it does not, look in the service directory; see How To Get Help with GNU CC.) In any case, the principal function of a bug report is to help the entire community by making the next version of GNU CC work better. Bug reports are your contribution to the maintenance of GNU CC.

In order for a bug report to serve its purpose, you must include the information that makes for fixing the bug.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1 Have You Found a Bug?

If you are not sure whether you have found a bug, here are some guidelines:


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.2 How to Report Bugs

Send bug reports for GNU C to one of these addresses:

bug-gcc@prep.ai.mit.edu
{ucbvax|mit-eddie|uunet}!prep.ai.mit.edu!bug-gcc

Do not send bug reports to ‘help-gcc’, or to the newsgroup ‘gnu.gcc.help’. Most users of GNU CC do not want to receive bug reports. Those that do, have asked to be on ‘bug-gcc’.

The mailing list ‘bug-gcc’ has a newsgroup which serves as a repeater. The mailing list and the newsgroup carry exactly the same messages. Often people think of posting bug reports to the newsgroup instead of mailing them. This appears to work, but it has one problem which can be crucial: a newsgroup posting does not contain a mail path back to the sender. Thus, if I need to ask for more information, I may be unable to reach you. For this reason, it is better to send bug reports to the mailing list.

As a last resort, send bug reports on paper to:

GNU Compiler Bugs
Free Software Foundation
675 Mass Ave
Cambridge, MA 02139

The fundamental principle of reporting bugs usefully is this: report all the facts. If you are not sure whether to state a fact or leave it out, state it!

Often people omit facts because they think they know what causes the problem and they conclude that some details don’t matter. Thus, you might assume that the name of the variable you use in an example does not matter. Well, probably it doesn’t, but one cannot be sure. Perhaps the bug is a stray memory reference which happens to fetch from the location where that name is stored in memory; perhaps, if the name were different, the contents of that location would fool the compiler into doing the right thing despite the bug. Play it safe and give a specific, complete example. That is the easiest thing for you to do, and the most helpful.

Keep in mind that the purpose of a bug report is to enable me to fix the bug if it is not known. It isn’t very important what happens if the bug is already known. Therefore, always write your bug reports on the assumption that the bug is not known.

Sometimes people give a few sketchy facts and ask, “Does this ring a bell?” Those bug reports are useless, and I urge everyone to refuse to respond to them except to chide the sender to report bugs properly.

To enable me to fix the bug, you should include all these things:

Here are some things that are not necessary:


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.3 Certain Changes We Don’t Want to Make

This section lists changes that people frequently request, but which we do not make because we think GNU CC is better without them.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7 Using GNU CC on VMS


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.1 Include Files and VMS

Due to the differences between the filesystems of Unix and VMS, GNU CC attempts to translate file names in ‘#include’ into names that VMS will understand. The basic strategy is to prepend a prefix to the specification of the include file, convert the whole filename to a VMS filename, and then try to open the file. GNU CC tries various prefixes one by one until one of them succeeds:

  1. The first prefix is the ‘GNU_CC_INCLUDE:’ logical name: this is where GNU C header files are traditionally stored. If you wish to store header files in non-standard locations, then you can assign the logical ‘GNU_CC_INCLUDE’ to be a search list, where each element of the list is suitable for use with a rooted logical.
  2. The next prefix tried is ‘SYS$SYSROOT:[SYSLIB.]’. This is where VAX-C header files are traditionally stored.
  3. If the include file specification by itself is a valid VMS filename, the preprocessor then uses this name with no prefix in an attempt to open the include file.
  4. If the file specification is not a valid VMS filename (i.e. does not contain a device or a directory specifier, and contains a ‘/’ character), the preprocessor tries to convert it from Unix syntax to VMS syntax.

    Conversion works like this: the first directory name becomes a device, and the rest of the directories are converted into VMS-format directory names. For example, ‘X11/foobar.h’ is translated to ‘X11:[000000]foobar.h’ or ‘X11:foobar.h’, whichever one can be opened. This strategy allows you to assign a logical name to point to the actual location of the header files.

  5. If none of these strategies succeeds, the ‘#include’ fails.

Include directives of the form:

#include foobar

are a common source of incompatibility between VAX-C and GNU CC. VAX-C treats this much like a standard #include <foobar.h> directive. That is incompatible with the ANSI C behavior implemented by GNU CC: to expand the name foobar as a macro. Macro expansion should eventually yield one of the two standard formats for #include:

#include "file"
#include <file>

If you have this problem, the best solution is to modify the source to convert the #include directives to one of the two standard forms. That will work with either compiler. If you want a quick and dirty fix, define the file names as macros with the proper expansion, like this:

#define stdio <stdio.h>

This will work, as long as the name doesn’t conflict with anything else in the program.

Another source of incompatibility is that VAX-C assumes that:

#include "foobar"

is actually asking for the file ‘foobar.h’. GNU CC does not make this assumption, and instead takes what you ask for literally; it tries to read the file ‘foobar’. The best way to avoid this problem is to always specify the desired file extension in your include directives.

GNU CC for VMS is distributed with a set of include files that is sufficient to compile most general purpose programs. Even though the GNU CC distribution does not contain header files to define constants and structures for some VMS system-specific functions, there is no reason why you cannot use GNU CC with any of these functions. You first may have to generate or create header files, either by using the public domain utility UNSDL (which can be found on a DECUS tape), or by extracting the relevant modules from one of the system macro libraries, and using an editor to construct a C header file.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.2 Global Declarations and VMS

GNU CC does not provide the globalref, globaldef and globalvalue keywords of VAX-C. You can get the same effect with an obscure feature of GAS, the GNU assembler. (This requires GAS version 1.39 or later.) The following macros allow you to use this feature in a fairly natural way:

#ifdef __GNUC__
#define GLOBALREF(NAME) \
        NAME asm("_$$PsectAttributes_GLOBALSYMBOL$$" #NAME  )
#define GLOBALDEF(NAME,VALUE) \
        NAME asm("_$$PsectAttributes_GLOBALSYMBOL$$" #NAME  ) = VALUE
#define GLOBALVALUEREF(NAME) \
  const NAME [1] asm("_$$PsectAttributes_GLOBALVALUE$$" #NAME  )
#define GLOBALVALUEDEF(NAME,VALUE) \
  const NAME [1] asm("_$$PsectAttributes_GLOBALVALUE$$" #NAME  ) = {VALUE}
#else
#define GLOBALREF(NAME) globalref NAME
#define GLOBALDEF(NAME,VALUE) globaldef NAME = VALUE
#define GLOBALVALUEDEF(NAME,VALUE) globalvalue NAME = VALUE
#define GLOBALVALUEREF(NAME) globalvalue NAME
#endif

(The _$$PsectAttributes_GLOBALSYMBOL prefix at the start of the name is removed by the assembler, after it has modified the attributes of the symbol). These macros are provided in the VMS binaries distribution in a header file ‘GNU_HACKS.H’. An example of the usage is:

int GLOBALREF (ijk);
int GLOBALDEF (jkl, 0);

The macros GLOBALREF and GLOBALDEF cannot be used straightforwardly for arrays, since there is no way to insert the array dimension into the declaration at the right place. However, you can declare an array with these macros if you first define a typedef for the array type, like this:

typedef int intvector[10];
intvector GLOBALREF (foo);

Array and structure initializers will also break the macros; you can define the initializer to be a macro of its own, or you can expand the GLOBALDEF macro by hand. You may find a case where you wish to use the GLOBALDEF macro with a large array, but you are not interested in explicitly initializing each element of the array. In such cases you can use an initializer like: {0,}, which will initialize the entire array to 0.

A shortcoming of this implementation is that a variable declared with GLOBALVALUEREF or GLOBALVALUEDEF is always an array. For example, the declaration:

int GLOBALVALUEREF(ijk);

declares the variable ijk as an array of type int [1]. This is done because a globalvalue is actually a constant; its “value” is what the linker would normally consider an address. That is not how an integer value works in C, but it is how an array works. So treating the symbol as an array name gives consistent results—with the exception that the value seems to have the wrong type. Don’t try to access an element of the array. It doesn’t have any elements. The array “address” may not be the address of actual storage.

The fact that the symbol is an array may lead to warnings where the variable is used. Insert type casts to avoid the warnings. Here is an example; it takes advantage of the ANSI C feature allowing macros that expand to use the same name as the macro itself.

int GLOBALVALUEREF (ss$_normal);
int GLOBALVALUEDEF (xyzzy,123);
#ifdef __GNUC__
#define ss$_normal ((int) ss$_normal)
#define xyzzy ((int) xyzzy)
#endif

Don’t use globaldef or globalref with a variable whose type is an enumeration type; this is not implemented. Instead, make the variable an integer, and use a globalvaluedef for each of the enumeration values. An example of this would be:

#ifdef __GNUC__
int GLOBALDEF (color, 0);
int GLOBALVALUEDEF (RED, 0);
int GLOBALVALUEDEF (BLUE, 1);
int GLOBALVALUEDEF (GREEN, 3);
#else
enum globaldef color {RED, BLUE, GREEN = 3};
#endif

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.3 Other VMS Issues

GNU CC automatically arranges for main to return 1 by default if you fail to specify an explicit return value. This will be interpreted by VMS as a status code indicating a normal successful completion. Version 1 of GNU CC did not provide this default.

GNU CC on VMS works only with the GNU assembler, GAS. You need version 1.37 or later of GAS in order to produce value debugging information for the VMS debugger. Use the ordinary VMS linker with the object files produced by GAS.

Under previous versions of GNU CC, the generated code would occasionally give strange results when linked to the sharable ‘VAXCRTL’ library. Now this should work.

A caveat for use of const global variables: the const modifier must be specified in every external declaration of the variable in all of the source files that use that variable. Otherwise the linker will issue warnings about conflicting attributes for the variable. Your program will still work despite the warnings, but the variable will be placed in writable storage.

The VMS linker does not distinguish between upper and lower case letters in function and variable names. However, usual practice in C is to distinguish case. Normally GNU CC (by means of the assembler GAS) implements usual C behavior by augmenting each name that is not all lower-case. A name is augmented by truncating it to at most 23 characters and then adding more characters at the end which encode the case pattern the rest.

Name augmentation yields bad results for programs that use precompiled libraries (such as Xlib) which were generated by another compiler. You can use the compiler option ‘/NOCASE_HACK’ to inhibit augmentation; it makes external C functions and variables case-independent as is usual on VMS. Alternatively, you could write all references to the functions and variables in such libraries using lower case; this will work on VMS, but is not portable to other systems.

Function and variable names are handled somewhat differently with GNU C++. The GNU C++ compiler performs name mangling on function names, which means that it adds information to the function name to describe the data types of the arguments that the function takes. One result of this is that the name of a function can become very long. Since the VMS linker only recognizes the first 31 characters in a name, special action is taken to ensure that each function and variable has a unique name that can be represented in 31 characters.

If the name (plus a name augmentation, if required) is less than 32 characters in length, then no special action is performed. If the name is longer than 31 characters, the assembler (GAS) will generate a hash string based upon the function name, truncate the function name to 23 characters, and append the hash string to the truncated name. If the ‘/VERBOSE’ compiler option is used, the assembler will print both the full and truncated names of each symbol that is truncated.

The ‘/NOCASE_HACK’ compiler option should not be used when you are compiling programs that use libg++. libg++ has several instances of objects (i.e. Filebuf and filebuf) which become indistinguishable in a case-insensitive environment. This leads to cases where you need to inhibit augmentation selectively (if you were using libg++ and Xlib in the same program, for example). There is no special feature for doing this, but you can get the result by defining a macro for each mixed case symbol for which you wish to inhibit augmentation. The macro should expand into the lower case equivalent of itself. For example:

#define StuDlyCapS studlycaps

These macro definitions can be placed in a header file to minimize the number of changes to your source code.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8 GNU CC and Portability

The main goal of GNU CC was to make a good, fast compiler for machines in the class that the GNU system aims to run on: 32-bit machines that address 8-bit bytes and have several general registers. Elegance, theoretical power and simplicity are only secondary.

GNU CC gets most of the information about the target machine from a machine description which gives an algebraic formula for each of the machine’s instructions. This is a very clean way to describe the target. But when the compiler needs information that is difficult to express in this fashion, I have not hesitated to define an ad-hoc parameter to the machine description. The purpose of portability is to reduce the total work needed on the compiler; it was not of interest for its own sake.

GNU CC does not contain machine dependent code, but it does contain code that depends on machine parameters such as endianness (whether the most significant byte has the highest or lowest address of the bytes in a word) and the availability of autoincrement addressing. In the RTL-generation pass, it is often necessary to have multiple strategies for generating code for a particular kind of syntax tree, strategies that are usable for different combinations of parameters. Often I have not tried to address all possible cases, but only the common ones or only the ones that I have encountered. As a result, a new target may require additional strategies. You will know if this happens because the compiler will call abort. Fortunately, the new strategies can be added in a machine-independent fashion, and will affect only the target machines that need them.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9 Interfacing to GNU CC Output

GNU CC is normally configured to use the same function calling convention normally in use on the target system. This is done with the machine-description macros described (@pxref{Machine Macros}).

However, returning of structure and union values is done differently on some target machines. As a result, functions compiled with PCC returning such types cannot be called from code compiled with GNU CC, and vice versa. This does not cause trouble often because few Unix library routines return structures or unions.

GNU CC code returns structures and unions that are 1, 2, 4 or 8 bytes long in the same registers used for int or double return values. (GNU CC typically allocates variables of such types in registers also.) Structures and unions of other sizes are returned by storing them into an address passed by the caller (usually in a register). The machine-description macros STRUCT_VALUE and STRUCT_INCOMING_VALUE tell GNU CC where to pass this address.

By contrast, PCC on most target machines returns structures and unions of any size by copying the data into an area of static storage, and then returning the address of that storage as if it were a pointer value. The caller must copy the data from that memory area to the place where the value is wanted. This is slower than the method used by GNU CC, and fails to be reentrant.

On some target machines, such as RISC machines and the 80386, the standard system convention is to pass to the subroutine the address of where to return the value. On these machines, GNU CC has been configured to be compatible with the standard compiler, when this method is used. It may not be compatible for structures of 1, 2, 4 or 8 bytes.

GNU CC uses the system’s standard convention for passing arguments. On some machines, the first few arguments are passed in registers; in others, all are passed on the stack. It would be possible to use registers for argument passing on any machine, and this would probably result in a significant speedup. But the result would be complete incompatibility with code that follows the standard convention. So this change is practical only if you are switching to GNU CC as the sole C compiler for the system. We may implement register argument passing on certain machines once we have a complete GNU system so that we can compile the libraries with GNU CC.

On some machines (particularly the Sparc), certain types of arguments are passed “by invisible reference”. This means that the value is stored in memory, and the address of the memory location is passed to the subroutine.

If you use longjmp, beware of automatic variables. ANSI C says that automatic variables that are not declared volatile have undefined values after a longjmp. And this is all GNU CC promises to do, because it is very difficult to restore register variables correctly, and one of GNU CC’s features is that it can put variables in registers without your asking it to.

If you want a variable to be unaltered by longjmp, and you don’t want to write volatile because old C compilers don’t accept it, just take the address of the variable. If a variable’s address is ever taken, even if just to compute it and ignore it, then the variable cannot go in a register:

{
  int careful;
  &careful;
  …
}

Code compiled with GNU CC may call certain library routines. Most of them handle arithmetic for which there are no instructions. This includes multiply and divide on some machines, and floating point operations on any machine for which floating point support is disabled with ‘-msoft-float’. Some standard parts of the C library, such as bcopy or memcpy, are also called automatically. The usual function call interface is used for calling the library routines.

These library routines should be defined in the library ‘libgcc.a’, which GNU CC automatically searches whenever it links a program. On machines that have multiply and divide instructions, if hardware floating point is in use, normally ‘libgcc.a’ is not needed, but it is searched just in case.

Each arithmetic function is defined in ‘libgcc1.c’ to use the corresponding C arithmetic operator. As long as the file is compiled with another C compiler, which supports all the C arithmetic operators, this file will work portably. However, ‘libgcc1.c’ does not work if compiled with GNU CC, because each arithmetic function would compile into a call to itself!


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10 Passes and Files of the Compiler

The overall control structure of the compiler is in ‘toplev.c’. This file is responsible for initialization, decoding arguments, opening and closing files, and sequencing the passes.

The parsing pass is invoked only once, to parse the entire input. The RTL intermediate code for a function is generated as the function is parsed, a statement at a time. Each statement is read in as a syntax tree and then converted to RTL; then the storage for the tree for the statement is reclaimed. Storage for types (and the expressions for their sizes), declarations, and a representation of the binding contours and how they nest, remain until the function is finished being compiled; these are all needed to output the debugging information.

Each time the parsing pass reads a complete function definition or top-level declaration, it calls the function rest_of_compilation or rest_of_decl_compilation in ‘toplev.c’, which are responsible for all further processing necessary, ending with output of the assembler language. All other compiler passes run, in sequence, within rest_of_compilation. When that function returns from compiling a function definition, the storage used for that function definition’s compilation is entirely freed, unless it is an inline function (@pxref{Inline}).

Here is a list of all the passes of the compiler and their source files. Also included is a description of where debugging dumps can be requested with ‘-d’ options.

Some additional files are used by all or many passes:


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11 The Configuration File

The configuration file ‘xm-machine.h’ contains macro definitions that describe the machine and system on which the compiler is running, unlike the definitions in ‘machine.h’, which describe the machine for which the compiler is producing output. Most of the values in ‘xm-machine.h’ are actually the same on all machines that GNU CC runs on, so large parts of all configuration files are identical. But there are some macros that vary:

USG

Define this macro if the host system is System V.

VMS

Define this macro if the host system is VMS.

FAILURE_EXIT_CODE

A C expression for the status code to be returned when the compiler exits after serious errors.

SUCCESS_EXIT_CODE

A C expression for the status code to be returned when the compiler exits without serious errors.

HOST_WORDS_BIG_ENDIAN

Defined if the host machine stores words of multi-word values in big-endian order. (GNU CC does not depend on the host byte ordering within a word.)

HOST_FLOAT_FORMAT

A numeric code distinguishing the floating point format for the host machine. See TARGET_FLOAT_FORMAT in @ref{Storage Layout} for the alternatives and default.

HOST_BITS_PER_CHAR

A C expression for the number of bits in char on the host machine.

HOST_BITS_PER_SHORT

A C expression for the number of bits in short on the host machine.

HOST_BITS_PER_INT

A C expression for the number of bits in int on the host machine.

HOST_BITS_PER_LONG

A C expression for the number of bits in long on the host machine.

ONLY_INT_FIELDS

Define this macro to indicate that the host compiler only supports int bit fields, rather than other integral types, including enum, as do most C compilers.

EXECUTABLE_SUFFIX

Define this macro if the host system uses a naming convention for executable files that involves a common suffix (such as, in some systems, ‘.exe’) that must be mentioned explicitly when you run the program.

OBSTACK_CHUNK_SIZE

A C expression for the size of ordinary obstack chunks. If you don’t define this, a usually-reasonable default is used.

OBSTACK_CHUNK_ALLOC

The function used to allocate obstack chunks. If you don’t define this, xmalloc is used.

OBSTACK_CHUNK_FREE

The function used to free obstack chunks. If you don’t define this, free is used.

USE_C_ALLOCA

Define this macro to indicate that the compiler is running with the alloca implemented in C. This version of alloca can be found in the file ‘alloca.c’; to use it, you must also alter the ‘Makefile’ variable ALLOCA. (This is done automatically for the systems on which we know it is needed.)

If you do define this macro, you should probably do it as follows:

#ifndef __GNUC__
#define USE_C_ALLOCA
#else
#define alloca __builtin_alloca
#endif

so that when the compiler is compiled with GNU CC it uses the more efficient built-in alloca function.

FUNCTION_CONVERSION_BUG

Define this macro to indicate that the host compiler does not properly handle converting a function value to a pointer-to-function when it is used in an expression.

In addition, configuration files for system V define bcopy, bzero and bcmp as aliases. Some files define alloca as a macro when compiled with GNU CC, in order to take advantage of the benefit of GNU CC’s built-in alloca.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Index

Jump to:   '   3  
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   R   S   T   U   V   W   X  
Index Entry  Section

 5 Incompatibilities of GNU CC

3
3b1 installation 2.3 Installing GNU CC on the 3b1

A
abort 8 GNU CC and Portability
Alliant 5 Incompatibilities of GNU CC
alloca and SunOs 2 Installing GNU CC
alloca, for SunOs 2.2 Installing GNU CC on the Sun
alloca, for Unos 2.5 Installing GNU CC on Unos
analysis, data flow 10 Passes and Files of the Compiler
apostrophes 5 Incompatibilities of GNU CC
argument passing 9 Interfacing to GNU CC Output
arithmetic libraries 9 Interfacing to GNU CC Output
arithmetic simplifications 10 Passes and Files of the Compiler
assembly code, invalid 6.1 Have You Found a Bug?
autoincrement addressing, availability 8 GNU CC and Portability
autoincrement/decrement analysis 10 Passes and Files of the Compiler

B
backtrace for bug reports 6.2 How to Report Bugs
basic blocks 10 Passes and Files of the Compiler
bcmp 11 The Configuration File
Bison parser generator 2 Installing GNU CC
bug criteria 6.1 Have You Found a Bug?
bug reports 6.2 How to Report Bugs
bugs 6 Reporting Bugs
bugs, known 3 Known Causes of Trouble with GNU CC
bzero 11 The Configuration File

C
case sensitivity and VMS 7.3 Other VMS Issues
code motion 10 Passes and Files of the Compiler
common subexpression elimination 10 Passes and Files of the Compiler
compilation in a separate directory 2.1 Compilation in a Separate Directory
compiler bugs, reporting 6.2 How to Report Bugs
compiler passes and files 10 Passes and Files of the Compiler
configuration file 11 The Configuration File
conflicting types 3 Known Causes of Trouble with GNU CC
constant folding 10 Passes and Files of the Compiler
constant propagation 10 Passes and Files of the Compiler
contributors Contributors to GNU CC
conventions, run-time 9 Interfacing to GNU CC Output
core dump 6.1 Have You Found a Bug?
cross-jumping 10 Passes and Files of the Compiler

D
data flow analysis 10 Passes and Files of the Compiler
DBX 5 Incompatibilities of GNU CC
dead code 10 Passes and Files of the Compiler
debugging information generation 10 Passes and Files of the Compiler
debug_rtx 6.2 How to Report Bugs
declaration scope 5 Incompatibilities of GNU CC
delayed branch scheduling 10 Passes and Files of the Compiler

E
endianness 8 GNU CC and Portability
EXECUTABLE_SUFFIX 11 The Configuration File
exit status and VMS 7.3 Other VMS Issues
external declaration scope 5 Incompatibilities of GNU CC

F
FAILURE_EXIT_CODE 11 The Configuration File
fatal signal 6.1 Have You Found a Bug?
files and passes of the compiler 10 Passes and Files of the Compiler
final pass 10 Passes and Files of the Compiler
float as function value type 5 Incompatibilities of GNU CC
fscanf, and constant strings 5 Incompatibilities of GNU CC
function call conventions 9 Interfacing to GNU CC Output
FUNCTION_CONVERSION_BUG 11 The Configuration File

G
gencodes 10 Passes and Files of the Compiler
genconfig 10 Passes and Files of the Compiler
genflags 10 Passes and Files of the Compiler
genflags, crash on Sun 4 3 Known Causes of Trouble with GNU CC
global register allocation 10 Passes and Files of the Compiler
GLOBALDEF 7.2 Global Declarations and VMS
GLOBALREF 7.2 Global Declarations and VMS
GLOBALVALUEDEF 7.2 Global Declarations and VMS
GLOBALVALUEREF 7.2 Global Declarations and VMS
GNU CC and portability 8 GNU CC and Portability

H
header files and VMS 7.1 Include Files and VMS
HOST_BITS_PER_CHAR 11 The Configuration File
HOST_BITS_PER_INT 11 The Configuration File
HOST_BITS_PER_LONG 11 The Configuration File
HOST_BITS_PER_SHORT 11 The Configuration File
HOST_FLOAT_FORMAT 11 The Configuration File
HOST_WORDS_BIG_ENDIAN 11 The Configuration File

I
IBM RT PC 5 Incompatibilities of GNU CC
include files and VMS 7.1 Include Files and VMS
incompatibilities of GNU CC 5 Incompatibilities of GNU CC
increment operators 6.1 Have You Found a Bug?
inline, automatic 10 Passes and Files of the Compiler
installation on SCO systems 2.4 Installing GNU CC on SCO System V 3.2
installation trouble 3 Known Causes of Trouble with GNU CC
installing GNU CC 2 Installing GNU CC
installing GNU CC on the 3b1 2.3 Installing GNU CC on the 3b1
installing GNU CC on the Sun 2.2 Installing GNU CC on the Sun
installing GNU CC on Unos 2.5 Installing GNU CC on Unos
installing GNU CC on VMS 2.6 Installing GNU CC on VMS
instruction combination 10 Passes and Files of the Compiler
instruction recognizer 10 Passes and Files of the Compiler
instruction scheduling 10 Passes and Files of the Compiler
instruction scheduling 10 Passes and Files of the Compiler
interfacing to GNU CC output 9 Interfacing to GNU CC Output
invalid assembly code 6.1 Have You Found a Bug?
invalid input 6.1 Have You Found a Bug?

J
jump optimization 10 Passes and Files of the Compiler
jump threading 10 Passes and Files of the Compiler

K
known causes of trouble 3 Known Causes of Trouble with GNU CC

L
local register allocation 10 Passes and Files of the Compiler
longjmp and automatic variables 9 Interfacing to GNU CC Output
longjmp incompatibilities 5 Incompatibilities of GNU CC
loop optimization 10 Passes and Files of the Compiler

M
main and the exit status 7.3 Other VMS Issues
math libraries 9 Interfacing to GNU CC Output
mktemp, and constant strings 5 Incompatibilities of GNU CC

N
name augmentation 7.3 Other VMS Issues
no-op move instructions 10 Passes and Files of the Compiler

O
OBSTACK_CHUNK_ALLOC 11 The Configuration File
OBSTACK_CHUNK_FREE 11 The Configuration File
OBSTACK_CHUNK_SIZE 11 The Configuration File
obstack_free 2.3 Installing GNU CC on the 3b1
ONLY_INT_FIELDS 11 The Configuration File
other directory, compilation in 2.1 Compilation in a Separate Directory

P
parser generator, Bison 2 Installing GNU CC
parsing pass 10 Passes and Files of the Compiler
passes and files of the compiler 10 Passes and Files of the Compiler
passing arguments 9 Interfacing to GNU CC Output
peephole optimization 10 Passes and Files of the Compiler
portability 8 GNU CC and Portability
promotion of formal parameters 3 Known Causes of Trouble with GNU CC

R
read-only strings 5 Incompatibilities of GNU CC
register allocation 10 Passes and Files of the Compiler
register allocation, stupid 10 Passes and Files of the Compiler
register class preference pass 10 Passes and Files of the Compiler
register use analysis 10 Passes and Files of the Compiler
register-to-stack conversion 10 Passes and Files of the Compiler
reloading 10 Passes and Files of the Compiler
reporting bugs 6 Reporting Bugs
rest_of_compilation 10 Passes and Files of the Compiler
rest_of_decl_compilation 10 Passes and Files of the Compiler
return value of main 7.3 Other VMS Issues
returning structures and unions 9 Interfacing to GNU CC Output
RT PC 5 Incompatibilities of GNU CC
RTL generation 10 Passes and Files of the Compiler
run-time conventions 9 Interfacing to GNU CC Output

S
scanf, and constant strings 5 Incompatibilities of GNU CC
scheduling, delayed branch 10 Passes and Files of the Compiler
scheduling, instruction 10 Passes and Files of the Compiler
scheduling, instruction 10 Passes and Files of the Compiler
SCO installation 2.4 Installing GNU CC on SCO System V 3.2
scope of declaration 3 Known Causes of Trouble with GNU CC
scope of external declarations 5 Incompatibilities of GNU CC
separate directory, compilation in 2.1 Compilation in a Separate Directory
setjmp incompatibilities 5 Incompatibilities of GNU CC
shared strings 5 Incompatibilities of GNU CC
shared VMS run time system 7.3 Other VMS Issues
simplifications, arithmetic 10 Passes and Files of the Compiler
sscanf, and constant strings 5 Incompatibilities of GNU CC
stage1 2 Installing GNU CC
strength-reduction 10 Passes and Files of the Compiler
string constants 5 Incompatibilities of GNU CC
structures 5 Incompatibilities of GNU CC
structures, returning 9 Interfacing to GNU CC Output
stupid register allocation 10 Passes and Files of the Compiler
SUCCESS_EXIT_CODE 11 The Configuration File
Sun installation 2.2 Installing GNU CC on the Sun

T
tail recursion optimization 10 Passes and Files of the Compiler
target-parameter-dependent code 10 Passes and Files of the Compiler
top level of compiler 10 Passes and Files of the Compiler
typedef names as function parameters 5 Incompatibilities of GNU CC

U
Ultrix calling convention 5 Incompatibilities of GNU CC
undefined behavior 6.1 Have You Found a Bug?
undefined function value 6.1 Have You Found a Bug?
unions 5 Incompatibilities of GNU CC
unions, returning 9 Interfacing to GNU CC Output
Unos installation 2.5 Installing GNU CC on Unos
unreachable code 10 Passes and Files of the Compiler
USE_C_ALLOCA 11 The Configuration File
USG 11 The Configuration File

V
Vax calling convention 5 Incompatibilities of GNU CC
VAXCRTL 7.3 Other VMS Issues
VMS 11 The Configuration File
VMS and case sensitivity 7.3 Other VMS Issues
VMS and include files 7.1 Include Files and VMS
VMS installation 2.6 Installing GNU CC on VMS

W
whitespace 5 Incompatibilities of GNU CC

X
xm-machine.h 11 The Configuration File

Jump to:   '   3  
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   R   S   T   U   V   W   X  

[Top] [Contents] [Index] [ ? ]

Table of Contents


[Top] [Contents] [Index] [ ? ]

About This Document

This document was generated on January 7, 2025 using texi2html 5.0.

The buttons in the navigation panels have the following meaning:

Button Name Go to From 1.2.3 go to
[ << ] FastBack Beginning of this chapter or previous chapter 1
[ < ] Back Previous section in reading order 1.2.2
[ Up ] Up Up section 1.2
[ > ] Forward Next section in reading order 1.2.4
[ >> ] FastForward Next chapter 2
[Top] Top Cover (top) of document  
[Contents] Contents Table of contents  
[Index] Index Index  
[ ? ] About About (help)  

where the Example assumes that the current position is at Subsubsection One-Two-Three of a document of the following structure:


This document was generated on January 7, 2025 using texi2html 5.0.