wok-current view 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 source
1 ubsan-fix-check-empty-string.patch
3 Fix ubsan compilation error using host gcc version 7.
5 Take from upstream commit 4d360c3c
7 Author: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
8 Date: Sat May 27 21:34:09 2017 +0300
10 patches: Add patch that fixes gcc6 with gcc7
12 Upstream-Status: Backport
13 Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
15 ---
16 gcc/ubsan.c | 2 +-
17 2 files changed, 5 insertions(+), 1 deletion(-)
19 Index: gcc-6.3.0/gcc/ubsan.c
20 ===================================================================
21 --- gcc-6.3.0.orig/gcc/ubsan.c
22 +++ gcc-6.3.0/gcc/ubsan.c
23 @@ -1471,7 +1471,7 @@ ubsan_use_new_style_p (location_t loc)
25 expanded_location xloc = expand_location (loc);
26 if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
27 - || xloc.file == '\0' || xloc.file[0] == '\xff'
28 + || xloc.file[0] == '\0' || xloc.file[0] == '\xff'
29 || xloc.file[1] == '\xff')
30 return false;