mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-26 16:09:23 -05:00
58923f2ef9
Signed-off-by: Tavi <tavi@divested.dev>
25 lines
774 B
Diff
25 lines
774 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Tue, 13 Sep 2016 22:05:56 -0400
|
|
Subject: [PATCH] use -fwrapv when signed overflow checking is off
|
|
|
|
Signed-off-by: anupritaisno1 <www.anuprita804@gmail.com>
|
|
---
|
|
core/config_sanitizers.mk | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk
|
|
index ab2d5c1ddf..d55f93081e 100644
|
|
--- a/core/config_sanitizers.mk
|
|
+++ b/core/config_sanitizers.mk
|
|
@@ -575,3 +575,9 @@ ifneq ($(findstring fsanitize,$(my_cflags)),)
|
|
endif
|
|
endif
|
|
endif
|
|
+
|
|
+ifeq ($(filter signed-integer-overflow integer undefined,$(my_sanitize)),)
|
|
+ ifeq ($(filter -ftrapv,$(my_cflags)),)
|
|
+ my_cflags += -fwrapv
|
|
+ endif
|
|
+endif
|