do u mean u got both the compilers versions installed!Does it show you any conflicts before installation?
Are u having the second gcc in any non standard paths like /opt etc.(build from source like that stuff).Then u shall use the alternatives
command to use the gcc u prefer.
see the below link, they will use the alternatives command to use second java