wok-next diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc61/stuff/patches/gcc-6.1.0.patch	Sun Jul 15 10:27:39 2018 +0300
     1.3 @@ -0,0 +1,29 @@
     1.4 +${src}/gcc/ubsan.c:1473:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     1.5 +
     1.6 +--- a/gcc/ubsan.c
     1.7 ++++ b/gcc/ubsan.c
     1.8 +@@ -1470,7 +1470,7 @@
     1.9 + 
    1.10 +   expanded_location xloc = expand_location (loc);
    1.11 +   if (xloc.file == NULL || strncmp (xloc.file, "\1", 2) == 0
    1.12 +-      || xloc.file == '\0' || xloc.file[0] == '\xff'
    1.13 ++      || *xloc.file == '\0' || xloc.file[0] == '\xff'
    1.14 +       || xloc.file[1] == '\xff')
    1.15 +     return false;
    1.16 + 
    1.17 +./md-unwind-support.h: In function 'x86_64_fallback_frame_state':
    1.18 +./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type 'struct ucontext'
    1.19 +       sc = (struct sigcontext *) (void *) &uc_->uc_mcontext;
    1.20 +                                               ^~
    1.21 +
    1.22 +--- a/libgcc/config/i386/linux-unwind.h
    1.23 ++++ b/libgcc/config/i386/linux-unwind.h
    1.24 +@@ -58,7 +58,7 @@
    1.25 +   if (*(unsigned char *)(pc+0) == 0x48
    1.26 +       && *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
    1.27 +     {
    1.28 +-      struct ucontext *uc_ = context->cfa;
    1.29 ++      struct ucontext_t *uc_ = context->cfa;
    1.30 +       /* The void * cast is necessary to avoid an aliasing warning.
    1.31 +          The aliasing warning is correct, but should not be a problem
    1.32 +          because it does not alias anything.  */