Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.60 KB | None | 0 0
  1. diff -ruN gcc-8-20190118/libgo/go/syscall/libcall_linux.go gcc-8-20190118_b/libgo/go/syscall/libcall_linux.go
  2. --- gcc-8-20190118/libgo/go/syscall/libcall_linux.go    2017-07-21 13:25:13.000000000 -0700
  3. +++ gcc-8-20190118_b/libgo/go/syscall/libcall_linux.go  2019-01-20 05:23:26.090120737 -0800
  4. @@ -334,19 +334,19 @@
  5.  //sys  Setxattr(path string, attr string, data []byte, flags int) (err error)
  6.  //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
  7.  
  8. -//sys  splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
  9. -//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
  10. +//sys  splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
  11. +//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
  12.  func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
  13. -   var lroff _loff_t
  14. -   var plroff *_loff_t
  15. +   var lroff _off_t
  16. +   var plroff *_off_t
  17.     if roff != nil {
  18. -       lroff = _loff_t(*roff)
  19. +       lroff = _off_t(*roff)
  20.         plroff = &lroff
  21.     }
  22. -   var lwoff _loff_t
  23. -   var plwoff *_loff_t
  24. +   var lwoff _off_t
  25. +   var plwoff *_off_t
  26.     if woff != nil {
  27. -       lwoff = _loff_t(*woff)
  28. +       lwoff = _off_t(*woff)
  29.         plwoff = &lwoff
  30.     }
  31.     n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
  32. diff -ruN gcc-8-20190118/libgo/mksigtab.sh gcc-8-20190118_b/libgo/mksigtab.sh
  33. --- gcc-8-20190118/libgo/mksigtab.sh    2017-11-21 16:27:29.000000000 -0800
  34. +++ gcc-8-20190118_b/libgo/mksigtab.sh  2019-01-20 05:03:36.287994560 -0800
  35. @@ -82,7 +82,6 @@
  36.  checksig _SIGEMT     '{_SigThrow, "SIGEMT: emulate instruction executed"}'
  37.  checksig _SIGINFO    '{_SigNotify, "SIGINFO: status request from keyboard"}'
  38.  checksig _SIGTHR     '{_SigNotify, "SIGTHR: reserved"}'
  39. -checksig _SIGPOLL    '{_SigNotify, "SIGPOLL: pollable event occurred"}'
  40.  checksig _SIGWAITING '{_SigNotify, "SIGWAITING: reserved signal no longer used by"}'
  41.  checksig _SIGLWP     '{_SigNotify, "SIGLWP: reserved signal no longer used by"}'
  42.  checksig _SIGFREEZE  '{_SigNotify, "SIGFREEZE: special signal used by CPR"}'
  43. diff -ruN gcc-8-20190118/libgo/mksysinfo.sh gcc-8-20190118_b/libgo/mksysinfo.sh
  44. --- gcc-8-20190118/libgo/mksysinfo.sh   2018-11-09 07:29:52.000000000 -0800
  45. +++ gcc-8-20190118_b/libgo/mksysinfo.sh 2019-01-20 05:51:43.081806722 -0800
  46. @@ -345,7 +345,7 @@
  47.  echo 'type Size_t _size_t' >> ${OUT}
  48.  echo "type Ssize_t _ssize_t" >> ${OUT}
  49.  if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
  50. -  echo "type Offset_t _off64_t" >> ${OUT}
  51. +  echo "type Offset_t _off_t" >> ${OUT}
  52.  else
  53.    echo "type Offset_t _off_t" >> ${OUT}
  54.  fi
  55. diff -ruN gcc-8-20190118/libgo/runtime/proc.c gcc-8-20190118_b/libgo/runtime/proc.c
  56. --- gcc-8-20190118/libgo/runtime/proc.c 2018-02-01 16:16:43.000000000 -0800
  57. +++ gcc-8-20190118_b/libgo/runtime/proc.c   2019-01-20 06:10:34.088820091 -0800
  58. @@ -166,10 +166,6 @@
  59.         asm ("std 13, %0" : "=m"(c->uc_mcontext.jmp_context.gpr[13]));
  60.  }
  61.  
  62. -# else
  63. -
  64. -#  error unknown case for SETCONTEXT_CLOBBERS_TLS
  65. -
  66.  # endif
  67.  
  68.  #endif
  69. diff -ruN gcc-8-20190118/libgo/sysinfo.c gcc-8-20190118_b/libgo/sysinfo.c
  70. --- gcc-8-20190118/libgo/sysinfo.c  2018-06-22 07:25:34.000000000 -0700
  71. +++ gcc-8-20190118_b/libgo/sysinfo.c    2019-01-20 04:24:16.485860995 -0800
  72. @@ -7,6 +7,8 @@
  73.  /* This file is passed to GCC with the -fdump-go-spec option to
  74.     generate a Go version of the system information.  */
  75.  
  76. +#define _LINUX_SYSINFO_H
  77. +
  78.  #include "config.h"
  79.  
  80.  #include <stddef.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement