aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-09-07 17:48:51 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-09-07 10:48:51 -0700
commitc811b2a5880a9b56451162099b48bc32c37c4022 (patch)
treed779624177ed78b80defb283d97c4eaf9f5e2174 /gcc
parent3bc6b3e6fc40559519e7078c3f549d0e87bdf8be (diff)
downloadgcc-c811b2a5880a9b56451162099b48bc32c37c4022.zip
gcc-c811b2a5880a9b56451162099b48bc32c37c4022.tar.gz
gcc-c811b2a5880a9b56451162099b48bc32c37c4022.tar.bz2
Use config/t-android for Android targets.
2010-09-07 H.J. Lu <hongjiu.lu@intel.com> * config.gcc: Append t-android for Android targets. * config/t-android: New. From-SVN: r163962
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config.gcc1
-rw-r--r--gcc/config/t-android23
3 files changed, 30 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f544f73..6ad6ff3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config.gcc: Append t-android for Android targets.
+
+ * config/t-android: New.
+
2010-09-07 Richard Henderson <rth@redhat.com>
* target.def (unwind_emit_before_insn): New hook.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index d33d1c6..3c093b3 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -571,6 +571,7 @@ case ${target} in
case $target in
*-*-*android*)
tm_defines="$tm_defines ANDROID_DEFAULT=1"
+ tmake_file="${tmake_file} t-android"
;;
*)
tm_defines="$tm_defines ANDROID_DEFAULT=0"
diff --git a/gcc/config/t-android b/gcc/config/t-android
new file mode 100644
index 0000000..373bb9d
--- /dev/null
+++ b/gcc/config/t-android
@@ -0,0 +1,23 @@
+# Copyright (C) 2010
+# Free Software Foundation, Inc.
+#
+# This file is part of GCC.
+#
+# GCC is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GCC is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GCC; see the file COPYING3. If not see
+# <http://www.gnu.org/licenses/>.
+
+# Use unwind-dw2-fde
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c