summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-03-13 08:09:16 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-03-13 08:09:23 +0100
commitcd0e5af236e980ee577a0a6721389158081abe0c (patch)
tree4cc6d32e39332c7268f51bb9cffdc763e5e64641 /toolchain
parentba4ff2520c8759cce53de7140323ea7932bb598b (diff)
csky: fix qemu system emulation
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/patches/gcc-6-branch-csky/gcc7.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/gcc-6-branch-csky/gcc7.patch b/toolchain/gcc/patches/gcc-6-branch-csky/gcc7.patch
new file mode 100644
index 000000000..4bffd2bb1
--- /dev/null
+++ b/toolchain/gcc/patches/gcc-6-branch-csky/gcc7.patch
@@ -0,0 +1,12 @@
+diff -Nur gcc-gcc-6-branch-csky.orig/gcc/ubsan.c gcc-gcc-6-branch-csky/gcc/ubsan.c
+--- gcc-gcc-6-branch-csky.orig/gcc/ubsan.c 2018-03-10 14:10:55.000000000 +0100
++++ gcc-gcc-6-branch-csky/gcc/ubsan.c 2018-03-10 21:16:06.358370414 +0100
+@@ -1471,7 +1471,7 @@
+
+ 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;
+