RISC-V: Move STARTFILE_PREFIX_SPEC into target OS files.
authorJim Wilson <jimw@sifive.com>
Thu, 6 Jun 2019 23:18:48 +0000 (23:18 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 6 Jun 2019 23:18:48 +0000 (16:18 -0700)
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

gcc/ChangeLog
gcc/config/riscv/freebsd.h
gcc/config/riscv/linux.h
gcc/config/riscv/riscv.h

index 37320f985d8e80cfc48d1a22afbf16d99d23caa9..d9e27d11545d735e59f7e161a11e1cc783157339 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-06  Jim Wilson  <jimw@sifive.com>
+
+       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  <msebor@redhat.com>
 
        * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
index 13d04ccbb47e09ad897047321ea578e939d379fa..bc5166282852c90dc39365f376cc6531b8f0d3e1 100644 (file)
@@ -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/ "
index 58dd18b89f3469b0be609bb7695d939dcca92d86..07ce80a847c9ae0e208b334e92d21cd37b2215c3 100644 (file)
@@ -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/ "
index 4edd2a6019477d9cee27021d7c7f9f199e31b693..8856cee599e65457f337a5aed6a2c68da198faf6 100644 (file)
@@ -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