GCC: Anonymous read-only CVS access

In an ongoing effort to accelerate development of GCC and provide an open development environment, we are making our CVS source repository available read-only to the public at large.

That way you can pick up any version (including releases) of GCC that is in our repository or our web pages.

In addition, you can browse our CVS history online at

Using the CVS repository

In January 2004, these instructions were modified to reflect security changes implemented after an attack on the Free Software Foundation's site.

Assuming you have both CVS and SSH installed, you can check out the GCC sources as follows:

  1. Set CVS_RSH in your environment to ssh.
  2. Set CVSROOT in your environment to :ext:anoncvs@savannah.gnu.org:/cvsroot/gcc.  Alternately add -d :ext:anoncvs@savannah.gnu.org:/cvsroot/gcc immediately after cvs in the commands below.
  3. The command cvs -qz9 checkout -P gcc wwwdocs, will check out both modules in our CVS repository.  Module gcc is the compiler source while module wwwdocs contains the sources for our web pages.

In case of problems with the repository at savannah.gnu.org please contact savannah-hackers@gnu.org.

Generated files

Our CVS source tree contains a number of files that are generated from other source files by build tools such as Bison, Autoconf, and Gperf. Bison is now required when using CVS to access our sources, but all other generated files are included in the source tree so that GCC can be built without these build tools. The CVS checkout and update operations do not insure that the timestamps of generated files are later than those of the files they are generated from. The script contrib/gcc_update updates the timestamps for all these generated files. See the comments in that script for instructions on running it.

GCC's build system (in particular Make) uses file timestamps to determine if a generated file needs to be updated by running a particular build tool. Because of this, GCC's build system may believe that a generated file needs regenerating even though its source has not changed, and require a particular build tool to rebuild that generated file. If the appropriate build tool is installed on your system, then this will not be a problem. If you do not intend to make changes to the source, you can avoid installing these build tools by running contrib/gcc_update.

There has been some discussion of removing these generated files from GCC's CVS source tree (there is no discussion of removing them from the released source tarballs). If that happens then building GCC from the CVS source tree would require installing the above mentioned build tools. Installing these build tools is not particularly difficult, but can be time consuming especially if you only occasionally install GCC on a particular system.

The build tools that GCC uses are all available from the GNU Project (see http://www.gnu.org), are often already available on many systems, and can often be found already built for some systems. A partial list of these build tools is: Autoconf, Bison, Xgettext, Automake, and Gperf.

Conflicts when using cvs update

It is not uncommon to get CVS conflict messages for some generated files when updating your local sources from the CVS repository. Typically such conflicts occur with autoconf generated files.

As long as you haven't been making modifications to the generated files or the generator files, it is safe to delete the offending file, then run cvs update again to get a new copy.

CVS tags, branches and checkouts

You can check out the latest version of the GCC x.y release branch with the following command:

cvs -z 9 co -P -rgcc-x_y-branch gcc

By changing the -r argument above you can check out particular releases or snapshots or the latest snapshot.

Release and snapshot branches

Active Development Branches

compile-server-branch
This branch is aimed at improving compile speed by caching work done between compilations. The work saved is mainly related to header file processing. Patches should be marked with the tag [cs] in the subject line.
csl-arm-branch
CodeSourcery branch for developing ARM back end improvements. The branch is maintained by CodeSourcery personnel. Patches should be marked with the tag [csl-arm-branch] in the subject line.
csl-hpux-branch
CodeSourcery branch for developing HP-UX improvements. The branch is maintained by CodeSourcery personnel. Patches should be marked with the tag [csl-hpux-branch] in the subject line.
hammer-3_3-branch
The goal of this branch is to have a stable compiler based on GCC 3.3 with improved performance for AMD's 64-bit Hammer CPUs. The branch is maintained by Jan Hubicka <jh@suse.cz> and Andreas Jaeger <aj@suse.de>. Patches added on this branch might not be appropriate for the GCC 3.3 branch due to our policies concerning release branches. All patches will be added to mainline CVS (for 3.4). The branch is regularly merged with the GCC 3.3 branch.
libobjc-branch
The branch is aimed to clean up libobjc and make it run on Darwin. Patches should be marked with the tag [libobjc-branch] in the subject line. Patches can be approved by Andrew Pinski or Nicola Pero.
tree-ssa-20020619-branch
Work on implementing SSA analysis and optimization for trees is done in this branch.
lno-branch
A sub-branch of tree-ssa that aims at implementing a loop nest optimizer at the tree level.
new-regalloc-branch
Daniel Berlin and Michael Matz are working on an implementation of a graph-coloring register allocator on this branch. It is known to bootstrap under x86-linux and ppc-linux.
rtlopt-branch
This branch is the successor to the cfg-branch, with the exception that it is based on GCC pre-3.4. The purpose of the branch is to develop and test infrastructure for CFG based code improving transformations on RTL.
cxx-reflection-branch
Part of the work on providing support for compile time reflection in C++ is done in this branch.
gcc-3_3-e500-branch
This branch is for backporting the PowerPC/E500 back end to GCC 3.3. See this message for details.
objc-improvements-branch
This branch was originally used to merge Objective-C bug fixes and enhancements from Apple Computer into the FSF tree; this has now been completed. Presently, the purpose of the branch is to implement the Objective-C++ language in the FSF GCC source tree. The message thread starting here describes this at more length. This branch is being maintained by Zem Laski <zlaski@apple.com> .
libada-branch
This branch exists to solve bug 5911, by breaking out the Ada runtime and utilities into a libada directory.

Inactive Development Branches

cp-parser-branch
This branch has been merged into the mainline.
cp-parser-branch-2
This branch has been merged into the mainline.
pch-branch
This branch has been merged into the mainline.
gcc-3_4-basic-improvements-branch
This branch has been merged into the mainline.
mips-3_4-rewrite-branch
This branch has been merged into the mainline.
dfa-branch
This branch has been merged into the mainline.
tree-ssa-cfg-branch
This branch has been merged into the tree-ssa-20020619-branch.
faster-compiler-branch
This was a temporary branch for compiler speedups for GCC 3.4. See this thread for discussion of possible work still to be done in this area. The branch is unmaintained at present.
gomp-01-branch
This branch was created to allow the GOMP project to implement OpenMP support in GCC. It has since been found that a new C parser is necessary before OpenMP support can be easily implemented. Thus, the branch is currently unmaintained.
cfg-branch
This branch was created to develop and test infrastructure for easier writing of new RTL based optimizations. The branch was based on GCC pre-3.3 and has been partially merged into the mainline for GCC 3.4. It is now closed, and work continues on the rtlopt-branch.
ast-optimizer-branch
The purpose of this branch was to improve GCC's tree based optimizations. The patches of this branch have been moved to the tree-ssa-20020619-branch branch.

Web pages

The web pages for the GCC project are also in the CVS repository and you can check them out, submit patches, etc just like you do for the compiler itself. Use cvs co -P wwwdocs to check out the web pages.

The host system

The setup of the machine running the gcc.gnu.org site is also available, through cvsweb and anonymous read-only CVS. Use the same procedure as above, but use :pserver:anoncvs@gcc.gnu.org:/cvs/sourceware for the repository and infra for the module.


Please send FSF & GNU inquiries & questions to gnu@gnu.org. There are also other ways to contact the FSF.

These pages are maintained by the GCC team.

For questions related to the use of GCC, please consult these web pages and the GCC manuals. If that fails, the gcc-help@gcc.gnu.org mailing list might help.
Please send comments on these web pages and the development of GCC to our public developer mailing list at gcc@gnu.org or gcc@gcc.gnu.org.

Copyright (C) Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.

Last modified 2004-02-02 Valid XHTML 1.0