Bash configures to use gcc by default if it is available. Read the file INSTALL in the distribution for more information.