aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libstdc++-v3
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-03-16 13:56:07 -0700
committerCaroline Tice <cmtice@google.com>2016-03-16 13:56:07 -0700
commitac16f08b86701ecf70e32f4ead8db63d92603808 (patch)
tree08f5e73c8a8f3c980468347bcc0c283bc1e6d3eb /gcc-4.9/libstdc++-v3
parent3a800d7d75ceba88429096186a2150a2d938334a (diff)
downloadtoolchain_gcc-ac16f08b86701ecf70e32f4ead8db63d92603808.tar.gz
toolchain_gcc-ac16f08b86701ecf70e32f4ead8db63d92603808.tar.bz2
toolchain_gcc-ac16f08b86701ecf70e32f4ead8db63d92603808.zip
GCC unification, part 2. Fix various errors from previous unificaiton.
The previous version of the unified GCC compiler (Android & ChromeOS) caused some ChromeOS tests to fail. It also caused an Android NDK test case to fail. This CL fixes those problems. In particular it does the following: - Fix some file formatting errors from previous unification patch. - Update ChangeLog files to reflect Android backport patches. - Find and incorporate a few missing pieces from the following backports backports from trunk r221007, r221675, r222011, r212011, r214942, r214957, r215012, r215016, r218115, r218733, r218746, r220491. This involved small changes in the following files: gcc/cfghoks.c gcc/cfgloop.c gcc/cfgloop.h gcc/except.c gcc/loop-init.c gcc/omp-low.c - Fix minor Android test case regression introduced in the previous unification patch. Change-Id: I482e3a34e3ed97c7ba609fe2954b4781f02ec617
Diffstat (limited to 'gcc-4.9/libstdc++-v3')
-rw-r--r--gcc-4.9/libstdc++-v3/acinclude.m48
-rwxr-xr-xgcc-4.9/libstdc++-v3/configure20
2 files changed, 26 insertions, 2 deletions
diff --git a/gcc-4.9/libstdc++-v3/acinclude.m4 b/gcc-4.9/libstdc++-v3/acinclude.m4
index e57ef727e..c9c059dbc 100644
--- a/gcc-4.9/libstdc++-v3/acinclude.m4
+++ b/gcc-4.9/libstdc++-v3/acinclude.m4
@@ -3550,7 +3550,13 @@ AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [
AC_MSG_CHECKING([for gthreads library])
- AC_TRY_COMPILE([#include "gthr.h"],
+ if test $enable_bionic_libs = yes; then
+ ac_include_file="$glibcxx_thread_h"
+ else
+ ac_include_file="gthr-$target_thread_file.h"
+ fi
+
+ AC_TRY_COMPILE([#include "$ac_include_file"],
[
#ifndef __GTHREADS_CXX0X
#error
diff --git a/gcc-4.9/libstdc++-v3/configure b/gcc-4.9/libstdc++-v3/configure
index 4d3fa1e5f..2032c72fe 100755
--- a/gcc-4.9/libstdc++-v3/configure
+++ b/gcc-4.9/libstdc++-v3/configure
@@ -77244,6 +77244,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
@@ -77302,6 +77308,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
@@ -78714,9 +78726,15 @@ $as_echo "$res_mutex_timedlock" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthreads library" >&5
$as_echo_n "checking for gthreads library... " >&6; }
+ if test $enable_bionic_libs = yes; then
+ ac_include_file="$glibcxx_thread_h"
+ else
+ ac_include_file="gthr-$target_thread_file.h"
+ fi
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include "gthr.h"
+#include "$ac_include_file"
int
main ()
{