hi,
recently,i backport kpatch to CentOS 6.5 which kernel verison is 2.6.32-431,use gcc 4.8.2 . It seems there is no easy way to do it, using git to explore the v3.9 tag in kernel master branch is a good start .
gcc 4.8.2 for rhel 6.5
http://people.centos.org/tru/devtools-2/readme
http://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos