https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/121081
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/121162
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/121081
>From 75aa55a129dd1311a889a9bb4b0f4ee04206d157 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Tue, 24 Dec 2024 19:38:02 -0800
Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
https://github.com/vitalybuka closed
https://github.com/llvm/llvm-project/pull/121162
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/121162
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/121162
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/121162
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/121162
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -8,7 +8,7 @@
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-LINUX
//
-// CHECK-ASAN-LINUX: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
+// CHECK-ASAN-LINUX: "{{(.*[^-.0-9A-Z_a-z])?}}ld"
vitalybuka wrote:
It
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/121081
>From 75aa55a129dd1311a889a9bb4b0f4ee04206d157 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Tue, 24 Dec 2024 19:38:02 -0800
Subject: [PATCH 1/6] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
https://github.com/vitalybuka closed
https://github.com/llvm/llvm-project/pull/121081
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/121115
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/121081
>From 75aa55a129dd1311a889a9bb4b0f4ee04206d157 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Tue, 24 Dec 2024 19:38:02 -0800
Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/121162
Target "androideabi" adds .exe in some cases.
>From 5f3483085ac3547d443857d6ad320a35c9508198 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Thu, 26 Dec 2024 14:15:21 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=
@@ -8,7 +8,7 @@
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-LINUX
//
-// CHECK-ASAN-LINUX: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
+// CHECK-ASAN-LINUX: "{{(.*[^-.0-9A-Z_a-z])?}}ld"
vitalybuka wrote:
I
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/121162
>From 5f3483085ac3547d443857d6ad320a35c9508198 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Thu, 26 Dec 2024 14:15:21 -0800
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
Author: Vitaly Buka
Date: 2024-12-26T14:59:37-08:00
New Revision: ca28fcc6fce516129d117f5f5a14ba7f54a045d8
URL:
https://github.com/llvm/llvm-project/commit/ca28fcc6fce516129d117f5f5a14ba7f54a045d8
DIFF:
https://github.com/llvm/llvm-project/commit/ca28fcc6fce516129d117f5f5a14ba7f54a045d8.diff
L
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/121162
>From 5f3483085ac3547d443857d6ad320a35c9508198 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Thu, 26 Dec 2024 14:15:21 -0800
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
Author: Vitaly Buka
Date: 2024-12-26T23:17:04-08:00
New Revision: 5807d0efb963ab591a1ae569b538724299d6acdc
URL:
https://github.com/llvm/llvm-project/commit/5807d0efb963ab591a1ae569b538724299d6acdc
DIFF:
https://github.com/llvm/llvm-project/commit/5807d0efb963ab591a1ae569b538724299d6acdc.diff
L
@@ -8,7 +8,7 @@
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-LINUX
//
-// CHECK-ASAN-LINUX: "{{(.*[^-.0-9A-Z_a-z])?}}ld{{(.exe)?}}"
+// CHECK-ASAN-LINUX: "{{(.*[^-.0-9A-Z_a-z])?}}ld"
vitalybuka wrote:
Lo
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/121081
>From 75aa55a129dd1311a889a9bb4b0f4ee04206d157 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Tue, 24 Dec 2024 19:38:02 -0800
Subject: [PATCH 1/4] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/121081
>From 75aa55a129dd1311a889a9bb4b0f4ee04206d157 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Tue, 24 Dec 2024 19:38:02 -0800
Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
vitalybuka wrote:
Is possible to share a link to the build bot?
https://github.com/llvm/llvm-project/pull/121081
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka approved this pull request.
Thank you!
https://github.com/llvm/llvm-project/pull/121361
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka approved this pull request.
for compiler-rt/lib/sanitizer_common/CMakeLists.txt
https://github.com/llvm/llvm-project/pull/125388
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailma
vitalybuka wrote:
ping
https://github.com/llvm/llvm-project/pull/125020
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -239,6 +239,11 @@ append_list_if(SANITIZER_LIMIT_FRAME_SIZE
-Wframe-larger-than=570
append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
SANITIZER_CFLAGS)
+# Suppress -Watomic-alignment warnings by not treating them as errors
+if (C
vitalybuka wrote:
#104525 is still crashing, what we can do about that?
https://github.com/llvm/llvm-project/pull/107153
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -444,6 +444,19 @@ class LangOptionsBase {
IncompleteOnly = 3,
};
+ enum class ArrayBoundsStrictFlexArraysLevelKind {
vitalybuka wrote:
any way to avoid None? and new enum completely?
E.g. Driver copy from another flag if this one is missing?
https
@@ -1192,13 +1193,40 @@ llvm::Value *CodeGenFunction::EmitLoadOfCountedByField(
return nullptr;
}
+LangOptions::StrictFlexArraysLevelKind
+CodeGenFunction::effectiveArrayBoundsFlexArraysLevel() {
+ using StrictFlexArraysLevelKind = LangOptions::StrictFlexArraysLevelKind;
+
@@ -444,6 +444,19 @@ class LangOptionsBase {
IncompleteOnly = 3,
};
+ enum class ArrayBoundsStrictFlexArraysLevelKind {
vitalybuka wrote:
We can do the same in cc1, the case will not be used, because driver will
always pass something?
BTW, why -1 doe
vitalybuka wrote:
ping
https://github.com/llvm/llvm-project/pull/125020
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vitalybuka wrote:
All these changes are independent and quite straight forward.
I'd suggest to split in some way, so it's easier to review, land, and revert if
we miss and break something.
Maybe by component.
also globals vs function local etc.
https://github.com/llvm/llvm-project/pull/12624
vitalybuka wrote:
Usually our tweak flags looks like -fsanitize--
"bounds" is a group for (array-bounds + local-bounds)
"undefined" is also group, but we already have -fsanitize-undefined-,
but they kind of affect a few sanitizers
so:
`-fsanitize-undefined-strict-flex-arrays`
or
`-fsanitize-a
@@ -444,6 +444,19 @@ class LangOptionsBase {
IncompleteOnly = 3,
};
+ enum class ArrayBoundsStrictFlexArraysLevelKind {
vitalybuka wrote:
To match numerical values, less mental efforts for readers.
```
enum class ArrayBoundsStrictFlexArraysLevelKind
@@ -7,6 +7,16 @@
// RUN: %clang_cc1 -emit-llvm -triple x86_64 -fstrict-flex-arrays=2
-fsanitize=array-bounds -x c++ %s -o - | FileCheck %s
--check-prefixes=CHECK,CHECK-STRICT-2,CXX
// RUN: %clang_cc1 -emit-llvm -triple x86_64 -fstrict-flex-arrays=3
-fsanitize=array-bounds
@@ -1192,13 +1193,40 @@ llvm::Value *CodeGenFunction::EmitLoadOfCountedByField(
return nullptr;
}
+LangOptions::StrictFlexArraysLevelKind
+CodeGenFunction::effectiveArrayBoundsFlexArraysLevel() {
+ using StrictFlexArraysLevelKind = LangOptions::StrictFlexArraysLevelKind;
+
https://github.com/vitalybuka requested changes to this pull request.
We should abandon this in favor of proper fixes
One case is here https://github.com/llvm/llvm-project/pull/126168
Not sure about other cases of
https://github.com/llvm/llvm-project/issues/104525.
https://github.com/llvm/llvm
@@ -137,6 +137,10 @@ llvm::AllocaInst
*CodeGenFunction::CreateTempAlloca(llvm::Type *Ty,
Alloca =
new llvm::AllocaInst(Ty, CGM.getDataLayout().getAllocaAddrSpace(),
ArraySize, Name, AllocaInsertPt->getIterator());
+ if (Alloca->getName
vitalybuka wrote:
Looks like from this patch
https://lab.llvm.org/buildbot/#/builders/94/builds/4194/steps/17/logs/stdio
https://github.com/llvm/llvm-project/pull/125253
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cg
@@ -27,7 +27,7 @@ bool InterpState::inConstantContext() const {
}
InterpState::~InterpState() {
- while (Current) {
+ while (Current && !Current->isBottomFrame()) {
vitalybuka wrote:
Some reordering is needed for "InterpState S;" and "InterpFrame BottomFram
vitalybuka wrote:
> Looks like from this patch
> https://lab.llvm.org/buildbot/#/builders/94/builds/4194/steps/17/logs/stdio
I see it's alread reverted and green.
Still the URL with stack traces may help to fix the issue.
https://github.com/llvm/llvm-project/pull/125253
___
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/119280
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/119280
>From 1b3a64701a8f496343360d8b6b86670f039a8e6d Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Mon, 9 Dec 2024 22:38:30 +
Subject: [PATCH 1/4] [NFC][clang] Add ubsan-handler-merge.c test to show
absen
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/119280
>From 1b3a64701a8f496343360d8b6b86670f039a8e6d Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Mon, 9 Dec 2024 22:38:30 +
Subject: [PATCH 1/5] [NFC][clang] Add ubsan-handler-merge.c test to show
absen
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/119280
>From 1b3a64701a8f496343360d8b6b86670f039a8e6d Mon Sep 17 00:00:00 2001
From: Thurston Dang
Date: Mon, 9 Dec 2024 22:38:30 +
Subject: [PATCH 1/6] [NFC][clang] Add ubsan-handler-merge.c test to show
absen
@@ -0,0 +1,113 @@
+// NOTE: Assertions have mostly been autogenerated by
utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// The most important assertion is the attributes at the end of the file, which
+// shows that -ubsan-unique-traps does not attach 'nomerge' to each ubsa
@@ -0,0 +1,113 @@
+// NOTE: Assertions have mostly been autogenerated by
utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// The most important assertion is the attributes at the end of the file, which
+// shows that -ubsan-unique-traps does not attach 'nomerge' to each ubsa
@@ -1024,12 +1024,14 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
FPM.addPass(BoundsCheckingPass());
});
-if (LangOpts.Sanitize.has(SanitizerKind::Realtime))
+if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) {
vitalybuk
@@ -1024,12 +1024,14 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
FPM.addPass(BoundsCheckingPass());
});
-if (LangOpts.Sanitize.has(SanitizerKind::Realtime))
+if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) {
PB.registerScalarOp
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/119302
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/119894
>From 6cd26753f380d9ee89d85139a5dc58bc0e4b0632 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Fri, 13 Dec 2024 08:04:56 -0800
Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
@@ -68,6 +68,8 @@ static const SanitizerMask TrappingSupported =
SanitizerKind::ImplicitConversion | SanitizerKind::Nullability |
SanitizerKind::LocalBounds | SanitizerKind::CFI |
SanitizerKind::FloatDivideByZero | SanitizerKind::ObjCCast;
+static const SanitizerMas
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/120460
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/120370
>From 6787146cf0e81ad8a69b3b2fadd7caf0f49c78d9 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Tue, 17 Dec 2024 23:11:12 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?
https://github.com/vitalybuka closed
https://github.com/llvm/llvm-project/pull/120370
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2548,6 +2548,14 @@ def fsanitize_trap_EQ : CommaJoined<["-"],
"fsanitize-trap=">, Group;
+def fsanitize_nonmerged_handlers_EQ
+: CommaJoined<["-"], "fsanitize-nonmerged-handlers=">,
vitalybuka wrote:
How about just -fsanitize-merge (default)/-fno-sanitiz
@@ -2548,6 +2548,14 @@ def fsanitize_trap_EQ : CommaJoined<["-"],
"fsanitize-trap=">, Group;
+def fsanitize_nonmerged_handlers_EQ
+: CommaJoined<["-"], "fsanitize-nonmerged-handlers=">,
+ Group,
+ HelpText<"Enable non-merged handlers for specified sanitizers">;
@@ -2548,6 +2548,14 @@ def fsanitize_trap_EQ : CommaJoined<["-"],
"fsanitize-trap=">, Group;
+def fsanitize_nonmerged_handlers_EQ
+: CommaJoined<["-"], "fsanitize-nonmerged-handlers=">,
+ Group,
+ HelpText<"Enable non-merged handlers for specified sanitizers">;
https://github.com/vitalybuka closed
https://github.com/llvm/llvm-project/pull/119894
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -652,44 +679,12 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
// default in ASan?
// Parse -f(no-)?sanitize-recover flags.
- SanitizerMask RecoverableKinds = RecoverableByDefault | AlwaysRecoverable;
- SanitizerMask DiagnosedUnrecoverableKinds;
- SanitizerMask
vitalybuka wrote:
> I think
> [llvm/llvm-test-suite#190](https://github.com/llvm/llvm-test-suite/pull/190)
> should fix this issue, but haven't tested on an affected arch.
>
> I'm a bit worried that we don't have a sanitizer to catch this issue (the
> negative left shift issue is an unrelated
vitalybuka wrote:
> > > > Actually this PR is the case of
> > > > https://lab.llvm.org/buildbot/#/builders/164/builds/3908, not #113491
> > >
> > >
> > > Sorry about that.
> > > Are you able to dig up any of the cmake configure logs from these builds,
> > > so that we can figure out how this
vitalybuka wrote:
The problem is that some of check_cxx_source_compiles invocation does:
```
cat t.cpp
int main() {
}
/usr/local/google/home/vitalybuka/tmp/bot/llvm_build0/bin/clang++
-fsanitize=memory -nostdlib++ -nostdinc++ -fuse-ld=lld t.cpp
>> referenced by ubsan_type_hash_itanium.cp
@@ -317,7 +311,7 @@ static SanitizerMask parseSanitizeTrapArgs(const Driver &D,
SanitizerMask AlwaysTrap; // Empty
vitalybuka wrote:
technically local-bounds is alwaystrap, but I working to change that.
https://github.com/llvm/llvm-project/pull/119819
___
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/119819
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vitalybuka wrote:
```
diff --git a/clang/lib/Driver/SanitizerArgs.cpp
b/clang/lib/Driver/SanitizerArgs.cpp
index 89f1215afd0c..234c28bfd2c3 100644
--- a/clang/lib/Driver/SanitizerArgs.cpp
+++ b/clang/lib/Driver/SanitizerArgs.cpp
@@ -1083,10 +1083,11 @@ SanitizerArgs::SanitizerArgs(const ToolChai
@@ -247,48 +247,72 @@ static SanitizerMask setGroupBits(SanitizerMask Kinds) {
return Kinds;
}
-// Computes the sanitizer mask based on the default plus opt-in (if supported)
-// minus opt-out.
+// Computes the sanitizer mask as:
+// Default + AlwaysIn + Arguments - Alwa
@@ -247,48 +247,72 @@ static SanitizerMask setGroupBits(SanitizerMask Kinds) {
return Kinds;
}
-// Computes the sanitizer mask based on the default plus opt-in (if supported)
-// minus opt-out.
+// Computes the sanitizer mask as:
+// Default + AlwaysIn + Arguments - Alwa
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/120370
1. -f[no-]sanitize-link-c++-runtime suppose to
override defauld behavior implied from `CCCIsCXX`
2. Take into account -nostdlib++
3. Fix typo hasFlag vs hasArg.
>From 6787146cf0e81ad8a69b3b2fadd7caf0f49c7
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/120370
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1,10 +1,26 @@
// NOTE: Assertions have mostly been autogenerated by
utils/update_cc_test_checks.py UTC_ARGS: --version 5
-// The most important assertion is the attributes at the end of the file, which
-// shows whether -ubsan-unique-traps attaches 'nomerge' to each ubsan ca
@@ -1,10 +1,26 @@
// NOTE: Assertions have mostly been autogenerated by
utils/update_cc_test_checks.py UTC_ARGS: --version 5
-// The most important assertion is the attributes at the end of the file, which
-// shows whether -ubsan-unique-traps attaches 'nomerge' to each ubsan ca
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/120511
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -696,6 +697,17 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
TrappingKinds &= Kinds;
RecoverableKinds &= ~TrappingKinds;
+ // Parse -f(no-)?sanitize-nonmerged-handlers flags
+ SanitizerMask AlwaysMerge; // Empty
vitalybuka wrote:
```
```
San
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/120464
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/120038
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/120038
>From b42a2ec4a07d94c6c0d73d4baedf2ffef3d3825c Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Sun, 15 Dec 2024 21:24:50 -0800
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?=
=?
https://github.com/vitalybuka closed
https://github.com/llvm/llvm-project/pull/120038
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vitalybuka wrote:
#120370 was reverted, because libc++ tests expose major problem:
Tests and likely many users can have `-nostdlib++ -lc++`.
The if we remove c++ sanitizer runtimes from linking it will break them and
force to add `-fsanitize-link-c++-runtime`
I will reland unrelated parts of #1
vitalybuka wrote:
> > #120370 was reverted, because libc++ tests expose major problem:
> > Tests and likely many users can have `-nostdlib++ -lc++`.
> > The if we remove c++ sanitizer runtimes from linking it will break them and
> > force to add `-fsanitize-link-c++-runtime`
>
> That's indeed a
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/119923
This check is a part of UBSAN, but does not support
verbose output like other UBSAN checks.
This is a step to fix that.
>From 064dadb7544c00f810f08e11860f6c403a6f336a Mon Sep 17 00:00:00 2001
From: Vitaly B
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/119894
>From 6cd26753f380d9ee89d85139a5dc58bc0e4b0632 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Fri, 13 Dec 2024 08:04:56 -0800
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
https://github.com/vitalybuka converted_to_draft
https://github.com/llvm/llvm-project/pull/119923
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vitalybuka wrote:
Would be possible to switch DiagnosedAlwaysRecoverableKinds to this function?
https://github.com/llvm/llvm-project/pull/119797
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/119797
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/119739
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1286,6 +1286,33 @@ Expected
parseRtSanPassOptions(StringRef Params) {
return Result;
}
+Expected
+parseBoundsCheckingOptions(StringRef Params) {
+ BoundsCheckingPass::ReportingMode Mode =
+ BoundsCheckingPass::ReportingMode::Trap;
+ while (!Params.empty()) {
+
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/119894
This check is a part of UBSAN, but does not support
verbose output like other UBSAN checks.
This is a step to fix that.
>From 6cd26753f380d9ee89d85139a5dc58bc0e4b0632 Mon Sep 17 00:00:00 2001
From: Vitaly B
@@ -1024,12 +1024,14 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
FPM.addPass(BoundsCheckingPass());
});
-if (LangOpts.Sanitize.has(SanitizerKind::Realtime))
+if (LangOpts.Sanitize.has(SanitizerKind::Realtime)) {
vitalybuk
https://github.com/vitalybuka updated
https://github.com/llvm/llvm-project/pull/119894
>From 6cd26753f380d9ee89d85139a5dc58bc0e4b0632 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Fri, 13 Dec 2024 08:04:56 -0800
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?
vitalybuka wrote:
> I made the followup for this one in #120572
Please severt and reland with followup. Followup is good way to go for trivial
cases which can be landed with quick or no review
https://github.com/llvm/llvm-project/pull/116462
___
cfe-
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/120538
Remove item 2 from #120370 to avoid breaking libc++ tests.
This reverts commit 60a2f32cf5ce75c9a2511d7fc2b0f24699605912.
>From 17fe10b69951dc9f2cbeb0e4547515a6191cba2c Mon Sep 17 00:00:00 2001
From: Vitaly
https://github.com/vitalybuka edited
https://github.com/llvm/llvm-project/pull/120538
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka closed
https://github.com/llvm/llvm-project/pull/120538
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1208,6 +1202,11 @@ Sanitizers
- Implemented ``-f[no-]sanitize-trap=local-bounds``, and
``-f[no-]sanitize-recover=local-bounds``.
+- ``-fsanitize-merge`` (default) and ``-fno-sanitize-merge`` have been added
for
+ fine-grained, unified control of which UBSan checks can
https://github.com/vitalybuka approved this pull request.
https://github.com/llvm/llvm-project/pull/120682
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -488,8 +489,11 @@ Removed Compiler Flags
derivatives) is now removed, since it's no longer possible to suppress the
diagnostic (see above). Users can expect an `unknown warning` diagnostic if
it's still in use.
-- The experimental flag '-ubsan-unique-traps' has been re
@@ -445,9 +445,10 @@ New Compiler Flags
- The ``-Warray-compare-cxx26`` warning has been added to warn about array
comparison
starting from C++26, this warning is enabled as an error by default.
-- '-fsanitize-merge' (default) and '-fno-sanitize-merge' have been added for
-
@@ -5,6 +5,21 @@
; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s
--check-prefixes=RTABORT
; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s
--check-prefixes=MINRT
; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s
--check-prefixes=MIN
1001 - 1100 of 1471 matches
Mail list logo