svn commit: r459551 - head/devel/powerpc64-gcc/files
Antoine Brodin
antoine at FreeBSD.org
Sat Jan 20 20:32:22 UTC 2018
Author: antoine
Date: Sat Jan 20 20:32:20 2018
New Revision: 459551
URL: https://svnweb.freebsd.org/changeset/ports/459551
Log:
Fix build with clang 6
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/ubsan.c:1474:20: error: comparison between pointer and integer ('const char *' and 'int')
|| xloc.file == '\0' || xloc.file[0] == '\xff'
~~~~~~~~~ ^ ~~~~
PR: 224669
Reported by: pkg-fallout
Added:
head/devel/powerpc64-gcc/files/patch-gcc_ubsan.c (contents, props changed)
Added: head/devel/powerpc64-gcc/files/patch-gcc_ubsan.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/powerpc64-gcc/files/patch-gcc_ubsan.c Sat Jan 20 20:32:20 2018 (r459551)
@@ -0,0 +1,11 @@
+--- gcc/ubsan.c.orig 2016-12-07 22:39:29 UTC
++++ 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;
+
More information about the svn-ports-all
mailing list