output of ls -l /usr/bin/gcc* is
lrwxrwxrwx 1 root root 21 2010-09-06 11:14 /usr/bin/gcc -> /usr/bin/gcc-4.4 -rwxr-xr-x 1 root root 220428 2010-03-27 03:46 /usr/bin/gcc-4.4.real
It seems link is created to a wrong file. I deleted /usr/bin/gcc and recreated gcc to link to gcc-4.4.real. Not gcc command seems to work fine.
output of ls -l /usr/bin/gcc* is
lrwxrwxrwx 1 root root 21 2010-09-06 11:14 /usr/bin/gcc -> /usr/bin/gcc-4.4 gcc-4.4. real
-rwxr-xr-x 1 root root 220428 2010-03-27 03:46 /usr/bin/
It seems link is created to a wrong file.
I deleted /usr/bin/gcc and recreated gcc to link to gcc-4.4.real.
Not gcc command seems to work fine.