diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp --- a/clang/lib/Driver/ToolChain.cpp +++ b/clang/lib/Driver/ToolChain.cpp @@ -576,12 +576,13 @@ return GetProgramPath(DefaultLinker); } + // TODO Issue the warning in a future release. // Extending -fuse-ld= to an absolute or relative path is unexpected. Checking // for the linker flavor is brittle. In addition, prepending "ld." or "ld64." // to a relative path is surprising. This is more complex due to priorities // among -B, COMPILER_PATH and PATH. --ld-path= should be used instead. - if (UseLinker.find('/') != StringRef::npos) - getDriver().Diag(diag::warn_drv_use_ld_non_word); + // if (UseLinker.find('/') != StringRef::npos) + // getDriver().Diag(diag::warn_drv_use_ld_non_word); if (llvm::sys::path::is_absolute(UseLinker)) { // If we're passed what looks like an absolute path, don't attempt to diff --git a/clang/test/Driver/fuse-ld.c b/clang/test/Driver/fuse-ld.c --- a/clang/test/Driver/fuse-ld.c +++ b/clang/test/Driver/fuse-ld.c @@ -2,7 +2,8 @@ // RUN: -fuse-ld=/usr/local/bin/or1k-linux-ld 2>&1 \ // RUN: -target x86_64-unknown-linux \ // RUN: | FileCheck %s --check-prefix=CHECK-ABSOLUTE-LD -// CHECK-ABSOLUTE-LD: warning: '-fuse-ld=' taking a path is deprecated. Use '--ld-path=' instead +/// TODO: Issue the deprecation warning in a future release. +// DISABLE-CHECK-ABSOLUTE-LD: warning: '-fuse-ld=' taking a path is deprecated. Use '--ld-path=' instead // CHECK-ABSOLUTE-LD: /usr/local/bin/or1k-linux-ld