if you run emerge info you'll see the gcc version as supplied by gcc -dumpversion however it doesn't tell you the revision number which is something that can be very important. It tells you the revision of glibc. The output should be uniform. (Compare the version below with the emerge info @ the bottom.) afr root # qpkg -nc -v -I gcc sys-devel/gcc-3.2.2-r1 sys-devel/gcc-config-1.3.1 Reproducible: Always Steps to Reproduce: 1. emerge info 2. 3. afr root # emerge info Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2_pre1-r0) ================================================================= System uname: 2.5.46 i686 Pentium III (Coppermine) GENTOO_MIRRORS="ftp://ftp.oregonstate.edu/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage/" USE="x86 3dnow apm encode gif jpeg libg++ mikmod mmx mpeg ncurses pdflib png qtmt spell xml2 xv zlib gdbm berkdb slang readline bonobo svga tcltk guile sdl tcpd pam libwww ssl perl python esd imlib motif opengl cdr scanner X gtk -gnome alsa -nls cups kde qt -gpm xmms mozilla crypt truetype gtk2 avi java oggvorbis -arts quicktime -oss smooth" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fexpensive-optimizations -fprefetch-loop-arrays -ffast-math -funroll-loops -foptimize-sibling-calls -maccumulate-outgoing-args" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fexpensive-optimizations -fprefetch-loop-arrays -ffast-math -funroll-loops -foptimize-sibling-calls -maccumulate-outgoing-args" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j5" AUTOCLEAN="yes" SYNC="rsync://rsync2.us.gentoo.org/gentoo-portage" FEATURES="sandbox prelink ccache distcc digest userpriv noauto"
Being that you can have multiple versions installed, revisions aren't really helpful. The idea behind the version line is to give a good overview of the system. If you need revisions of gcc, you can find them... I'm fine with how it is though.
It's more for bug tracking purposes. For example maybe something works in gcc-3.2.1-r6 but not in gcc-3.2.1-r5. It's more of a logical thing. And as far as the multiple versions it should give the version of the currently selected version.