This commit is contained in:
Thomas Pöchtrager 2017-08-06 09:34:33 +02:00
parent a0c5314c2d
commit 6c5ff4207e
2 changed files with 13 additions and 0 deletions

View File

@ -68,6 +68,8 @@ fi
if [ $(osxcross-cmp $GCC_VERSION '==' 6.3.0) == 1 ]; then
# https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/darwin-driver.c?r1=244010&r2=244009&pathrev=244010
patch -p1 < $PATCH_DIR/darwin-driver.c.patch
# https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00129.html
patch -p1 < $PATCH_DIR/gcc-6.3.0-buildfix.patch
fi
mkdir -p build

View File

@ -0,0 +1,11 @@
--- trunk/gcc/ubsan.c 2016/09/03 09:20:03 239970
+++ trunk/gcc/ubsan.c 2016/09/03 10:57:05 239971
@@ -1469,7 +1469,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;