gcc: add upstream patch to fix build of GCC6 with GCC7
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 1 Jun 2017 07:37:58 +0000 (09:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 5 Jun 2017 10:05:59 +0000 (12:05 +0200)
commit2d57ad29b15628b01cdca37e8f05ac1dd376602c
tree4c3cc665abafb4afef5bcc42ecf0e421f8cee05c
parent7d2c135b9406b9ce3b83597ec0f3329413da5521
gcc: add upstream patch to fix build of GCC6 with GCC7

Building host-gcc-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'

Backported from:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=239971

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/6.3.0/942-ubsan-fix-check-empty-string.patch [new file with mode: 0644]