Use config/t-android for Android targets.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 7 Sep 2010 17:48:51 +0000 (17:48 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 7 Sep 2010 17:48:51 +0000 (10:48 -0700)
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

gcc/ChangeLog
gcc/config.gcc
gcc/config/t-android [new file with mode: 0644]

index f544f7357697723f04eb232df7a385ef885262c2..6ad6ff32597a7af67abab2d7874b346d69dcfa06 100644 (file)
@@ -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.
index d33d1c6832b3adb0a38eac84e9885f6684197bce..3c093b304b59b02c86bab974efe6dd19b0642c3f 100644 (file)
@@ -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 (file)
index 0000000..373bb9d
--- /dev/null
@@ -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