diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2015-07-14 18:22:45 -0400 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2015-07-14 18:22:45 -0400 |
commit | 77c50d73f614a99388b94e0b5a9c393723c06f8c (patch) | |
tree | 7998bb20c4283cbb5406e4acc7cb94abd44e886f /gcc/config.gcc | |
parent | ff7097f21e538fc38bf22e30acfbea74433fb2b4 (diff) | |
download | gcc-77c50d73f614a99388b94e0b5a9c393723c06f8c.zip gcc-77c50d73f614a99388b94e0b5a9c393723c06f8c.tar.gz gcc-77c50d73f614a99388b94e0b5a9c393723c06f8c.tar.bz2 |
nios2.opt (march, mbmx, mcdx): New options.
2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
Chung-Lin Tang <cltang@codesourcery.com>
gcc/
* config/nios2/nios2.opt (march, mbmx, mcdx): New options.
* config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
Nios II architecture level.
* config/nios2/nios2.h (TARGET_ARCH_R2): New define.
(TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
(OPTION_DEFAULT_SPECS): Define.
(ASM_SPEC): Add -march= spec strings.
* config/nios2/nios2.c (nios2_option_override): Check for
conflicts involving new options.
* config.gcc (nios2*-*-*): Support --with-arch=.
* doc/invoke.texi (Option Summary, Nios II Options): Document
-march=, -mbmx, and -mcdx.
Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
Co-Authored-By: Chung-Lin Tang <cltang@codesourcery.com>
From-SVN: r225791
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 900aa18..d6b928d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4052,6 +4052,19 @@ case "${target}" in esac ;; + nios2*-*-*) + supported_defaults="arch" + case "$with_arch" in + "" | r1 | r2) + # OK + ;; + *) + echo "Unknown arch used in --with-arch=$with_arch" 1>&2 + exit 1 + ;; + esac + ;; + powerpc*-*-* | rs6000-*-*) supported_defaults="abi cpu cpu_32 cpu_64 float tune tune_32 tune_64 advance_toolchain" |