aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/elf.h
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-11-21 21:29:24 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-11-21 21:29:24 +0000
commit57c21a4200547316d12580c56bb8e71b0a0a5e38 (patch)
tree9b426c8f78328a8568f10f561fbbce97ae641bb3 /gcc/config/arm/elf.h
parent5f2925a72d2c2162a6a08ee712937bdf79581777 (diff)
downloadgcc-57c21a4200547316d12580c56bb8e71b0a0a5e38.zip
gcc-57c21a4200547316d12580c56bb8e71b0a0a5e38.tar.gz
gcc-57c21a4200547316d12580c56bb8e71b0a0a5e38.tar.bz2
elf.h (SUBTARGET_EXTRA_SPECS): Add subtarget_asm_float_spec.
* config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add subtarget_asm_float_spec. (SUBTARGET_ASM_FLOAT_SPEC): Define, moving the defaults from... (ASM_SPEC): ...here. Use subtarget_asm_float_spec. From-SVN: r59358
Diffstat (limited to 'gcc/config/arm/elf.h')
-rw-r--r--gcc/config/arm/elf.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/config/arm/elf.h b/gcc/config/arm/elf.h
index 4813f38..0ad23f8 100644
--- a/gcc/config/arm/elf.h
+++ b/gcc/config/arm/elf.h
@@ -36,13 +36,19 @@ Boston, MA 02111-1307, USA. */
#ifndef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
- { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC },
+ { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \
+ { "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC },
#endif
#ifndef SUBTARGET_EXTRA_ASM_SPEC
#define SUBTARGET_EXTRA_ASM_SPEC ""
#endif
+#ifndef SUBTARGET_ASM_FLOAT_SPEC
+#define SUBTARGET_ASM_FLOAT_SPEC "\
+%{mapcs-float:-mfloat} %{msoft-float:-mno-fpu}"
+#endif
+
#ifndef ASM_SPEC
#define ASM_SPEC "\
%{mbig-endian:-EB} \
@@ -50,8 +56,7 @@ Boston, MA 02111-1307, USA. */
%{mcpu=*:-mcpu=%*} \
%{march=*:-march=%*} \
%{mapcs-*:-mapcs-%*} \
-%{mapcs-float:-mfloat} \
-%{msoft-float:-mno-fpu} \
+%(subtarget_asm_float_spec) \
%{mthumb-interwork:-mthumb-interwork} \
%(subtarget_extra_asm_spec)"
#endif