diff options
author | Alexey Neyman <stilor@att.net> | 2017-05-29 23:12:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-29 23:12:42 -0700 |
commit | 189423937f27186d89a4cccb197569b998e2866d (patch) | |
tree | 1fbbfb3bf2aedbbc3f2b31602047a6a741c629a0 /patches/gcc | |
parent | 1607630d77d4327c4bfdac32fe417d4134c6c543 (diff) | |
parent | 6aa6c64306e45247fe780f29ae4b43b607215f88 (diff) | |
download | crosstool-ng-189423937f27186d89a4cccb197569b998e2866d.tar.gz crosstool-ng-189423937f27186d89a4cccb197569b998e2866d.tar.bz2 crosstool-ng-189423937f27186d89a4cccb197569b998e2866d.zip |
Merge pull request #725 from KirillSmirnov/gcc7
patches: Add patch that fixes gcc6 with gcc7
Diffstat (limited to 'patches/gcc')
-rw-r--r-- | patches/gcc/6.3.0/1100-ubsan-fix-check-empty-string.patch | 28 | ||||
-rw-r--r-- | patches/gcc/linaro-6.3-2017.02/1100-ubsan-fix-check-empty-string.patch | 28 |
2 files changed, 56 insertions, 0 deletions
diff --git a/patches/gcc/6.3.0/1100-ubsan-fix-check-empty-string.patch b/patches/gcc/6.3.0/1100-ubsan-fix-check-empty-string.patch new file mode 100644 index 00000000..c0127198 --- /dev/null +++ b/patches/gcc/6.3.0/1100-ubsan-fix-check-empty-string.patch @@ -0,0 +1,28 @@ +From 8db2cf6353c13f2a84cbe49b689654897906c499 Mon Sep 17 00:00:00 2001 +From: kyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Sat, 3 Sep 2016 10:57:05 +0000 +Subject: [PATCH] gcc/ * ubsan.c (ubsan_use_new_style_p): Fix check for empty + string. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239971 138bc75d-0d04-0410-961f-82ee72b054a4 + +Upstream-Status: Backport +Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> + +--- + gcc/ubsan.c | 2 +- + 2 files changed, 5 insertions(+), 1 deletion(-) + +Index: gcc-6.3.0/gcc/ubsan.c +=================================================================== +--- gcc-6.3.0.orig/gcc/ubsan.c ++++ gcc-6.3.0/gcc/ubsan.c +@@ -1471,7 +1471,7 @@ ubsan_use_new_style_p (location_t loc) + + expanded_location xloc = expand_location (loc); + if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0 +- || xloc.file == '\0' || xloc.file[0] == '\xff' ++ || xloc.file[0] == '\0' || xloc.file[0] == '\xff' + || xloc.file[1] == '\xff') + return false; + diff --git a/patches/gcc/linaro-6.3-2017.02/1100-ubsan-fix-check-empty-string.patch b/patches/gcc/linaro-6.3-2017.02/1100-ubsan-fix-check-empty-string.patch new file mode 100644 index 00000000..c0127198 --- /dev/null +++ b/patches/gcc/linaro-6.3-2017.02/1100-ubsan-fix-check-empty-string.patch @@ -0,0 +1,28 @@ +From 8db2cf6353c13f2a84cbe49b689654897906c499 Mon Sep 17 00:00:00 2001 +From: kyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Sat, 3 Sep 2016 10:57:05 +0000 +Subject: [PATCH] gcc/ * ubsan.c (ubsan_use_new_style_p): Fix check for empty + string. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239971 138bc75d-0d04-0410-961f-82ee72b054a4 + +Upstream-Status: Backport +Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> + +--- + gcc/ubsan.c | 2 +- + 2 files changed, 5 insertions(+), 1 deletion(-) + +Index: gcc-6.3.0/gcc/ubsan.c +=================================================================== +--- gcc-6.3.0.orig/gcc/ubsan.c ++++ gcc-6.3.0/gcc/ubsan.c +@@ -1471,7 +1471,7 @@ ubsan_use_new_style_p (location_t loc) + + expanded_location xloc = expand_location (loc); + if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0 +- || xloc.file == '\0' || xloc.file[0] == '\xff' ++ || xloc.file[0] == '\0' || xloc.file[0] == '\xff' + || xloc.file[1] == '\xff') + return false; + |