The gcc+g77 package contains gcc-2.7.2.3 and g77-0.5.21.  To install it,
use this command:

  installpkg gcc+g77.tgz

If desired, you may then remove the old compiler with these commands:

  cd /var/log/packages
  removepkg gcc2722 gxx2722 objc2722

Enjoy!