[MacPorts] #37678: MacPorts gcc gives malloc error on correct program, Apple's gcc doesn't