aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-05-31 09:28:28 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2012-05-31 09:28:28 +0000
commite8baa9bc334ae61e9beb93876e08551af2358b71 (patch)
treee17191ca4def6f21313f064c9605ac1c550622af /gcc
parent9daf64e704f70cbd6ec1b9684a3a3e546830d6a2 (diff)
downloadgcc-e8baa9bc334ae61e9beb93876e08551af2358b71.zip
gcc-e8baa9bc334ae61e9beb93876e08551af2358b71.tar.gz
gcc-e8baa9bc334ae61e9beb93876e08551af2358b71.tar.bz2
cris.h (CC1_SPEC): Pass through all -march= and -mcpu= options.
* config/cris/cris.h (CC1_SPEC): Pass through all -march= and -mcpu= options. (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10, non-v32 into --march=v0_v0_v10. From-SVN: r188051
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/cris/cris.h8
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 10f66ba..ee2afa5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-31 Hans-Peter Nilsson <hp@axis.com>
+
+ * config/cris/cris.h (CC1_SPEC): Pass through all -march=
+ and -mcpu= options.
+ (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
+ non-v32 into --march=v0_v0_v10.
+
2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
* ira-int.h (target_ira_int): Rename x_move_cost to
diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h
index edb5f97..78fbe68 100644
--- a/gcc/config/cris/cris.h
+++ b/gcc/config/cris/cris.h
@@ -156,11 +156,13 @@ extern int cris_cpu_version;
" -D__CRIS_arch_tune=" CRIS_DEFAULT_TUNE "}}}}}"\
CRIS_ARCH_CPP_DEFAULT
-/* Override previous definitions (linux.h). */
+/* Override previous definitions (../linux.h). */
#undef CC1_SPEC
#define CC1_SPEC \
"%{metrax4:-march=v3}\
%{metrax100:-march=v8}\
+ %{march=*:-march=%*}\
+ %{mcpu=*:-mcpu=%*}\
%(cc1_subtarget)"
/* For the cris-*-elf subtarget. */
@@ -190,7 +192,9 @@ extern int cris_cpu_version;
MAYBE_AS_NO_MUL_BUG_ABORT \
"%(asm_subtarget)\
%{march=*:%{mcpu=*:%edo not specify both -march=... and -mcpu=...}}\
- %{march=v32:--march=v32} %{mcpu=v32:--march=v32}"
+ %{march=v0|mcpu=v0|march=v3|mcpu=v3|march=v8|mcpu=v8:--march=v0_v10}\
+ %{march=v10|mcpu=v10:--march=v10}\
+ %{march=v32|mcpu=v32:--march=v32}"
/* For the cris-*-elf subtarget. */
#define CRIS_ASM_SUBTARGET_SPEC \