Short answer: you cannot.
Long answer: You can get an older version of GCC, but it has been removed from the common cydia repositories, because for some reason it causes the device to crash when booting from iOS 4 +.
If you really want GCC, here is the google code project: http://code.google.com/p/iphone-gcc-full/
source share