From cd0e5af236e980ee577a0a6721389158081abe0c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 13 Mar 2018 08:09:16 +0100 Subject: csky: fix qemu system emulation --- toolchain/gcc/patches/gcc-6-branch-csky/gcc7.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 toolchain/gcc/patches/gcc-6-branch-csky/gcc7.patch (limited to 'toolchain') 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; + -- cgit v1.2.3