SuccessChanges

Summary

  1. [Local] Clean up enforceKnownAlignment() (NFC) (details)
  2. [Driver] Add disabled-by-default -Wuse-ld-path for the deprecation warning for -fuse-ld=/abs/path (details)
Commit f4e554180962aa6bc93678898b6933ea712bde50 by nikita.ppv
[Local] Clean up enforceKnownAlignment() (NFC)

I want to export this function, and the current API was a bit
weird: It took an additional Alignment argument that didn't really
have anything to do with what the function does. Drop it, and
perform a max at the callsite.

Also rename it to tryEnforceAlignment().
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp (diff)
Commit 9087209314caafed4b232d4a66287f2d16054ad3 by i
[Driver] Add disabled-by-default -Wuse-ld-path for the deprecation warning for -fuse-ld=/abs/path

The warning is currently not under a -W option, so it cannot be suppressed.
This is annoying for the widespread build system Bazel when specifying the path to gold
https://github.com/bazelbuild/bazel/commit/cdd0c3cdba270115940e8ca5ec8104cbcd694671

I have notified them about using --ld-path= forwards
https://github.com/bazelbuild/bazel/pull/8580#issuecomment-694321543
but we have to give some transitional period.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D87837
The file was modifiedclang/test/Misc/warning-flags.c (diff)
The file was modifiedclang/lib/Driver/ToolChain.cpp (diff)
The file was modifiedclang/include/clang/Basic/DiagnosticDriverKinds.td (diff)
The file was modifiedclang/test/Driver/fuse-ld.c (diff)
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td (diff)