wok-next view gcc61/stuff/patches/gcc-6.1.0.patch @ rev 20889

Check Repology info from y* to z* packages: complete
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 15 10:27:39 2018 +0300 (2018-07-15)
parents
children
line source
1 ${src}/gcc/ubsan.c:1473:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
3 --- a/gcc/ubsan.c
4 +++ b/gcc/ubsan.c
5 @@ -1470,7 +1470,7 @@
7 expanded_location xloc = expand_location (loc);
8 if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
9 - || xloc.file == '\0' || xloc.file[0] == '\xff'
10 + || *xloc.file == '\0' || xloc.file[0] == '\xff'
11 || xloc.file[1] == '\xff')
12 return false;
14 ./md-unwind-support.h: In function 'x86_64_fallback_frame_state':
15 ./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type 'struct ucontext'
16 sc = (struct sigcontext *) (void *) &uc_->uc_mcontext;
17 ^~
19 --- a/libgcc/config/i386/linux-unwind.h
20 +++ b/libgcc/config/i386/linux-unwind.h
21 @@ -58,7 +58,7 @@
22 if (*(unsigned char *)(pc+0) == 0x48
23 && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
24 {
25 - struct ucontext *uc_ = context->cfa;
26 + struct ucontext_t *uc_ = context->cfa;
27 /* The void * cast is necessary to avoid an aliasing warning.
28 The aliasing warning is correct, but should not be a problem
29 because it does not alias anything. */