glibc/bits
H.J. Lu 16396c41de Add _STRING_INLINE_unaligned and string_private.h
As discussed in

https://sourceware.org/ml/libc-alpha/2015-10/msg00403.html

the setting of _STRING_ARCH_unaligned currently controls the external
GLIBC ABI as well as selecting the use of unaligned accesses withing
GLIBC.

Since _STRING_ARCH_unaligned was recently changed for AArch64, this
would potentially break the ABI in GLIBC 2.23, so split the uses and add
_STRING_INLINE_unaligned to select the string ABI. This setting must be
fixed for each target, while _STRING_ARCH_unaligned may be changed from
release to release.  _STRING_ARCH_unaligned is used unconditionally in
glibc.  But <bits/string.h>, which defines _STRING_ARCH_unaligned, isn't
included with -Os.  Since _STRING_ARCH_unaligned is internal to glibc and
may change between glibc releases, it should be made private to glibc.
_STRING_ARCH_unaligned should defined in the new string_private.h heade
file which is included unconditionally from internal <string.h> for glibc
build.

	[BZ #19462]
	* bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
	(_STRING_INLINE_unaligned): This.
	* include/string.h: Include <string_private.h>.
	* string/bits/string2.h: Replace _STRING_ARCH_unaligned with
	_STRING_INLINE_unaligned.
	* sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
	(_STRING_INLINE_unaligned): New.
	* sysdeps/aarch64/string_private.h: New file.
	* sysdeps/generic/string_private.h: Likewise.
	* sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
	* sysdeps/s390/string_private.h: Likewise.
	* sysdeps/x86/string_private.h: Likewise.
	* sysdeps/m68k/m680x0/m68020/bits/string.h
	(_STRING_ARCH_unaligned): Renamed to ...
	(_STRING_INLINE_unaligned): This.
	* sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
	to ...
	(_STRING_INLINE_unaligned): This.
	* sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
	to ...
	(_STRING_INLINE_unaligned): This.
	* sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
	to ...
	(_STRING_INLINE_unaligned): This.
2016-02-18 14:55:29 -02:00
..
byteswap-16.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
byteswap.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
confname.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dirent.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
dlfcn.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
elfclass.h
endian.h
environments.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
errno.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fcntl.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fenv.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fenvinline.h
huge_val.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
huge_valf.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
huge_vall.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
in.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
inf.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ioctl-types.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ioctls.h
ipc.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ipctypes.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
libm-simd-decl-stubs.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
link.h
local_lim.h
math-vector.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mathdef.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mathinline.h
mman-linux.h Add new header definitions from Linux 4.4 (plus older ptrace definitions). 2016-01-12 12:42:55 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
msq.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
nan.h
netdb.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
poll.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
posix_opt.h
pthreadtypes.h
resource.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sched.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
select.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sem.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
setjmp.h
shm.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigaction.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigcontext.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
siginfo.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
signum.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigset.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigstack.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sigthread.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sockaddr.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
socket.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stat.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
statfs.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
statvfs.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
stdlib-bsearch.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
string.h Add _STRING_INLINE_unaligned and string_private.h 2016-02-18 14:55:29 -02:00
stropts.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
sys_errlist.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
syslog-path.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
termios.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
time.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
types.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
typesizes.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
uio.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ustat.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
utmp.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
utsname.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
waitflags.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
waitstatus.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wchar.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wordsize.h
xtitypes.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00