bionic/libc
Hans Boehm 32429606bf Make stdatomic.h work with gcc4.6 host compiler
This is needed to make L work correctly, and bionic tests pass
again, after applying the equivalent of
commit 00aaea3645 there.

It makes the preexisting code that uses __sync implementations
much more useful, although we should no longer be exercising that
code in AOSP.

Specifically fixes:

We were invoking __has_extension and __has_builtin for GCC compilations.
They're clang specific. Restructured the tests.

The __sync implementation was not defining the LOCK_FREE macros.

ATOMIC_VAR_INIT was using named field initializations.  These are a
C, not C++, feature, that is not supported by g++ 4.6.

The stdatomic bionic test still failed with 4.6 and glibc with our
questionable LOCK_FREE macro implementation.  Don't run that piece
with 4.6.

In L, this is a prerequisite for fixing:

    Bug:16880454
    Bug:16513433

Change-Id: I9b61e42307f96a114dce7552b6ead4ad1c544eab
2014-08-29 17:03:26 -07:00
..
arch-arm Fix pthread_getattr_np for the main thread. 2014-08-26 10:36:38 -07:00
arch-arm64 Fix pthread_getattr_np for the main thread. 2014-08-26 10:36:38 -07:00
arch-common/bionic Fixes for __cxa_finalize 2014-05-05 11:36:57 -07:00
arch-mips Merge "Fix strlen function type for mips." 2014-08-27 23:09:30 +00:00
arch-mips64 Fix pthread_getattr_np for the main thread. 2014-08-26 10:36:38 -07:00
arch-x86 Merge "Replace ambiguous cmp instruction with cmpl." 2014-08-27 22:46:07 +00:00
arch-x86_64 Fix pthread_getattr_np for the main thread. 2014-08-26 10:36:38 -07:00
bionic Add GNU-compatible strerror_r. 2014-08-28 16:37:09 -07:00
dns Merge "Switch to OpenBSD res_random." 2014-08-26 23:18:04 +00:00
include Make stdatomic.h work with gcc4.6 host compiler 2014-08-29 17:03:26 -07:00
kernel Clean up some of our python scripts. 2014-08-20 11:16:11 -07:00
private Fix pthread_getattr_np for the main thread. 2014-08-26 10:36:38 -07:00
stdio Add <stdio_ext.h> for elfutils. 2014-08-20 10:23:52 -07:00
tools __gnu_basename(3) is accounted for. 2014-08-21 11:36:07 -07:00
tzcode Fix the tzdata update tools. 2014-08-06 17:31:48 -07:00
upstream-dlmalloc Put all allocation functions into dispatch table. 2014-06-12 15:08:18 -07:00
upstream-freebsd Fix _BSD_SOURCE/__USE_BSD. 2014-08-19 09:18:03 -07:00
upstream-netbsd Ignore all __weak_alias in OpenBSD libC. 2014-08-28 15:10:01 -07:00
upstream-openbsd Ignore all __weak_alias in OpenBSD libC. 2014-08-28 15:10:01 -07:00
zoneinfo Upgrade bionic to tzdata2014f. 2014-08-06 17:38:01 -07:00
Android.mk Use the default unwind code. 2014-08-27 13:13:21 -07:00
crt.mk Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
MODULE_LICENSE_BSD auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
NOTICE Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
SYSCALLS.TXT Remove _flush_cache(2) for mips64. 2014-08-21 13:32:37 -07:00