from www.sunfreeware.com :
GNU gcc 3.0.3 compiler suite released The GNU people have released version 3.0.3 of their compiler suite. I have placed the pre-compiled versions for SPARC/Solaris 2.6, 7, and 8 and for Intel/Solaris 8 on sunfreeware.com (see the lists to the left). This package also requires that you install the GNU binutils package and use the programs from this package rather than the Solaris assembler and loaders.
binutils-2.11.2-sol8-sparc-local.gz This GNU package includes the GNU versions of the ld, as, ar, nm, ranlib, strip, strings and other programs - installs in /usr/local. With some compiles, the use of Sun versions of these programs may be better. The Sun versions of these utilities come from the developer SUNW packages from the Solaris CDs and are installed in /usr/ccs/bin. Which set of utilies gets used depends on whether /usr/local/bin (GNU) or /usr/ccs/bin (Sun) are first in the PATH environmental variable.
there you go