| 1 |
# Copyright (C) 2004-2025 Free Software Foundation, Inc. |
| 2 |
# |
| 3 |
# This file is part of GCC. |
| 4 |
# |
| 5 |
# GCC is free software; you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation; either version 3, or (at your option) |
| 8 |
# any later version. |
| 9 |
# |
| 10 |
# GCC is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with GCC; see the file COPYING3. If not see |
| 17 |
# <http://www.gnu.org/licenses/>. |
| 18 |
|
| 19 |
EXTRA_HEADERS += $(srcdir)/ginclude/unwind-arm-common.h |
| 20 |
|
| 21 |
# Create a multilib for processors with VFP floating-point, and a |
| 22 |
# multilib for those without -- using the soft-float ABI in both |
| 23 |
# cases. Symbian OS object should be compiled with interworking |
| 24 |
# enabled, so there are no separate thumb-mode libraries. |
| 25 |
|
| 26 |
# Reset all the multilib variables. |
| 27 |
MULTILIB_OPTIONS = |
| 28 |
MULTILIB_DIRNAMES = |
| 29 |
MULTILIB_EXCEPTIONS = |
| 30 |
MULTILIB_REUSE = |
| 31 |
MULTILIB_MATCHES = |
| 32 |
MULTILIB_REQUIRED = |
| 33 |
|
| 34 |
MULTILIB_OPTIONS += march=armv5te+fp |
| 35 |
MULTILIB_DIRNAMES += v5te |
| 36 |
|
| 37 |
MULTILIB_OPTIONS += mfloat-abi=softfp |
| 38 |
MULTILIB_DIRNAMES += softfp |
| 39 |
|
| 40 |
MULTLILIB_REQUIRED += march=armv5te+fp/mfloat-abi=softfp |
| 41 |
|
| 42 |
MULTILIB_MATCHES += $(foreach ARCH, $(all_early_arch), \ |
| 43 |
march?armv5te+fp=march?$(ARCH)+fp) |
| 44 |
|
| 45 |
MULTILIB_MATCHES += $(foreach FPARCH, $(v7a_fps), \ |
| 46 |
march?armv5te+fp=march?armv7-a+$(FPARCH)) |
| 47 |
|
| 48 |
MULTILIB_MATCHES += $(foreach FPARCH, $(v7ve_fps), \ |
| 49 |
march?armv5te+fp=march?armv7ve+$(FPARCH)) |
| 50 |
|
| 51 |
MULTILIB_MATCHES += $(foreach ARCH, $(all_v7_a_r), \ |
| 52 |
march?armv5te+fp=march?$(ARCH)+fp) |
| 53 |
|
| 54 |
MULTILIB_MATCHES += $(foreach ARCH, $(all_v8_archs), \ |
| 55 |
$(foreach FPARCH, $(v8_fps), \ |
| 56 |
march?armv5te+fp=march?$(ARCH)+$(FPARCH))) |