There is a package called
gcc-2.95 that allows for clean installation of gcc 2.95 (the version found in 'woody') alongside the current version of gcc that is provided.
Just remember to specify the compiler to be used as gcc-2.95 when compiling your software, e.g.
or whatever method that happens to be appropriate.