After updating gcc to version 4.7.3.r1 i got:

C compiler cannot create executables

I did:

# gcc-config -c
gcc-config: Active gcc profile is invalid!
[1] x86-pc-linux-gnu-4.7.3

# gcc-config x86-pc-linux-gnu-4.7.3
Switching native-compiler to x86-pc-linux-gnu-4.7.3

That fixed it for me(: