summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2014-05-14 19:20:59 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2014-05-14 19:20:59 -0400
commit707f18393ac81938e72cc4a44e0dcff6b7bef617 (patch)
tree0a48c7bd6748694abc7bd5e54e4327b1f592eca4
parente494d89c37fcbcbe7e28b9027d6dddc8d73651c9 (diff)
configure.ac (target_makefile_frag): Set for nios2-*-elf*.
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. From-SVN: r210451
-rw-r--r--ChangeLog5
-rw-r--r--config/ChangeLog4
-rw-r--r--config/mt-nios2-elf5
-rwxr-xr-xconfigure3
-rw-r--r--configure.ac3
5 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a5ecacc3a49..14a777fc576 100644
--- 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-05-15 Torvald Riegel <triegel@redhat.com>
* MAINTAINERS (libitm): Add myself as maintainer.
diff --git a/config/ChangeLog b/config/ChangeLog
index f4152c4ebff..1079c7fb6fc 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
+
+ * mt-nios2-elf: New file.
+
2014-04-25 Marc Glisse <marc.glisse@inria.fr>
PR target/43538
diff --git a/config/mt-nios2-elf b/config/mt-nios2-elf
new file mode 100644
index 00000000000..1dee7c6439e
--- /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 3f217a2eeab..36455713f33 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 3c7b1ffac3a..07c3a66dd6d 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"
;;