Sync nios2 configure changes from GCC mainline.
authorSandra Loosemore <sandra@codesourcery.com>
Wed, 14 May 2014 23:27:14 +0000 (16:27 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Wed, 14 May 2014 23:27:14 +0000 (16:27 -0700)
2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>

* configure.ac (target_makefile_frag): Set for nios2-*-elf*.
* configure: Regenerated.

config/
* mt-nios2-elf: New file.

ChangeLog
config/ChangeLog
config/mt-nios2-elf [new file with mode: 0644]
configure
configure.ac

index e3cd1d8..dcf12bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * configure.ac (target_makefile_frag): Set for nios2-*-elf*.
+       * configure: Regenerated.
+
 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/56781
index 885e067..8212c31 100644 (file)
@@ -1,3 +1,7 @@
+2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * mt-nios2-elf: New file.
+
 2013-12-07  Mike Frysinger  <vapier@gentoo.org>
 
        * acinclude.m4: Remove +x file mode.
diff --git a/config/mt-nios2-elf b/config/mt-nios2-elf
new file mode 100644 (file)
index 0000000..1dee7c6
--- /dev/null
@@ -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
index 3f217a2..3645571 100755 (executable)
--- 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"
     ;;
index 3c7b1ff..07c3a66 100644 (file)
@@ -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"
     ;;