wok-current diff gcc63/stuff/fix-build-with-gcc8-3.patch @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc63/stuff/fix-build-with-gcc8-3.patch	Fri Apr 19 12:48:51 2024 +0000
     1.3 @@ -0,0 +1,31 @@
     1.4 +ubsan-fix-check-empty-string.patch
     1.5 +
     1.6 +Fix ubsan compilation error using host gcc version 7.
     1.7 +
     1.8 +Take from upstream commit 4d360c3c
     1.9 +
    1.10 +  Author: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
    1.11 +  Date:   Sat May 27 21:34:09 2017 +0300
    1.12 +
    1.13 +    patches: Add patch that fixes gcc6 with gcc7
    1.14 +
    1.15 +Upstream-Status: Backport
    1.16 +Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
    1.17 +
    1.18 +---
    1.19 + gcc/ubsan.c   | 2 +-
    1.20 + 2 files changed, 5 insertions(+), 1 deletion(-)
    1.21 +
    1.22 +Index: gcc-6.3.0/gcc/ubsan.c
    1.23 +===================================================================
    1.24 +--- gcc-6.3.0.orig/gcc/ubsan.c
    1.25 ++++ gcc-6.3.0/gcc/ubsan.c
    1.26 +@@ -1471,7 +1471,7 @@ ubsan_use_new_style_p (location_t loc)
    1.27 + 
    1.28 +   expanded_location xloc = expand_location (loc);
    1.29 +   if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
    1.30 +-      || xloc.file == '\0' || xloc.file[0] == '\xff'
    1.31 ++      || xloc.file[0] == '\0' || xloc.file[0] == '\xff'
    1.32 +       || xloc.file[1] == '\xff')
    1.33 +     return false;
    1.34 +