As many questions state MacOs has made a quite misleading decision to masquerade clang as gcc, so typing gcc --version on a macOs terminal will actually invoke
gcc --version