From d9e042ac0bc08b6c3890cc53cbd43c73c522e720 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Wed, 14 May 2014 16:27:14 -0700 Subject: [PATCH] Sync nios2 configure changes from GCC mainline. 2014-05-14 Sandra Loosemore * configure.ac (target_makefile_frag): Set for nios2-*-elf*. * configure: Regenerated. config/ * mt-nios2-elf: New file. --- ChangeLog | 5 +++++ config/ChangeLog | 4 ++++ config/mt-nios2-elf | 5 +++++ configure | 3 +++ configure.ac | 3 +++ 5 files changed, 20 insertions(+) create mode 100644 config/mt-nios2-elf diff --git a/ChangeLog b/ChangeLog index e3cd1d80e6..dcf12bb273 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-05-14 Sandra Loosemore + + * configure.ac (target_makefile_frag): Set for nios2-*-elf*. + * configure: Regenerated. + 2014-03-26 Jakub Jelinek PR sanitizer/56781 diff --git a/config/ChangeLog b/config/ChangeLog index 885e067853..8212c31bb0 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2014-05-14 Sandra Loosemore + + * mt-nios2-elf: New file. + 2013-12-07 Mike Frysinger * acinclude.m4: Remove +x file mode. diff --git a/config/mt-nios2-elf b/config/mt-nios2-elf new file mode 100644 index 0000000000..1dee7c6439 --- /dev/null +++ b/config/mt-nios2-elf @@ -0,0 +1,5 @@ +# We build library code with -mno-gpopt so that it can be linked with +# larger executables with small-data sections that exceed the 16-bit +# offset range for GP-relative addressing. +CFLAGS_FOR_TARGET += -mno-gpopt +CXXFLAGS_FOR_TARGET += -mno-gpopt diff --git a/configure b/configure index 3f217a2eea..36455713f3 100755 --- a/configure +++ b/configure @@ -6992,6 +6992,9 @@ case "${target}" in mips*-*-*linux* | mips*-*-gnu*) target_makefile_frag="config/mt-mips-gnu" ;; + nios2-*-elf*) + target_makefile_frag="config/mt-nios2-elf" + ;; *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) target_makefile_frag="config/mt-gnu" ;; diff --git a/configure.ac b/configure.ac index 3c7b1ffac3..07c3a66dd6 100644 --- a/configure.ac +++ b/configure.ac @@ -2370,6 +2370,9 @@ case "${target}" in mips*-*-*linux* | mips*-*-gnu*) target_makefile_frag="config/mt-mips-gnu" ;; + nios2-*-elf*) + target_makefile_frag="config/mt-nios2-elf" + ;; *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) target_makefile_frag="config/mt-gnu" ;; -- 2.34.1