glibc/sysdeps/m68k
Joseph Myers 6642518592 Fix m68k bits/mathinline.h attributes (bug 22631).
m68k bits/mathinline.h declares various functions with const
attributes.  These are inappropriate for functions that have results
depending on the rounding mode; the machine-independent
bits/mathcalls.h only uses const attributes for a very few functions
with no rounding mode dependence, and the m68k header should do
likewise.  GCC uses pure for such functions with -frounding-math,
resulting in GCC mainline warning for conflicts with between the
header and the built-in attributes and glibc failing to build for m68k
with GCC mainline.

This patch fixes the attributes to avoid using const except when
bits/mathcalls.h does so.  (There are a few functions where maybe
bits/mathcalls.h could do so but doesn't, but keeping the headers in
sync in this regard seems to be the safe approach.)

Tested compilation with build-many-glibcs.py with GCC mainline.

	[BZ #22631]
	* sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
	argument for attrubutes.  All callers changed.
	(__inline_mathop1): Likewise.  All callers changed.
	(__inline_mathop): Likewise.  All callers changed.
	[__USE_MISC] (scalbn): Use __inline_forward instead of
	__inline_forward_c.
	[__USE_ISOC99] (scalbln): Likewise.
	[__USE_ISOC99] (nearbyint): Likewise.
	[__USE_ISOC99] (lrint): Likewise.
	[__USE_MISC] (scalbnf): Likewise.
	[__USE_ISOC99] (scalblnf): Likewise.
	[__USE_ISOC99] (nearbyintf): Likewise.
	[__USE_ISOC99] (lrintf): Likewise.
	[__USE_MISC] (scalbnl): Likewise.
	[__USE_ISOC99] (scalblnl): Likewise.
	[__USE_ISOC99] (nearbyintl): Likewise.
	[__USE_ISOC99] (lrintl): Likewise.
	* sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
	__inline_mathop and __m81_defun changed.
2017-12-19 02:02:26 +00:00
..
bits
coldfire Add sysdeps/ieee754/soft-fp. 2017-12-12 23:35:21 +00:00
fpu
m680x0 Fix m68k bits/mathinline.h attributes (bug 22631). 2017-12-19 02:02:26 +00:00
nptl nptl: Define __PTHREAD_MUTEX_{NUSERS_AFTER_KIND,USE_UNION} 2017-11-07 09:48:41 -02:00
sys Fix mcontext_t sigcontext namespace (bug 21457). 2017-08-30 22:02:04 +00:00
Implies
Makefile Enable unwind info in libc-start.c and backtrace.c 2017-09-19 15:07:58 +01:00
Versions
__longjmp.c
abort-instr.h
asm-syntax.h
backtrace.c
bsd-_setjmp.c
bsd-setjmp.c
crti.S
crtn.S
dl-machine.h m68k: Update elf_machine_load_address for static PIE 2017-10-20 03:36:47 -07:00
dl-tls.h
dl-trampoline.S
ffs.c
fpu_control.h
gccframe.h
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
memchr.S
memcopy.h
memusage.h
preconfigure Remove --with-fp / --without-fp. 2017-12-12 13:56:47 +00:00
rawmemchr.S
setjmp.c
shlib-versions
sotruss-lib.c
stackinfo.h
start.S m68k: Check PIC instead of SHARED in start.S 2017-10-20 03:34:53 -07:00
strchr.S
strchrnul.S
symbol-hacks.h
sysdep.h
tls-macros.h
tst-audit.h
wcpcpy.c
wcpcpy_chk.c