comparison gcc/config/arm/netbsd-elf.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 77e2b8dfacca
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Definitions of target machine for GNU compiler, NetBSD/arm ELF version. 1 /* Definitions of target machine for GNU compiler, NetBSD/arm ELF version.
2 Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. 2 Copyright (C) 2002-2017 Free Software Foundation, Inc.
3 Contributed by Wasabi Systems, Inc. 3 Contributed by Wasabi Systems, Inc.
4 4
5 This file is part of GCC. 5 This file is part of GCC.
6 6
7 GCC is free software; you can redistribute it and/or modify it 7 GCC is free software; you can redistribute it and/or modify it
12 GCC is distributed in the hope that it will be useful, but WITHOUT 12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details. 15 License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 Under Section 7 of GPL version 3, you are granted additional
18 along with GCC; see the file COPYING3. If not see 18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
20
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
19 <http://www.gnu.org/licenses/>. */ 24 <http://www.gnu.org/licenses/>. */
20 25
21 /* Run-time Target Specification. */ 26 /* Run-time Target Specification. */
22 #undef TARGET_VERSION
23 #define TARGET_VERSION fputs (" (NetBSD/arm ELF)", stderr);
24 27
25 /* arm.h defaults to ARM6 CPU. */ 28 /* arm.h defaults to ARM6 CPU. */
26 29
27 /* This defaults us to little-endian. */ 30 /* This defaults us to little-endian. */
28 #ifndef TARGET_ENDIAN_DEFAULT 31 #ifndef TARGET_ENDIAN_DEFAULT
50 #undef SUBTARGET_CPP_SPEC 53 #undef SUBTARGET_CPP_SPEC
51 #define SUBTARGET_CPP_SPEC NETBSD_CPP_SPEC 54 #define SUBTARGET_CPP_SPEC NETBSD_CPP_SPEC
52 55
53 #undef SUBTARGET_EXTRA_ASM_SPEC 56 #undef SUBTARGET_EXTRA_ASM_SPEC
54 #define SUBTARGET_EXTRA_ASM_SPEC \ 57 #define SUBTARGET_EXTRA_ASM_SPEC \
55 "-matpcs %{fpic|fpie:-k} %{fPIC|fPIE:-k}" 58 "-matpcs %{" FPIE_OR_FPIC_SPEC ":-k}"
56 59
57 /* Default to full VFP if -mhard-float is specified. */ 60 /* Default to full VFP if -mfloat-abi=hard is specified. */
58 #undef SUBTARGET_ASM_FLOAT_SPEC 61 #undef SUBTARGET_ASM_FLOAT_SPEC
59 #define SUBTARGET_ASM_FLOAT_SPEC \ 62 #define SUBTARGET_ASM_FLOAT_SPEC \
60 "%{mhard-float:{!mfpu=*:-mfpu=vfp}} \ 63 "%{mfloat-abi=hard:{!mfpu=*:-mfpu=vfp}}"
61 %{mfloat-abi=hard:{!mfpu=*:-mfpu=vfp}}"
62 64
63 #undef SUBTARGET_EXTRA_SPECS 65 #undef SUBTARGET_EXTRA_SPECS
64 #define SUBTARGET_EXTRA_SPECS \ 66 #define SUBTARGET_EXTRA_SPECS \
65 { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \ 67 { "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \
66 { "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC }, \ 68 { "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC }, \
149 s.addr = (unsigned int)(BEG); \ 151 s.addr = (unsigned int)(BEG); \
150 s.len = (END) - (BEG); \ 152 s.len = (END) - (BEG); \
151 (void) sysarch (0, &s); \ 153 (void) sysarch (0, &s); \
152 } \ 154 } \
153 while (0) 155 while (0)
154
155 #undef FPUTYPE_DEFAULT
156 #define FPUTYPE_DEFAULT "vfp"
157