www.sunfreeware.com
(formerly smc.vnet.net) has gcc in pkgadd form, which you can use
to compile gcc source available from the same site
(recommended), or just install and run.
You might need to get the gzip utilities in pkgadd
form first to uncompress gcc.