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
This commit is contained in:
H.J. Lu 2010-09-07 17:48:51 +00:00 committed by H.J. Lu
parent 3bc6b3e6fc
commit c811b2a588
3 changed files with 30 additions and 0 deletions

View 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.

View 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"

23
gcc/config/t-android Normal file
View file

@ -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