Commit Graph

956 Commits

Author SHA1 Message Date
Carlos O'Donell a01f19c8fb i386: Fail at configure time for i386 builds.
This change does two things:

* Treats a target i386-* as if it were i686.
* Fails configure if the user is generating code
  for i386.

We no longer support i386 code-generation because the i386
lacks the atomic operations we need in glibc.

You can still configure for i386-*, but you get i686 code.

You can't build with --march=i386, --mtune=i386 or a compiler
that defaults to i386 code-generation.

I've added two i386 entries in the master todo list to discuss
merging and renaming:
http://sourceware.org/glibc/wiki/Development_Todo/Master#i386

The failure modes are fail-safe here. You compile for i386,
get i686, and try to run on i386 and it fails. The configure
log has a warning saying we elided to i686. There is no situation
that I can see where we run into any serious problems.

The patch makes the current state better in that we get less
confused users and we build successfully in more default
configurations.

The next enhancement would be to add --march=i?86
as suggested in #c20 of BZ#10062 for any i?86-* builds, which
would solve the problem of a 32-bit compiler that defaults to
i386 code-gen and glibc configured for i686-* target. Which
previously failed at build time, and now will fail at configure
time (requires adding --march=i686).

Updated NEWS with BZ #10060 and #10062.

No regressions.

---

2013-04-06  Carlos O'Donell  <carlos@redhat.com>

	[BZ #10060, #10062]
	* aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
	* sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
	fail configure if __sync_val_compare_and_swap is not inlined.
	* sysdeps/i386/configure: Regenerate.
	* configure.in: Build for i686 when configured for i386.
	* configure: Regenerate.
	* README: Remove i386 reference.
2013-04-06 12:00:35 -04:00
Thomas Schwinge a1cbf437a5 [BZ #14686, #15336] Fix standard compliance. Don't use hard-coded qNaN values. 2013-04-05 22:34:52 +02:00
Thomas Schwinge 8b43a0c9f2 [BZ #15335, #15342] Fix standard compliance. Don't use hard-coded qNaN values. 2013-04-05 22:27:29 +02:00
Siddhesh Poyarekar 5113cea9b7 Add BZ #15337 to NEWS 2013-04-04 19:47:41 +05:30
Joseph Myers 05e166c887 Fix missing underflow from cexp (bug 14478). 2013-04-03 16:51:46 +00:00
Andreas Schwab 5b535ac419 Update NEWS 2013-04-03 17:56:47 +02:00
Andreas Schwab 1cef1b1908 Fix stack overflow in getaddrinfo with many results 2013-04-03 17:39:15 +02:00
Siddhesh Poyarekar d755bba40f Preserve errno across _PC_CHOWN_RESTRICTED call on XFS
Fix BZ #15305.

On kernel versions earlier than 2.6.29, the Linux kernel exported a
sysctl called restrict_chown for xfs, which could be used to allow
chown to users other than the owner.  2.6.29 removed this support,
causing the open_not_cancel_2 to fail and thus modify errno.  The fix
is to save and restore errno so that the caller sees it as unmodified.

Additionally, since the code to check the sysctl is not useful on
newer kernels, we add an ifdef so that in future the code block gets
rmeoved completely.
2013-04-03 10:56:45 +05:30
Joseph Myers 52ce486045 Fix cacosh inaccuracy and spurious exceptions (bug 15327). 2013-04-02 22:54:00 +00:00
Thomas Schwinge 572676160d New <math.h> macro named issignaling to check for a signaling NaN (sNaN).
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-04-02 13:51:02 +02:00
Joseph Myers ccc8cadf75 Fix casinh inaccuracy for imaginary part < 1.0, real part small (bug 10357). 2013-03-30 13:31:53 +00:00
Joseph Myers af15c19176 Fix typo in bug number in NEWS. 2013-03-28 21:43:56 +00:00
Adhemerval Zanella fbbe2b9a1f Fix e_logl (128ibm) spurious underflow 2013-03-28 09:52:48 -03:00
Siddhesh Poyarekar 7a86be6e5f Don't add input group during initgroups_dyn in hesiod
Fixes BZ #15304.

The *initgroups_dyn functions are called with a group argument.  This
group gid is usually skipped while populating the grouplist since the
caller adds that group id in advance.

The hesiod initgroups_dyn implementation however adds the group gid to
the list if it does not already exist.  While it works fine for the
usual initgroups, it breaks nscd since it calls initgroups_dyn with -1
as the gid (to have all groups included).
2013-03-28 11:45:47 +05:30
Joseph Myers 3a7182a14b Fix casinh inaccuracy near i, imaginary part > 1 (bug 15307). 2013-03-27 14:38:44 +00:00
Adhemerval Zanella e42a38dd9d BZ#13889: expl (709.75) wrongly overflows for ldbl-128ibm
The patch increase the high value to check if expl overflows. Current
high mark value is not really correct, the algorithm accepts high values.
It also adds a correct wrapper function to check for overflow and underflow.
2013-03-22 12:39:10 -03:00
Dmitry V. Levin 2e0fb52187 BZ#11120: fix x86_64/strcmp.S NOT_IN_libc safeguards
Due to a typo repeated several times, this bug hasn't been fixed yet,
despite being marked as resolved in glibc 2.12.

* sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
with NOT_IN_libc.
2013-03-22 03:16:00 +00:00
Joseph Myers 98c48fe5cc Fix Bessel function spurious overflows for ldbl-128 / ldbl-128ibm (bug 15285). 2013-03-21 13:57:21 +00:00
Joseph Myers 0a1b2ae6f6 Fix casinh inaccuracy for argument with imaginary part 1 (bug 15287). 2013-03-21 10:27:10 +00:00
Joseph Myers 44f908d0e9 Add bug 14176 to NEWS. 2013-03-20 20:21:24 +00:00
Roland McGrath 3bd49b20ff BZ#14812: Mark fixed in NEWS. 2013-03-20 13:11:51 -07:00
Carlos O'Donell f816705060 Move BZ#11261 from 2.18 to 2.16 bug list.
BZ#11261 was fixed in the 2.16 release even if we only found out
that it was fixed in the 2.18 release. Testing shows it is fixed
in the 2.16 release so we add it to that NEWS section.
2013-03-17 18:39:28 -04:00
Carlos O'Donell 280ea923be BZ#11261 fixed by previous commit.
Fixed by 41b81892f1.

Verified fixed by using test case in BZ#11261.
2013-03-17 13:15:43 -04:00
Joseph Myers d2f9799e7c Fix y1l spurious overflows for ldbl-96 (bug 15283). 2013-03-16 17:51:48 +00:00
Siddhesh Poyarekar 8cfdb7e056 Framework for performance benchmarking of functions
See benchtests/Makefile to know how to use it.
2013-03-15 12:30:03 +05:30
Andreas Schwab fb6b0fcbf1 Remove extra pthread_atfork compat symbols 2013-03-11 09:47:01 +01:00
Siddhesh Poyarekar adbb8027be Remove PIPE_BUF Linux-specific code
Fixes BZ #12723

The variable pipe buffer size does nothing to the value of PIPE_BUF,
since the number of bytes that are atomically written is still
PIPE_BUF on Linux.
2013-03-07 12:15:08 +05:30
Andreas Krebbel 8a4473cc90 S/390: Add BZ number to changelog entry and NEWS. 2013-03-06 09:57:32 +01:00
Joseph Myers 2d67d91ac0 Remove powerpc64 bounded-pointers code. 2013-03-06 00:10:21 +00:00
Adhemerval Zanella e0b780ad5b BZ #15055: Use __ieee754_sqrl in acoshl for lbdl-128ibm 2013-03-04 11:37:51 -03:00
Carlos O'Donell 4e9b599577 Revert GLIBC_PTHREAD_DEFAULT_STACKSIZE changes.
This reverts the change that allows the POSIX Thread default stack size
to be changed by the environment variable
GLIBC_PTHREAD_DEFAULT_STACKSIZE. It has been requested that more
discussion happen before this change goes into 2.18.
2013-03-01 16:18:08 -05:00
Siddhesh Poyarekar e5c74c633e Update NEWS 2013-03-01 20:43:40 +05:30
Siddhesh Poyarekar e23872c8db Set default stack size from program environment
New environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE to do this.
2013-03-01 14:15:39 +05:30
Siddhesh Poyarekar 7da6d9ed26 Fix FPE in memusagestat when malloc utilization is zero
[BZ #15160]

Draw graphs for heap and stack only if MAXSIZE_HEAP and MAXSIZE_STACK
are non-zero.
2013-02-26 14:24:40 +05:30
Siddhesh Poyarekar 55e4107b2c Add NEWS entry for C++11 thread_local support. 2013-02-19 09:58:05 +05:30
Siddhesh Poyarekar 8313cb997d FUTEX_*_REQUEUE_PI support for non-x86 code
Add FUTEX_*_REQUEUE_PI support for the default C code and also add
implementations for s-390 and ppc.
2013-02-18 16:07:10 +05:30
Andreas Schwab a445af0bc7 Fix buffer overrun in regexp matcher 2013-02-12 09:30:34 +01:00
Andreas Schwab 7e2f0d2d77 Fix handling of collating symbols in regexps 2013-02-12 09:25:34 +01:00
Carlos O'Donell ddacd1db6a BZ #15006: Updates NEWS and ChangeLog. 2013-02-08 12:37:44 -05:00
Maciej W. Rozycki b82ba2f011 MIPS: Respect the legacy syscall restart convention.
That convention requires the instruction immediately preceding SYSCALL
to initialize $v0 with the syscall number.  Then if a restart triggers,
$v0 will have been clobbered by the syscall interrupted, and needs to be
reinititalized.  The kernel will decrement the PC by 4 before switching
back to the user mode so that $v0 has been reloaded before SYSCALL is
executed again.  This implies the place $v0 is loaded from must be
preserved across a syscall, e.g. an immediate, static register, stack
slot, etc.

The restriction was lifted with Linux 2.6.36 kernel release and no
special requirements are placed around the SYSCALL instruction anymore,
however we still support older kernel binaries.
2013-02-05 14:55:20 +00:00
Andreas Schwab 903ae060db Don't use GLIBC_PRIVATE errno outside of libraries 2013-02-04 10:01:54 +01:00
Joseph Myers 8cf28c5ebe Fix casinh spurious underflows away from [-i,i] (bug 15062). 2013-01-31 22:55:29 +00:00
Joseph Myers 052aff9578 Make bits/wchar.h correct for all architectures (bug 15036). 2013-01-23 00:42:51 +00:00
Andreas Schwab ab087e0aa4 Avoid busy loop in wordexp when substituted command closed its stdout 2013-01-21 10:40:04 +01:00
Siddhesh Poyarekar f7bff1ed96 Update NEWS 2013-01-18 14:41:14 +05:30
Joseph Myers 728d7b43fc Fix cacos real-part inaccuracy for result real part near 0 (bug 15023). 2013-01-17 20:25:51 +00:00
Andreas Schwab cfa8054fbb Hide reference to mktemp in libpthread 2013-01-16 15:57:11 +01:00
H.J. Lu 1a20cb20ff Correct _XXX_ILP32_OFFBIG for x32 2013-01-10 08:38:48 -08:00
Andreas Schwab 988197f0cc Define flags for fallocate 2013-01-10 09:59:57 +01:00
David S. Miller e83d72988d Sync netinet/tcp.h with upstream Linux kernel.
[BZ# 15003]
	* sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
	TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
	TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
	TCP_FASTOPEN): Define.
	(tcp_repair_opt): New structure.
	(TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
	enum values.
	(TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
	TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
	TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
	(tcp_cookie_transactions): New structure.
2013-01-09 23:04:32 -08:00
Andreas Jaeger c40ea3d9a3 BZ#14985: Remove erroneous EPOLL_NONBLOCK
[BZ# 14985]
	* sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
	Remove.
	* sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK):
	Likewise.
	* sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK):
	Likewise.

ChangeLog.mips:
	[BZ# 14985]
	* sysdeps/unix/sysv/linux/mips/bits/epoll.h (EPOLL_NONBLOCK):
	* Remove.

ChangeLog.hppa:
	[BZ# 14985]
	* sysdeps/unix/sysv/linux/hppa/sys/epoll.h (EPOLL_NONBLOCK):
	Remove.

ChangeLog.alpha:
	[BZ# 14985]
	* sysdeps/unix/sysv/linux/alpha/bits/epoll.h (EPOLL_NONBLOCK):
	Remove.
2013-01-08 19:32:00 +01:00
Joseph Myers a9708fed77 Fix casinh, casin overflow (bug 14996). 2013-01-07 14:59:53 +00:00
Joseph Myers cdc1c96fba Fix casinh, casin inaccuracy from cancellation (bug 14994). 2013-01-04 13:25:17 +00:00
Andreas Schwab a92d7d69e4 Update NEWS 2013-01-03 12:13:10 +01:00
Chris Leonard 763cefa7b2 New dz_BT maintainer info
[BZ #14982]
	* locales/dz_BT: Add new contact information for dz-BT
	maintainer.
2013-01-03 10:00:35 +01:00
Chris Leonard 39c7ba23f0 Correct LC_ADDRESS countryname for Bhutan in Dzongkha
[BZ #13951]
	* locales/dz_BT: Correct LC_ADDRESS countryname for Bhutan in
	Dzongkha.
2013-01-03 10:00:35 +01:00
Joseph Myers e6898b8d92 Update miscellaneous copyright dates. 2013-01-02 19:43:40 +00:00
Joseph Myers 568035b787 Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
2012-12-27 Bruno Haible 7fffbdfff7 BZ#14317: Optimze __xpg_strerror_r
[BZ #14317]
* string/xpg-strerror.c (__xpg_strerror_r): Optimize, call
strlen only if needed.
2012-12-27 22:37:39 +01:00
David S. Miller 2c8bfe7d6f Open development for 2.18.
* version.h (RELEASE): Set to "development".
	(VERSION): Set to "2.17.90".
	* NEWS: Add 2.18 section.
2012-12-25 01:23:43 -08:00
Steve Ellcey 95b4f1b626 2012-12-19 Steve Ellcey <sellcey@mips.com>
* NEWS:  Mention new memcpy for MIPS.
2012-12-19 08:56:08 -08:00
David S. Miller 0d224d52d5 Fix typo in previous commit. 2012-12-13 15:42:06 -05:00
David S. Miller 85429b1a8f Mention IFUNC enhancements to testsuite in NEWS.
* NEWS: Mention IFUNC testsuite enhancements.
2012-12-13 15:40:06 -05:00
Siddhesh Poyarekar 3c8b4190fe Move node Argp Helper Functions to follow Argp Parsing State
Resolves BZ #14246.
2012-12-11 09:02:37 +05:30
Siddhesh Poyarekar f70bfe80e2 Mention if terminating null is included in NAME_MAX/PATH_MAX
Fixes BZ #14872.
2012-12-11 09:01:02 +05:30
Richard Henderson 7e9da188a1 Mark BZ#10114 as fixed. 2012-12-10 07:50:42 -08:00
Benno Schulenberg c430c4afd6 BZ #14833: message.texi typo fixes 2012-12-08 12:35:35 +05:30
Andreas Schwab 67cbf9a2a9 [BZ #14898]
* include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
	Change to -1.
2012-12-07 14:55:19 -07:00
Joseph Myers d981452619 Change sources.redhat.com references to sourceware.org. 2012-12-06 15:32:46 +00:00
Joseph Myers b3b099af03 Fix powl inaccuracy for ldbl-128ibm (bug 14914). 2012-12-04 14:39:24 +00:00
Aurelien Jarno cc8bb21c8a Fix assertion failures in resolver (BZ #13013).
[BZ #13013]
	* resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
	depending n and resplen2 to catch cases where answer
	equals answerp2.
2012-11-30 15:04:27 -05:00
Joseph Myers 1672585fc1 Add 64-bit support to MIPS register-dump.h (bug 14893). 2012-11-29 23:03:48 +00:00
Carlos O'Donell f06cc227e2 Update ChangeLog and NEWS for BZ #14197. 2012-11-29 14:51:49 -08:00
Carlos O'Donell 80ceeaeef9 hppa: Cleanup two build warnings for integer to pointers casts. 2012-11-29 17:59:59 -05:00
Jeff Law 2af1b32853 [BZ #13761]
* nscd/grpcache.c (cache_addgr): Rename alloca_used to
        dataset_temporary.  Track alloca usage into alloca_used.
        If dataset is large allocate and release it via malloc/free.
2012-11-29 10:46:19 -07:00
Carlos O'Donell 77a13b85e3 hppa: Add BZ#14447 to NEWS and ChangeLog.hppa. 2012-11-29 10:08:31 -05:00
Nik Kalach d928658238 Add Interlingua locale
[BZ#14879]
	* locales/ia_FR : New file
	* SUPPORTED (SUPPORTED-LOCALES): Add appropriate entry.
2012-11-29 08:31:13 +01:00
Joseph Myers 9984dd0126 Use hex float 64-bit values in ldbl-96 asinl (bug 14803). 2012-11-28 21:46:16 +00:00
Jeff Law 14bc93a967 [BZ #14889]
* sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
        * sunrpc/svc.c: Include time.h.
        (__svc_accept_failed): New function.
        * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
        any reason other than EINTR, call __svc_accept_failed.
        * sunrpc/svc_udp.c (svcudp_recv): Similarly.
        * sunrpc/svc_unix.c (rendezvous_request): Similarly.
2012-11-28 14:16:12 -07:00
Joseph Myers b54eb3cb0a Add more NEWS items for 2.17. 2012-11-28 17:07:39 +00:00
Andreas Schwab 4cc34c3511 Revert "2012-11-07 Andreas Jaeger <aj@suse.de>"
This reverts commit 01f34a3bd8.

The issue has been fixed in the kernel.
2012-11-28 16:19:03 +01:00
Joseph Myers 1bead169c3 Fix powl inaccuracy for x86_64 and x86 (bug 13881). 2012-11-28 13:40:54 +00:00
Joseph Myers 0a42601f27 Fix ldbl-128ibm atanl spurious underflows (bug 14871). 2012-11-22 19:56:47 +00:00
Joseph Myers 1468ded38e Fix ldbl-128ibm hypotl internal underflows (bug 14869). 2012-11-22 14:58:41 +00:00
Joseph Myers 8e27e3cc45 Fix ldbl-128ibm hypotl inaccuracy for arguments with large ratio (bug 14868). 2012-11-22 14:57:22 +00:00
Joseph Myers fc6394c6fc Implement MIPS n64 sendfile64 as alias of sendfile syscall (bug 14822). 2012-11-22 02:37:02 +00:00
Chris Leonard 5a04f37674 Add locales niu_NU and niu_NZ
2012-11-21  Chris Leonard  <cjl@sugarlabs.org>

	[BZ #14863]
	* SUPPORTED: Add niu_NU and niu_NZ.
	* locales/niu_NU: Add Niuean (Vagahau Niue) locale for Niue,
	contributed by Chris Leonard <cjl@sugarlabs.org> and Emani
	Fakaotimanava-Lui <emani@niue.nu>.
	* locales/niu_NZ: Add Niuean (Vagahau Niue) locale for New
	Zealand, contributed by Chris Leonard <cjl@sugarlabs.org> and Emani
	Fakaotimanava-Lui <emani@niue.nu>.
2012-11-21 21:38:44 +01:00
H.J. Lu 6bfea97493 Properly check linker -z XXX support 2012-11-21 12:34:32 -08:00
Joseph Myers ad35f2dd75 Make ARM fesetenv (FE_NOMASK_ENV) detect failure (bug 14866). 2012-11-21 20:26:56 +00:00
Joseph Myers 877f2d8e8d Fix _POSIX_TZNAME_MAX for older POSIX (bug 14856). 2012-11-19 23:36:20 +00:00
Joseph Myers ee663277dc Define siginfo_t in signal.h for XPG4 (bug 14835). 2012-11-19 22:17:58 +00:00
Eagle Burkut 381594c4cf Fix ug_CN
[BZ #13759]
	* locales/ug_CN (LC_COLLATE, LC_TIME, LC_MESSAGES): Fix entries.
2012-11-19 20:38:39 +01:00
Siddhesh Poyarekar cfde9b463d Return EAI_SYSTEM if we're out of file descriptors
Resolves BZ #14719.
2012-11-19 13:02:48 +05:30
Peng Haitao f6da27e536 bindresvport() uses two static variables port and startport which are not
protected. It is not safe when in multithread circumstance.

bindresvport() select a port number from the range 512 to 1023, when in
multithread circumstance, the port may be 1024. So the static variables will be
protected.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19 02:05:12 -05:00
Andrej Lajovic d64d9f8780 iconv: Fix -c
2012-11-16  Andrej Lajovic  <natrij@gmail.com>

	[BZ #14672]
	* iconv/iconv_prog.c (main): Fix -c handling of '/'.
2012-11-16 18:48:36 +01:00
Andreas Jaeger 02665652d7 Add szl_PL
[BZ #14368]
	* locales/szl_PL: New Silesian Language Locale for Poland.
	Contributed by Przemyslaw Buczkowski <przemub@yahoo.pl>.
	* localedata/SUPPORTED (SUPPORTED-LOCALES): Add szl_PL.
2012-11-16 15:23:52 +01:00
Siddhesh Poyarekar 2b766585f9 printf should return negative value on error
[BZ #11741]
Fixed bug where printf and family may return a spurious success when
printing padded formats.
2012-11-16 19:13:11 +05:30
Andreas Jaeger d14fbb177a Add ayc_PE locale
[BZ # 14828]
	* locales/ayc_PE: Add Aymara locale for Peru
	contributed by Chris Leonard <cjl@sugarlabs.org> and
	Amos Batto <amosbatto@yahoo.com>.
	* SUPPORTED (SUPPORTED-LOCALES): Add ayc_PE.
2012-11-16 09:45:33 +01:00
Andreas Jaeger 0d319877cd Add nhn_MX locale
[BZ # 14501]
	* locales/nhn_MX: Add Central Nahuatl locale for Mexico,
	contributed by Jorge Becerril <jrbecster@gmail.com>.
	* SUPPORTED (SUPPORTED-LOCALES): Add nhn_MX.
2012-11-16 09:37:28 +01:00
Chris Leonard 9f9082ffa0 Correct L10n of country-name and lang-name in km_KH
[BZ #13952]
	* locales/km_KH: Correct country-name and lang-name.
2012-11-15 19:37:48 +01:00