File gcc48-build-sle15.diff of Package cross-aarch64-gcc48-icecream-backend
--- ./libsanitizer/tsan/tsan_platform_linux.cc.mm 2013-03-18 08:39:48.500495167 +0000
+++ ./libsanitizer/tsan/tsan_platform_linux.cc 2018-08-20 14:19:49.963102236 +0000
@@ -292,7 +292,7 @@ bool IsGlobalVar(uptr addr) {
#ifndef TSAN_GO
int ExtractResolvFDs(void *state, int *fds, int nfd) {
int cnt = 0;
- __res_state *statp = (__res_state*)state;
+ struct __res_state *statp = (struct __res_state*)state;
for (int i = 0; i < MAXNS && cnt < nfd; i++) {
if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1)
fds[cnt++] = statp->_u._ext.nssocks[i];
--- ./libsanitizer/asan/asan_linux.cc.mm 2013-03-18 08:39:48.190491811 +0000
+++ ./libsanitizer/asan/asan_linux.cc 2018-08-20 14:13:35.621592887 +0000
@@ -26,6 +26,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>
+#include <signal.h>
#include <unistd.h>
#include <unwind.h>
--- ./libgcc/config/i386/linux-unwind.h.mm 2013-03-18 08:43:13.880718297 +0000
+++ ./libgcc/config/i386/linux-unwind.h 2018-08-20 14:07:50.019161154 +0000
@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unw
if (*(unsigned char *)(pc+0) == 0x48
&& *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
{
- struct ucontext *uc_ = context->cfa;
+ ucontext_t *uc_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
because it does not alias anything. */
@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind
siginfo_t *pinfo;
void *puc;
siginfo_t info;
- struct ucontext uc;
+ ucontext_t uc;
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
--- ./gcc/doc/gcc.texi.mm 2018-08-20 13:44:21.001786743 +0000
+++ ./gcc/doc/gcc.texi 2018-08-20 14:02:39.502996567 +0000
@@ -85,9 +85,9 @@ Published by:
@item GNU Press
@tab Website: www.gnupress.org
@item a division of the
-@tab General: @tex press@@gnu.org @end tex
+@tab General: @email{press@@gnu.org}
@item Free Software Foundation
-@tab Orders: @tex sales@@gnu.org @end tex
+@tab Orders: @email{sales@@gnu.org}
@item 51 Franklin Street, Fifth Floor
@tab Tel 617-542-5942
@item Boston, MA 02110-1301 USA
--- ./gcc/cp/cfns.h.mm 2013-03-18 08:46:37.673923419 +0000
+++ ./gcc/cp/cfns.h 2018-08-20 13:59:51.181662648 +0000
@@ -51,9 +51,6 @@ along with GCC; see the file COPYING3.
__inline
#endif
static unsigned int hash (const char *, unsigned int);
-#ifdef __GNUC__
-__inline
-#endif
const char * libc_name_p (const char *, unsigned int);
/* maximum key range = 391, duplicates = 0 */
@@ -122,12 +119,6 @@ hash (register const char *str, register
return hval + asso_values[(unsigned char)str[len - 1]];
}
-#ifdef __GNUC__
-__inline
-#ifdef __GNUC_STDC_INLINE__
-__attribute__ ((__gnu_inline__))
-#endif
-#endif
const char *
libc_name_p (register const char *str, register unsigned int len)
{