From: Jim Wilson Date: Thu, 6 Jun 2019 23:18:48 +0000 (+0000) Subject: RISC-V: Move STARTFILE_PREFIX_SPEC into target OS files. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e664ed0938357392823d2a43be8a196526dd97c;p=gcc.git RISC-V: Move STARTFILE_PREFIX_SPEC into target OS files. gcc/ PR target/89955 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted. * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added. * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added. From-SVN: r272021 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37320f985d8..d9e27d11545 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-06-06 Jim Wilson + + PR target/89955 + * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted. + * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added. + * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added. + 2019-06-06 Martin Sebor * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article. diff --git a/gcc/config/riscv/freebsd.h b/gcc/config/riscv/freebsd.h index 13d04ccbb47..bc516628285 100644 --- a/gcc/config/riscv/freebsd.h +++ b/gcc/config/riscv/freebsd.h @@ -52,3 +52,9 @@ along with GCC; see the file COPYING3. If not see %{rdynamic:-export-dynamic} \ -dynamic-linker " FBSD_DYNAMIC_LINKER "} \ %{static:-static}}" + +#define STARTFILE_PREFIX_SPEC \ + "/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ + "/usr/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ + "/lib/ " \ + "/usr/lib/ " diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h index 58dd18b89f3..07ce80a847c 100644 --- a/gcc/config/riscv/linux.h +++ b/gcc/config/riscv/linux.h @@ -68,3 +68,9 @@ along with GCC; see the file COPYING3. If not see %{static:-static}}" #define TARGET_ASM_FILE_END file_end_indicate_exec_stack + +#define STARTFILE_PREFIX_SPEC \ + "/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ + "/usr/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ + "/lib/ " \ + "/usr/lib/ " diff --git a/gcc/config/riscv/riscv.h b/gcc/config/riscv/riscv.h index 4edd2a60194..8856cee599e 100644 --- a/gcc/config/riscv/riscv.h +++ b/gcc/config/riscv/riscv.h @@ -893,12 +893,6 @@ extern unsigned riscv_stack_boundary; "%{mabi=lp64f:lp64f}" \ "%{mabi=lp64d:lp64d}" \ -#define STARTFILE_PREFIX_SPEC \ - "/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ - "/usr/lib" XLEN_SPEC "/" ABI_SPEC "/ " \ - "/lib/ " \ - "/usr/lib/ " - /* ISA constants needed for code generation. */ #define OPCODE_LW 0x2003 #define OPCODE_LD 0x3003