Good luck getting anything to compile with the version of GCC redhat 7 shipped with (2.96). My laptop with RedHat 7 on it (just switched to FreeBSD actually) wouldn't even compile the kernel sources shipped with RH 7 with the default GCC.

They ship egcs-1.1.2 (as kgcc) for exactly that purpose.

Borislav