]> code.ossystems Code Review - openembedded-core.git/commit
gcc-6.3: backport fix of check for empty string in ubsan.c
authorJoshua Lock <joshua.g.lock@intel.com>
Thu, 6 Apr 2017 13:23:14 +0000 (14:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:06 +0000 (22:48 +0100)
commit7a7fcbab0365b9501c737dbc02715be14dda72a3
tree94de94b4634298ae1b85e91584adba68cbe7a878
parentaaf4c4f3d09ac3897205417eb15e19d54e0c0d05
gcc-6.3: backport fix of check for empty string in ubsan.c

Building gcc-cross-initial with GCC7 on the host fails due to the
comparison of a pointer to an integer in ubsan_use_new_style_p, which
is forbidden by ISO C++:

ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and
integer [-fpermissive]
       || xloc.file == '\0' || xloc.file[0] == '\xff'

Backport the fix from upstream GCC to enable the build with GCC 7

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-6.3.inc
meta/recipes-devtools/gcc/gcc-6.3/ubsan-fix-check-empty-string.patch [new file with mode: 0644]