aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-08-15 11:36:10 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-08-15 11:36:10 +0800
commit793e263d62bb7f85426899cd7a86e821dd38d12a (patch)
tree144b04348f1236fdf04210b04eb225c5a409be3f
parentdb4af57502996870a3d0ef3018d017bf8bb9c069 (diff)
downloadtoolchain_gcc-793e263d62bb7f85426899cd7a86e821dd38d12a.tar.gz
toolchain_gcc-793e263d62bb7f85426899cd7a86e821dd38d12a.tar.bz2
toolchain_gcc-793e263d62bb7f85426899cd7a86e821dd38d12a.zip
Add MXU support in gcc4.6/4.7/4.8 with -mmxu
For Ingenic MXU. Change-Id: Ie7b465c971e3642b3244ac1a77b6f86be4ab4fea
-rw-r--r--gcc-4.6/gcc/config/mips/mips.h1
-rw-r--r--gcc-4.6/gcc/config/mips/mips.opt4
-rw-r--r--gcc-4.7/gcc/config/mips/mips.h1
-rw-r--r--gcc-4.7/gcc/config/mips/mips.opt4
-rw-r--r--gcc-4.8/gcc/config/mips/mips.h1
-rw-r--r--gcc-4.8/gcc/config/mips/mips.opt4
6 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/config/mips/mips.h b/gcc-4.6/gcc/config/mips/mips.h
index 79b806dd2..66478993b 100644
--- a/gcc-4.6/gcc/config/mips/mips.h
+++ b/gcc-4.6/gcc/config/mips/mips.h
@@ -1130,6 +1130,7 @@ enum mips_code_readable_setting {
%{mdspr2} %{mno-dspr2} \
%{msmartmips} %{mno-smartmips} \
%{mmt} %{mno-mt} \
+%{mmxu} %{mno-mxu} \
%{mfix-vr4120} %{mfix-vr4130} \
%(subtarget_asm_optimizing_spec) \
%(subtarget_asm_debugging_spec) \
diff --git a/gcc-4.6/gcc/config/mips/mips.opt b/gcc-4.6/gcc/config/mips/mips.opt
index 4be40b1d6..cb4bbbedf 100644
--- a/gcc-4.6/gcc/config/mips/mips.opt
+++ b/gcc-4.6/gcc/config/mips/mips.opt
@@ -234,6 +234,10 @@ mmt
Target Report Var(TARGET_MT)
Allow the use of MT instructions
+mmxu
+Target Report Var(TARGET_MXU)
+Allow the use of MXU instructions
+
mno-float
Target Report RejectNegative Var(TARGET_NO_FLOAT) Condition(TARGET_SUPPORTS_NO_FLOAT)
Prevent the use of all floating-point operations
diff --git a/gcc-4.7/gcc/config/mips/mips.h b/gcc-4.7/gcc/config/mips/mips.h
index 5146cc5de..71c55d24f 100644
--- a/gcc-4.7/gcc/config/mips/mips.h
+++ b/gcc-4.7/gcc/config/mips/mips.h
@@ -1129,6 +1129,7 @@ struct mips_cpu_info {
%{mdspr2} %{mno-dspr2} \
%{msmartmips} %{mno-smartmips} \
%{mmt} %{mno-mt} \
+%{mmxu} %{mno-mxu} \
%{mfix-vr4120} %{mfix-vr4130} \
%{mfix-24k} \
%{noasmopt:-O0; O0|fno-delayed-branch:-O1; O*:-O2; :-O1} \
diff --git a/gcc-4.7/gcc/config/mips/mips.opt b/gcc-4.7/gcc/config/mips/mips.opt
index 8dba482ce..8f01998a6 100644
--- a/gcc-4.7/gcc/config/mips/mips.opt
+++ b/gcc-4.7/gcc/config/mips/mips.opt
@@ -269,6 +269,10 @@ mmt
Target Report Var(TARGET_MT)
Allow the use of MT instructions
+mmxu
+Target Report Var(TARGET_MXU)
+Allow the use of MXU instructions
+
mno-float
Target Report RejectNegative Var(TARGET_NO_FLOAT) Condition(TARGET_SUPPORTS_NO_FLOAT)
Prevent the use of all floating-point operations
diff --git a/gcc-4.8/gcc/config/mips/mips.h b/gcc-4.8/gcc/config/mips/mips.h
index 1ad8d7dbb..819571c1a 100644
--- a/gcc-4.8/gcc/config/mips/mips.h
+++ b/gcc-4.8/gcc/config/mips/mips.h
@@ -1127,6 +1127,7 @@ struct mips_cpu_info {
%{mmcu} %{mno-mcu} \
%{msmartmips} %{mno-smartmips} \
%{mmt} %{mno-mt} \
+%{mmxu} %{mno-mxu} \
%{mfix-vr4120} %{mfix-vr4130} \
%{mfix-24k} \
%{noasmopt:-O0; O0|fno-delayed-branch:-O1; O*:-O2; :-O1} \
diff --git a/gcc-4.8/gcc/config/mips/mips.opt b/gcc-4.8/gcc/config/mips/mips.opt
index b9655a5ec..68faba353 100644
--- a/gcc-4.8/gcc/config/mips/mips.opt
+++ b/gcc-4.8/gcc/config/mips/mips.opt
@@ -269,6 +269,10 @@ mmt
Target Report Var(TARGET_MT)
Allow the use of MT instructions
+mmxu
+Target Report Var(TARGET_MXU)
+Allow the use of MXU instructions
+
mno-float
Target Report RejectNegative Var(TARGET_NO_FLOAT) Condition(TARGET_SUPPORTS_NO_FLOAT)
Prevent the use of all floating-point operations