Chapter 2. Getting and building the source

This is obviously the first step. You want to build current CVS and install it so you have a baseline to work against when something goes wrong. Follow the instructions for getting the CVS and build it as described. In my case, I did :

cvs co -r gcc-3_3-branch -d gcc-3.3 gcc
mkdir gcc/obj && cd gcc/obj
../configure --prefix=/usr/local/gcc-3.3cvs
make bootstrap
make install
cd ../ && rm -rf obj && mkdir obj && cd obj
../configure --prefix=/usr/local/gcc-3.3mine

Note that I was working on the 3.3 branch, because at the time of writing 3.4 is unusable. Now I have a GCC installed in /usr/local/gcc-3.3cvs I haven't touched, and I'm free to start hacking. This was a stupid way of doing it: note the comment about make restrap below.