]> code.ossystems Code Review - openembedded-core.git/commit
gcc-6.2: backport fix of check for empty string in ubsan.c
authorJoshua Lock <joshua.g.lock@intel.com>
Wed, 7 Jun 2017 18:46:21 +0000 (14:46 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Aug 2017 14:11:36 +0000 (15:11 +0100)
commitad685600d52b2e8b6f4cdbf46baa9f14b51565dd
tree5180935df868d3ce07e69d6f85c39423bbb1ac77
parent066a7acc4c19a4ef3428d0a7c695a2b08f45bc14
gcc-6.2: 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

(From OE-Core rev: 7a7fcbab0365b9501c737dbc02715be14dda72a3)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Cody P Schafer <dev@codyps.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/gcc/gcc-6.2.inc
meta/recipes-devtools/gcc/gcc-6.2/ubsan-fix-check-empty-string.patch [new file with mode: 0644]