netbsd-eabi.h was never merged from the now present upstream version.
reduce diffs to upstream here and in other files in this subdir. remove unused ARM_EABI_UNWIND_TABLES and __UNWIND_TABLES__. clang defines __UNWIND_TABLES__, but doing this in GCC triggers the need for more libgcc / libc unwind functionality to be added, and this code has never been enabled for netbsd/earm. (could potentially clean up unused code in libc now, or, revive this once the full support has been implemented..)
This commit is contained in:
parent
eda596189c
commit
d946536fcb
@ -28,12 +28,9 @@
|
|||||||
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS
|
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS
|
||||||
|
|
||||||
/* Assume that AAPCS ABIs should adhere to the full BPABI. */
|
/* Assume that AAPCS ABIs should adhere to the full BPABI. */
|
||||||
//#undef TARGET_BPABI
|
|
||||||
#define TARGET_BPABI (TARGET_AAPCS_BASED)
|
#define TARGET_BPABI (TARGET_AAPCS_BASED)
|
||||||
|
|
||||||
/* BPABI targets use EABI frame unwinding tables. */
|
/* BPABI targets use EABI frame unwinding tables. */
|
||||||
#undef ARM_EABI_UNWIND_TABLES
|
|
||||||
#define ARM_EABI_UNWIND_TABLES 1
|
|
||||||
#undef ARM_UNWIND_INFO
|
#undef ARM_UNWIND_INFO
|
||||||
#define ARM_UNWIND_INFO 1
|
#define ARM_UNWIND_INFO 1
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Definitions of target machine for GNU compiler, NetBSD/arm ELF version.
|
/* Definitions of target machine for GNU compiler, NetBSD/arm ELF version.
|
||||||
Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
|
Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||||
Contributed by Wasabi Systems, Inc.
|
Contributed by Wasabi Systems, Inc.
|
||||||
|
|
||||||
This file is part of GCC.
|
This file is part of GCC.
|
||||||
@ -22,10 +22,16 @@
|
|||||||
#undef MULTILIB_DEFAULTS
|
#undef MULTILIB_DEFAULTS
|
||||||
#define MULTILIB_DEFAULTS { "mabi=aapcs-linux" }
|
#define MULTILIB_DEFAULTS { "mabi=aapcs-linux" }
|
||||||
|
|
||||||
|
#define TARGET_LINKER_EABI_SUFFIX_SOFT \
|
||||||
|
"%{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=hard:_eabihf;:_eabi}}}"
|
||||||
|
#define TARGET_LINKER_EABI_SUFFIX_HARD \
|
||||||
|
"%{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=soft:_eabi;:_eabihf}}}"
|
||||||
|
|
||||||
#define TARGET_LINKER_EABI_SUFFIX \
|
#define TARGET_LINKER_EABI_SUFFIX \
|
||||||
(TARGET_DEFAULT_FLOAT_ABI == ARM_FLOAT_ABI_SOFT \
|
(TARGET_DEFAULT_FLOAT_ABI == ARM_FLOAT_ABI_SOFT \
|
||||||
? "%{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=hard:_eabihf;:_eabi}}}" \
|
? TARGET_LINKER_EABI_SUFFIX_SOFT \
|
||||||
: "%{!mabi=apcs-gnu:%{!mabi=atpcs:%{mfloat-abi=soft:_eabi;:_eabihf}}}")
|
: TARGET_LINKER_EABI_SUFFIX_HARD)
|
||||||
|
|
||||||
#define TARGET_LINKER_BIG_EMULATION "armelfb_nbsd%(linker_eabi_suffix)"
|
#define TARGET_LINKER_BIG_EMULATION "armelfb_nbsd%(linker_eabi_suffix)"
|
||||||
#define TARGET_LINKER_LITTLE_EMULATION "armelf_nbsd%(linker_eabi_suffix)"
|
#define TARGET_LINKER_LITTLE_EMULATION "armelf_nbsd%(linker_eabi_suffix)"
|
||||||
|
|
||||||
@ -41,8 +47,6 @@
|
|||||||
#undef ARM_DEFAULT_ABI
|
#undef ARM_DEFAULT_ABI
|
||||||
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
|
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
|
||||||
|
|
||||||
#undef ARM_EABI_UNWIND_TABLES
|
|
||||||
#define ARM_EABI_UNWIND_TABLES 0
|
|
||||||
#undef ARM_UNWIND_INFO
|
#undef ARM_UNWIND_INFO
|
||||||
#define ARM_UNWIND_INFO 0
|
#define ARM_UNWIND_INFO 0
|
||||||
#undef ARM_DWARF_UNWIND_TABLES
|
#undef ARM_DWARF_UNWIND_TABLES
|
||||||
@ -57,8 +61,6 @@
|
|||||||
NETBSD_OS_CPP_BUILTINS_ELF(); \
|
NETBSD_OS_CPP_BUILTINS_ELF(); \
|
||||||
if (ARM_DWARF_UNWIND_TABLES) \
|
if (ARM_DWARF_UNWIND_TABLES) \
|
||||||
builtin_define ("__ARM_DWARF_EH__"); \
|
builtin_define ("__ARM_DWARF_EH__"); \
|
||||||
if (ARM_EABI_UNWIND_TABLES) \
|
|
||||||
builtin_define ("__UNWIND_TABLES__"); \
|
|
||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
|
|
||||||
@ -79,7 +81,9 @@
|
|||||||
|
|
||||||
#undef SUBTARGET_EXTRA_ASM_SPEC
|
#undef SUBTARGET_EXTRA_ASM_SPEC
|
||||||
#define SUBTARGET_EXTRA_ASM_SPEC \
|
#define SUBTARGET_EXTRA_ASM_SPEC \
|
||||||
"-matpcs %{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu} %{fpic|fpie:-k} %{fPIC|fPIE:-k}"
|
"-matpcs %{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu} " \
|
||||||
|
"%{fpic|fpie:-k} " \
|
||||||
|
"%{fPIC|fPIE:-k}"
|
||||||
|
|
||||||
/* Default to full VFP if -mhard-float is specified. */
|
/* Default to full VFP if -mhard-float is specified. */
|
||||||
#undef SUBTARGET_ASM_FLOAT_SPEC
|
#undef SUBTARGET_ASM_FLOAT_SPEC
|
||||||
@ -103,8 +107,8 @@
|
|||||||
|
|
||||||
#undef LINK_SPEC
|
#undef LINK_SPEC
|
||||||
#define LINK_SPEC \
|
#define LINK_SPEC \
|
||||||
"-X %{mbig-endian:-EB -m %(linker_big_emulation)} \
|
"-X %{mbig-endian:-EB -m %(linker_big_emulation)} " \
|
||||||
%{mlittle-endian:-EL -m %(linker_liitle_emulation)} \
|
"%{mlittle-endian:-EL -m %(linker_liitle_emulation)} " \
|
||||||
%{!mbig-endian:%{!mlittle-endian:-m %(linker_emulation)}} \
|
"%{!mbig-endian:%{!mlittle-endian:-m %(linker_emulation)}} " \
|
||||||
%(be8_link_spec) %(target_fix_v4bx_spec) \
|
"%(be8_link_spec) " \
|
||||||
%(netbsd_link_spec)"
|
"%(target_fix_v4bx_spec) %(netbsd_link_spec)"
|
||||||
|
@ -70,6 +70,12 @@
|
|||||||
"-matpcs %{mabi=aapcs*:-meabi=5} " \
|
"-matpcs %{mabi=aapcs*:-meabi=5} " \
|
||||||
"%{" FPIE_OR_FPIC_SPEC ":-k}"
|
"%{" FPIE_OR_FPIC_SPEC ":-k}"
|
||||||
|
|
||||||
|
#undef SUBTARGET_EXTRA_SPECS
|
||||||
|
#define SUBTARGET_EXTRA_SPECS \
|
||||||
|
{ "subtarget_extra_asm_spec", SUBTARGET_EXTRA_ASM_SPEC }, \
|
||||||
|
{ "subtarget_asm_float_spec", SUBTARGET_ASM_FLOAT_SPEC }, \
|
||||||
|
NETBSD_SUBTARGET_EXTRA_SPECS
|
||||||
|
|
||||||
/* Default to full VFP if -mfloat-abi=hard is specified. */
|
/* Default to full VFP if -mfloat-abi=hard is specified. */
|
||||||
#undef SUBTARGET_ASM_FLOAT_SPEC
|
#undef SUBTARGET_ASM_FLOAT_SPEC
|
||||||
#define SUBTARGET_ASM_FLOAT_SPEC \
|
#define SUBTARGET_ASM_FLOAT_SPEC \
|
||||||
@ -170,5 +176,3 @@ do \
|
|||||||
(void) sysarch (SYSARCH_ARM_SYNC_ICACHE, &s); \
|
(void) sysarch (SYSARCH_ARM_SYNC_ICACHE, &s); \
|
||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
//#undef FPUTYPE_DEFAULT
|
|
||||||
//#define FPUTYPE_DEFAULT "vfp"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user