Mac OS X comes with LLVM compiler tool chain with clang. Hence, you will have the pseudo gcc command aliased to clang.

If you want real gcc compiler tool chain, execute the following commands:

brew install gcc

But this won’t install important commands like gdb, objdump, etc. To install them,

brew install gdb brew install binutils