summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-09-11 01:13:51 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-09-11 01:13:51 +0000
commitb156b56a282c24d03c541180d9973d8d35fb79a2 (patch)
tree48b2a5953fb01b904aa5f07024162d6f1252e552 /compiler-rt
parentbd7fdadb901d086ca3f612e7eaefcb9cbbbe5fc8 (diff)
downloadbcm5719-llvm-b156b56a282c24d03c541180d9973d8d35fb79a2.tar.gz
bcm5719-llvm-b156b56a282c24d03c541180d9973d8d35fb79a2.zip
Revert r163411 based on review discussion.
In code review, it looked like these warnings do not actually fire with modern Clang or GCC. However, the pragma is flat out rejected by GCC in many configurations (-Werror) so it ended up causing more problems than it fixed. Daniel agreed with reverting this, but I think didn't have time to get to it. llvm-svn: 163583
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/asan/asan_report.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler-rt/lib/asan/asan_report.cc b/compiler-rt/lib/asan/asan_report.cc
index 5138820a2e7..2a00c4e691c 100644
--- a/compiler-rt/lib/asan/asan_report.cc
+++ b/compiler-rt/lib/asan/asan_report.cc
@@ -270,9 +270,6 @@ class ScopedInErrorReport {
}
};
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Winvalid-noreturn"
-
void ReportSIGSEGV(uptr pc, uptr sp, uptr bp, uptr addr) {
ScopedInErrorReport in_report;
Report("ERROR: AddressSanitizer crashed on unknown address %p"
@@ -329,8 +326,6 @@ void ReportStringFunctionMemoryRangesOverlap(
DescribeAddress((uptr)offset2, length2);
}
-#pragma clang diagnostic pop
-
// ----------------------- Mac-specific reports ----------------- {{{1
void WarnMacFreeUnallocated(
@@ -344,9 +339,6 @@ void WarnMacFreeUnallocated(
DescribeHeapAddress(addr, 1);
}
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Winvalid-noreturn"
-
void ReportMacMzReallocUnknown(
uptr addr, uptr zone_ptr, const char *zone_name, StackTrace *stack) {
ScopedInErrorReport in_report;
@@ -369,8 +361,6 @@ void ReportMacCfReallocUnknown(
DescribeHeapAddress(addr, 1);
}
-#pragma clang diagnostic pop
-
} // namespace __asan
// --------------------------- Interface --------------------- {{{1
OpenPOWER on IntegriCloud