]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Add --specs=nosys.specs support.
authorJim Wilson <jimw@sifive.com>
Fri, 26 Jan 2018 21:24:22 +0000 (21:24 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 26 Jan 2018 21:24:22 +0000 (13:24 -0800)
gcc/
* config/riscv/elf.h (LIB_SPEC): Don't include -lgloss when nosys.specs
specified.

From-SVN: r257109

gcc/ChangeLog
gcc/config/riscv/elf.h

index dc83c382a51153bad5eeed8e66c8b83efdab0d2f..d6af45247335cbad0da3bdb495a8ae032450856c 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-26  Jim Wilson  <jimw@sifive.com>
+
+       * config/riscv/elf.h (LIB_SPEC): Don't include -lgloss when nosys.specs
+       specified.
+
 2018-01-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * config/aarch64/aarch64.md: Add peepholes for CMP + SUB -> SUBS
index 43ad68bbdf2712eb5a0899402a6fcad075fbcbef..f39e83234d261462f571ee8a1773122b42dc8737 100644 (file)
@@ -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"