diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-03-14 15:45:59 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-03-14 15:45:59 -0700 |
commit | fcb96e3c842eedbfcbe26de5e7afe39efa17f227 (patch) | |
tree | cc74c50f8a74a0f7278b1f9699a7ede37581c137 /glibc | |
parent | 3d7036b9c4d6036c7264e7231af7a5531bae78b0 (diff) | |
download | riscv-gnu-toolchain-fcb96e3c842eedbfcbe26de5e7afe39efa17f227.zip riscv-gnu-toolchain-fcb96e3c842eedbfcbe26de5e7afe39efa17f227.tar.gz riscv-gnu-toolchain-fcb96e3c842eedbfcbe26de5e7afe39efa17f227.tar.bz2 |
Upgrade to glibc 2.23
Diffstat (limited to 'glibc')
-rw-r--r-- | glibc/sysdeps/riscv/atomic-machine.h (renamed from glibc/sysdeps/riscv/bits/atomic.h) | 2 | ||||
-rw-r--r-- | glibc/sysdeps/riscv/bits/string.h | 2 | ||||
-rw-r--r-- | glibc/sysdeps/riscv/linkmap.h (renamed from glibc/sysdeps/riscv/bits/linkmap.h) | 0 | ||||
-rw-r--r-- | glibc/sysdeps/unix/sysv/linux/riscv/atomic-machine.h (renamed from glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h) | 6 | ||||
-rw-r--r-- | glibc/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h | 4 | ||||
-rw-r--r-- | glibc/sysdeps/unix/sysv/linux/riscv/dl-static.c | 7 |
6 files changed, 7 insertions, 14 deletions
diff --git a/glibc/sysdeps/riscv/bits/atomic.h b/glibc/sysdeps/riscv/atomic-machine.h index a66f493..dced351 100644 --- a/glibc/sysdeps/riscv/bits/atomic.h +++ b/glibc/sysdeps/riscv/atomic-machine.h @@ -1,5 +1,5 @@ /* Low-level functions for atomic operations. RISC-V version. - Copyright (C) 2011-2014 Free Software Foundation, Inc. + Copyright (C) 2011-2016 Free Software Foundation, Inc. Contributed by Andrew Waterman (waterman@cs.berkeley.edu) at UC Berkeley. diff --git a/glibc/sysdeps/riscv/bits/string.h b/glibc/sysdeps/riscv/bits/string.h index a3d5aeb..8160b8c 100644 --- a/glibc/sysdeps/riscv/bits/string.h +++ b/glibc/sysdeps/riscv/bits/string.h @@ -8,7 +8,7 @@ #ifndef _BITS_STRING_H #define _BITS_STRING_H 1 -#define _STRING_ARCH_unaligned 0 +#define _STRING_INLINE_unaligned 0 #if defined(__GNUC__) && !defined(__cplusplus) diff --git a/glibc/sysdeps/riscv/bits/linkmap.h b/glibc/sysdeps/riscv/linkmap.h index a6df782..a6df782 100644 --- a/glibc/sysdeps/riscv/bits/linkmap.h +++ b/glibc/sysdeps/riscv/linkmap.h diff --git a/glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h b/glibc/sysdeps/unix/sysv/linux/riscv/atomic-machine.h index f075d09..e0fe86d 100644 --- a/glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h +++ b/glibc/sysdeps/unix/sysv/linux/riscv/atomic-machine.h @@ -1,5 +1,5 @@ -/* Low-level functions for atomic operations. Mips version. - Copyright (C) 2005 Free Software Foundation, Inc. +/* Low-level functions for atomic operations. RISC-V version. + Copyright (C) 2014-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,7 @@ #ifndef _LINUX_RISCV_BITS_ATOMIC_H #define _LINUX_RISCV_BITS_ATOMIC_H 1 -#include_next <bits/atomic.h> +#include_next <atomic-machine.h> #ifndef __riscv_atomic diff --git a/glibc/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h b/glibc/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h index 3e9d7f0..a4fc69b 100644 --- a/glibc/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h +++ b/glibc/sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h @@ -26,8 +26,8 @@ struct sigcontext { /* gregs[0] holds the program counter. */ unsigned long gregs[32]; - double fpregs[32]; - unsigned long fsr; + unsigned long long fpregs[32]; + unsigned int fsr; }; #endif diff --git a/glibc/sysdeps/unix/sysv/linux/riscv/dl-static.c b/glibc/sysdeps/unix/sysv/linux/riscv/dl-static.c index 3a99e7e..273552c 100644 --- a/glibc/sysdeps/unix/sysv/linux/riscv/dl-static.c +++ b/glibc/sysdeps/unix/sysv/linux/riscv/dl-static.c @@ -34,9 +34,6 @@ _dl_var_init (void *array[]) } #else -#include <bits/libc-lock.h> - -__libc_lock_define_initialized_recursive (static, _dl_static_lock) static void *variables[] = { @@ -65,8 +62,6 @@ _dl_static_init (struct link_map *l) void (*f) (void *[]); size_t i; - __libc_lock_lock_recursive (_dl_static_lock); - loadbase = _dl_lookup_symbol_x ("_dl_var_init", l, &ref, l->l_local_scope, NULL, 0, 1, NULL); @@ -85,8 +80,6 @@ _dl_static_init (struct link_map *l) f (variables); _dl_protect_relro (rtld_map); } - - __libc_lock_unlock_recursive (_dl_static_lock); } #endif |