Skip to content
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

PR for llvm/llvm-project#62699 #445

Merged
merged 2 commits into from
May 17, 2023
Merged

PR for llvm/llvm-project#62699 #445

merged 2 commits into from
May 17, 2023

Conversation

llvmbot
Copy link
Collaborator

@llvmbot llvmbot commented May 13, 2023

@llvmbot
Copy link
Collaborator Author

llvmbot commented May 13, 2023

@MaskRay @thesamesam @nikic What do you think about merging this PR to the release branch?

@thesamesam
Copy link
Member

thesamesam commented May 14, 2023

We'll do 626849c and 47f5c54 now instead.

MaskRay and others added 2 commits May 15, 2023 03:42
…read

This fixes some build bots if we reland D150505: specifically when using GCC to
build LLVM and then `-fno-lifetime-dse` ends up passed to compile_commands.json
and causing clang-tidy to pick up the Clang unknown option.

(cherry picked from commit 626849c)
LLVM data structures like llvm::User and llvm::MDNode rely on
the value of object storage persisting beyond the lifetime of the
object (#24952).  This is not standard compliant and causes a runtime
crash if LLVM is built with GCC and LTO enabled (#57740).  Until
these issues are fixed, we need to disable dead store eliminations
eliminations based on object lifetime.

The previous test issues are fixed by 626849c.

Bug: llvm/llvm-project#24952
Bug: llvm/llvm-project#57740
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106943

Reviewed By: MaskRay, thesamesam, nikic

Differential Revision: https://reviews.llvm.org/D150505

(cherry picked from commit 47f5c54)
@tstellar tstellar merged commit d5cce0a into release/16.x May 17, 2023
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backport UB workaround for GCC LTO builds
5 participants