From ee61fae2b1e8315f016384ab5b76dee796d880cd Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 26 Jan 2018 21:24:22 +0000 Subject: [PATCH] RISC-V: Add --specs=nosys.specs support. gcc/ * config/riscv/elf.h (LIB_SPEC): Don't include -lgloss when nosys.specs specified. From-SVN: r257109 --- gcc/ChangeLog | 5 +++++ gcc/config/riscv/elf.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc83c382a51..d6af4524733 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-01-26 Jim Wilson + + * config/riscv/elf.h (LIB_SPEC): Don't include -lgloss when nosys.specs + specified. + 2018-01-26 Kyrylo Tkachov * config/aarch64/aarch64.md: Add peepholes for CMP + SUB -> SUBS diff --git a/gcc/config/riscv/elf.h b/gcc/config/riscv/elf.h index 43ad68bbdf2..f39e83234d2 100644 --- a/gcc/config/riscv/elf.h +++ b/gcc/config/riscv/elf.h @@ -24,7 +24,7 @@ along with GCC; see the file COPYING3. If not see /* Link against Newlib libraries, because the ELF backend assumes Newlib. Handle the circular dependence between libc and libgloss. */ #undef LIB_SPEC -#define LIB_SPEC "--start-group -lc -lgloss --end-group" +#define LIB_SPEC "--start-group -lc %{!specs=nosys.specs:-lgloss} --end-group" #undef STARTFILE_SPEC #define STARTFILE_SPEC "crt0%O%s crtbegin%O%s" -- 2.11.4.GIT