Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 864069 Details for
Bug 908694
sys-devel/llvm-16.0.6-r1: bump for the sake of www-client/chromium-115
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch I used
disable-auto-upgrade-debug-info.patch (text/plain), 2.49 KB, created by
MaxKarlErnstPlanck
on 2023-06-17 19:12:14 UTC
(
hide
)
Description:
patch I used
Filename:
MIME Type:
Creator:
MaxKarlErnstPlanck
Created:
2023-06-17 19:12:14 UTC
Size:
2.49 KB
patch
obsolete
>--- a/llvm/lib/IR/AutoUpgrade.cpp >+++ b/llvm/lib/IR/AutoUpgrade.cpp >@@ -31,11 +31,17 @@ > #include "llvm/IR/LLVMContext.h" > #include "llvm/IR/Module.h" > #include "llvm/IR/Verifier.h" >+#include "llvm/Support/CommandLine.h" > #include "llvm/Support/ErrorHandling.h" > #include "llvm/Support/Regex.h" > #include <cstring> >+ > using namespace llvm; > >+static cl::opt<bool> >+ DisableAutoUpgradeDebugInfo("disable-auto-upgrade-debug-info", >+ cl::desc("Disable autoupgrade of debug info")); >+ > static void rename(GlobalValue *GV) { GV->setName(GV->getName() + ".old"); } > > // Upgrade the declarations of the SSE4.1 ptest intrinsics whose arguments have >@@ -4485,6 +4491,9 @@ Constant *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) { > /// Check the debug info version number, if it is out-dated, drop the debug > /// info. Return true if module is modified. > bool llvm::UpgradeDebugInfo(Module &M) { >+ if (DisableAutoUpgradeDebugInfo) >+ return false; >+ > unsigned Version = getDebugMetadataVersionFromModule(M); > if (Version == DEBUG_METADATA_VERSION) { > bool BrokenDebugInfo = false; >@@ -4993,7 +5002,6 @@ void llvm::UpgradeAttributes(AttrBuilder &B) { > } > > void llvm::UpgradeOperandBundles(std::vector<OperandBundleDef> &Bundles) { >- > // clang.arc.attachedcall bundles are now required to have an operand. > // If they don't, it's okay to drop them entirely: when there is an operand, > // the "attachedcall" is meaningful and required, but without an operand, >--- a/llvm/test/LTO/X86/strip-debug-info.ll >+++ b/llvm/test/LTO/X86/strip-debug-info.ll >@@ -24,10 +24,18 @@ > ; RUN: -exported-symbol foo -exported-symbol _foo \ > ; RUN: %t-stripped.bc -disable-verify 2>&1 | \ > ; RUN: FileCheck %s -allow-empty -check-prefix=CHECK-WARN >+; ---- Thin LTO (optimize, don't strip imported file) >+; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t-stripped.bc %t2.bc >+; RUN: llvm-lto -thinlto -thinlto-action=import -disable-auto-upgrade-debug-info \ >+; RUN: -thinlto-index=%t.index.bc \ >+; RUN: -exported-symbol foo -exported-symbol _foo \ >+; RUN: %t-stripped.bc -disable-verify 2>&1 | \ >+; RUN: FileCheck %s -allow-empty -check-prefix=CHECK-NO-WARN > > ; CHECK-WARN: warning{{.*}} ignoring invalid debug info > ; CHECK-WARN-NOT: Broken module found > ; CHECK: foo >+; CHECK-NO-WARN-NOT: ignoring invalid debug info > target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" > target triple = "x86_64-apple-macosx10.12" > >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 908694
: 864069