Emit deprecation warning for --use-{gcc,llvm,clang}

Closes #24864.