Development sources can be downloaded via CVS but they must be grafted carefully onto an existing GCC release. The notes in this section document how this is achieved, however a prepared CVS and GCC release is available and it is created upon each commit.
The source code in the CVS can be browsed. However if you want to obtain the latest sources via CVS then type the following:
$ cvs -z3 -d:pserver:firstname.lastname@example.org:/sources/gm2 co gm2
This will checkout a copy of GNU Modula-2 into one subdirectory, gm2. This version of GNU Modula-2 needs to be placed inside the GCC source tree in the position gcc-4.7.3/gcc before GNU Modula-2 can be built. Please check the GNU Modula-2 homepage for details about which GCC releases are supported by GNU Modula-2.
Once you have downloaded the correct GCC release from http://gcc.gnu.org or a mirror site you should unpack the GCC archive. Assuming that both the gcc-4.7.3 and gm2 directories are at the same level, you can graft gm2 onto gcc-4.7.3 by:
$ mv gm2 gcc-4.7.3/gcc
If the directory gcc-4.7.3/gcc/gm2/patches/gcc/4.7.3 exists then the patch files inside that directory can be applied to the gcc-4.7.3 tree. This is done via:
$ cd gcc-4.7.3 $ if [ -d gcc/gm2/patches/gcc/4.7.3 ] ; then for i in gcc/gm2/patches/gcc/4.7.3/* ; do if [ -f $i ] ; then patch -p1 < $i fi done fi
Note that if you download a tarball from http://floppsie.comp.glam.ac.uk then any patching will have already been applied. .