gcc: remove with-profiled-build option

It doesn't work, inside or outside of Homebrew. The option is still
available in the homebrew-versions gcc, though.

Closes #31261.