Go to file
Stefan Liebler da796524f8 Use volatile global counters in test-tgmath.c.
If build with -Os on s390x, the test-tgmath fails with:
float functions not called often enough (-10000)

Within compile_testf(), the counter (count_float) is saved
before the complex functions are called.
Afterwards the saved counter differs to the current-counter.

But the tests with the complex functions do not increment count_float!
Instead count_float is saved to a register before calling totalorder
and totalordermag which both increment count_float.
The compiler is allowed to do that as totalorderf and totalordermagf
is declared with __attribute__ ((__const__)) in math/bits/mathcalls.h.

Thus this patch adjusts the global counters to be volatile.
Then count_float is saved after totalordermag.

ChangeLog:

	* math/test-tgmath.c (count_double, count_float,
	count_ldouble, count_cdouble, count_cfloat,
	count_cldouble): Use volatile int.
2018-04-19 12:32:50 +02:00
argp
assert
benchtests Undefine attribute_hidden to fix benchtests 2018-03-19 10:53:14 +00:00
bits Revert "Fix sched_param" 2018-04-19 00:09:58 +02:00
catgets
ChangeLog.old
conform hurd: xfail some structure fields ABI incompatibility with standards 2018-04-19 01:52:51 +02:00
crypt
csu hurd: Initialize TLS and libpthread before signal thread start 2018-03-25 00:52:39 +01:00
ctype
debug Use x86_64 backtrace as generic version. 2018-03-21 17:25:30 +00:00
dirent hurd: Avoid PLT for dirfd 2018-04-05 01:52:29 +02:00
dlfcn
elf elf: Correct absolute (SHN_ABS) symbol run-time calculation [BZ #19818] 2018-04-04 23:09:37 +01:00
gmon
gnulib
grp
gshadow
hesiod
htl hurd: Avoid local PLT in libpthread 2018-04-03 02:56:35 +02:00
hurd hurd: Silence warning 2018-04-04 02:06:16 +02:00
iconv
iconvdata Add aliases to recognize normalized charset names (bug 19527) 2018-04-16 17:30:56 +02:00
include hurd: Fix mach installed headers test 2018-04-19 00:42:14 +02:00
inet inet: Actually build and run tst-deadline 2018-04-04 16:08:18 +02:00
intl
io Revert __dirfd PLT avoidance for now 2018-04-02 21:45:38 +02:00
libidn
libio hurd: Avoid more libc.so local PLTs 2018-04-03 00:36:33 +00:00
locale
localedata cs_CZ locale: Add alternative month names (bug 22963). 2018-03-15 01:21:02 +01:00
login
mach hurd: Add missing symbols 2018-04-04 02:17:49 +02:00
malloc malloc: harden removal from unsorted list 2018-03-14 16:25:57 -04:00
manual Fix missing @ before texinfo command 2018-04-06 08:56:24 +02:00
math Use volatile global counters in test-tgmath.c. 2018-04-19 12:32:50 +02:00
mathvec
misc Update RWF_SUPPORTED for Linux kernel 4.16 [BZ #22947] 2018-04-03 12:19:29 -07:00
nis
nptl Filter out NPTL internal signals (BZ #22391) 2018-04-03 13:30:49 -03:00
nptl_db
nscd hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
nss
po
posix Revert "Fix sched_param" 2018-04-19 00:09:58 +02:00
pwd
resolv resolv: Fully initialize struct mmsghdr in send_dg [BZ #23037] 2018-04-09 10:08:16 +02:00
resource
rt hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
scripts Make build-many-glibcs.py build GCC for powerpcspe with --enable-obsolete. 2018-04-18 16:07:19 +00:00
setjmp Revert "hurd: Avoid PLTs for longjmp & siglongjmp" 2018-04-05 09:38:58 +02:00
shadow
signal hurd: fix build 2018-04-04 02:28:20 +02:00
socket
soft-fp
stdio-common
stdlib hurd: Avoid some PLTs in libc and librt 2018-04-02 19:07:52 +00:00
streams
string Fix i386 memmove issue (bug 22644). 2018-03-23 16:19:45 +01:00
sunrpc
support support_format_addrinfo: Include unknown error number in result 2018-04-01 19:41:01 +02:00
sysdeps hurd: Update struct statfs according to struct statvfs 2018-04-19 02:25:03 +02:00
sysvipc
termios
time
timezone
wcsmbs [BZ 1190] Make EOF sticky in stdio. 2018-03-13 08:31:56 -04:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog Use volatile global counters in test-tgmath.c. 2018-04-19 12:32:50 +02:00
config.h.in
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Add support for sqrt asm redirects 2018-03-15 19:21:35 +00:00
Makefile
Makefile.in
Makerules
NEWS hurd: Announce that glibc now builds unpatched 2018-04-02 16:45:44 +02:00
o-iterator.mk
README hurd: Announce that glibc now builds unpatched 2018-04-02 16:45:44 +02:00
Rules
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.