Skip to content

PR for llvm/llvm-project#59049 #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libcxx/include/__config
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#ifdef __cplusplus

# define _LIBCPP_VERSION 15004
# define _LIBCPP_VERSION 15005

# define _LIBCPP_CONCAT_IMPL(_X, _Y) _X##_Y
# define _LIBCPP_CONCAT(_X, _Y) _LIBCPP_CONCAT_IMPL(_X, _Y)
Expand Down
9 changes: 6 additions & 3 deletions lld/ELF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,12 +1330,15 @@ static void readConfigs(opt::InputArgList &args) {
parseClangOption(std::string("-") + arg->getValue(), arg->getSpelling());

// GCC collect2 passes -plugin-opt=path/to/lto-wrapper with an absolute or
// relative path. Just ignore. If not ended with "lto-wrapper", consider it an
// relative path. Just ignore. If not ended with "lto-wrapper" (or
// "lto-wrapper.exe" for GCC cross-compiled for Windows), consider it an
// unsupported LLVMgold.so option and error.
for (opt::Arg *arg : args.filtered(OPT_plugin_opt_eq))
if (!StringRef(arg->getValue()).endswith("lto-wrapper"))
for (opt::Arg *arg : args.filtered(OPT_plugin_opt_eq)) {
StringRef v(arg->getValue());
if (!v.endswith("lto-wrapper") && !v.endswith("lto-wrapper.exe"))
error(arg->getSpelling() + ": unknown plugin option '" + arg->getValue() +
"'");
}

config->passPlugins = args::getStrings(args, OPT_load_pass_plugins);

Expand Down
2 changes: 2 additions & 0 deletions lld/test/ELF/lto-plugin-ignore.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
# RUN: ld.lld %t.o -o /dev/null \
# RUN: -plugin path/to/liblto_plugin.so \
# RUN: -plugin-opt=/path/to/lto-wrapper \
# RUN: -plugin-opt=/path/to/lto-wrapper.exe \
# RUN: -plugin-opt=relative/path/to/lto-wrapper \
# RUN: -plugin-opt=relative/path/to/lto-wrapper.exe \
# RUN: -plugin-opt=-fresolution=zed \
# RUN: -plugin-opt=-pass-through=-lgcc \
# RUN: -plugin-opt=-pass-through=-lgcc_eh \
Expand Down
2 changes: 1 addition & 1 deletion llvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(NOT DEFINED LLVM_VERSION_MINOR)
set(LLVM_VERSION_MINOR 0)
endif()
if(NOT DEFINED LLVM_VERSION_PATCH)
set(LLVM_VERSION_PATCH 4)
set(LLVM_VERSION_PATCH 5)
endif()
if(NOT DEFINED LLVM_VERSION_SUFFIX)
set(LLVM_VERSION_SUFFIX)
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/gn/secondary/llvm/version.gni
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
llvm_version_major = 15
llvm_version_minor = 0
llvm_version_patch = 4
llvm_version_patch = 5
llvm_version = "$llvm_version_major.$llvm_version_minor.$llvm_version_patch"
2 changes: 1 addition & 1 deletion llvm/utils/lit/lit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = 'Daniel Dunbar'
__email__ = '[email protected]'
__versioninfo__ = (15, 0, 4)
__versioninfo__ = (15, 0, 5)
__version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev'

__all__ = []
6 changes: 3 additions & 3 deletions utils/bazel/llvm-project-overlay/clang/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ genrule(
name = "basic_version_gen",
outs = ["include/clang/Basic/Version.inc"],
cmd = (
"echo '#define CLANG_VERSION 15.0.4' >> $@\n" +
"echo '#define CLANG_VERSION 15.0.5' >> $@\n" +
"echo '#define CLANG_VERSION_MAJOR 15' >> $@\n" +
"echo '#define CLANG_VERSION_MINOR 0' >> $@\n" +
"echo '#define CLANG_VERSION_PATCHLEVEL 4' >> $@\n" +
"echo '#define CLANG_VERSION_STRING \"15.0.4\"' >> $@\n"
"echo '#define CLANG_VERSION_PATCHLEVEL 5' >> $@\n" +
"echo '#define CLANG_VERSION_STRING \"15.0.5\"' >> $@\n"
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
/* CLANG_HAVE_RLIMITS defined conditionally below */

/* The LLVM product name and version */
#define BACKEND_PACKAGE_STRING "LLVM 15.0.4"
#define BACKEND_PACKAGE_STRING "LLVM 15.0.5"

/* Linker version detected at compile time. */
/* #undef HOST_LINK_VERSION */
Expand Down
2 changes: 1 addition & 1 deletion utils/bazel/llvm-project-overlay/lld/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package(
genrule(
name = "config_version_gen",
outs = ["include/lld/Common/Version.inc"],
cmd = "echo '#define LLD_VERSION_STRING \"15.0.4\"' > $@",
cmd = "echo '#define LLD_VERSION_STRING \"15.0.5\"' > $@",
)

genrule(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
#define LLVM_VERSION_MINOR 0

/* Patch version of the LLVM API */
#define LLVM_VERSION_PATCH 4
#define LLVM_VERSION_PATCH 5

/* LLVM version string */
#define LLVM_VERSION_STRING "15.0.4"
#define LLVM_VERSION_STRING "15.0.5"

/* Whether LLVM records statistics for use with GetStatistics(),
* PrintStatistics() or PrintStatisticsJSON()
Expand Down