Date: Sat, 20 Jan 2018 20:32:20 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459551 - head/devel/powerpc64-gcc/files Message-ID: <201801202032.w0KKWKZj001985@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801202032.w0KKWKZj001985>