[clang] Revert "[LinkerWrapper] Add 'Freestanding' config to the LTO pass" (PR #75528)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 14 12:54:26 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: None (fel-cab)
<details>
<summary>Changes</summary>
This reverts commit 47d9fbc04b91fb03b6da294e82c2fb4bca6b6343.
It creates a segmentation falt on SPEChpc soma on Frontier on a GPU for the kernel generate_new_beads
---
Full diff: https://github.com/llvm/llvm-project/pull/75528.diff
1 Files Affected:
- (modified) clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp (-1)
``````````diff
diff --git a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
index bd2fd02c6a3e8f..bebe76355eb46f 100644
--- a/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+++ b/clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
@@ -526,7 +526,6 @@ std::unique_ptr<lto::LTO> createLTO(
Conf.CPU = Arch.str();
Conf.Options = codegen::InitTargetOptionsFromCodeGenFlags(Triple);
- Conf.Freestanding = true;
StringRef OptLevel = Args.getLastArgValue(OPT_opt_level, "O2");
Conf.MAttrs = Features;
``````````
</details>
https://github.com/llvm/llvm-project/pull/75528
More information about the cfe-commits
mailing list