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/doc | |
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/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 22ab269..522e924 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -857,7 +857,8 @@ Objective-C and Objective-C++ Dialects}. -mhw-mul -mno-hw-mul -mhw-mulx -mno-hw-mulx -mno-hw-div -mhw-div @gol -mcustom-@var{insn}=@var{N} -mno-custom-@var{insn} @gol -mcustom-fpu-cfg=@var{name} @gol --mhal -msmallc -msys-crt0=@var{name} -msys-lib=@var{name}} +-mhal -msmallc -msys-crt0=@var{name} -msys-lib=@var{name} @gol +-march=@var{arch} -mbmx -mno-bmx -mcdx -mno-cdx} @emph{Nvidia PTX Options} @gccoptlist{-m32 -m64 -mmainkernel} @@ -18500,6 +18501,15 @@ small data section. Generate little-endian (default) or big-endian (experimental) code, respectively. +@item -march=@var{arch} +@opindex march +This specifies the name of the target Nios II architecture. GCC uses this +name to determine what kind of instructions it can emit when generating +assembly code. Permissible names are: @samp{r1}, @samp{r2}. + +The preprocessor macro @code{__nios2_arch__} is available to programs, +with value 1 or 2, indicating the targeted ISA level. + @item -mbypass-cache @itemx -mno-bypass-cache @opindex mno-bypass-cache @@ -18538,6 +18548,15 @@ Enable or disable emitting @code{mul}, @code{mulx} and @code{div} family of instructions by the compiler. The default is to emit @code{mul} and not emit @code{div} and @code{mulx}. +@item -mbmx +@itemx -mno-bmx +@itemx -mcdx +@itemx -mno-cdx +Enable or disable generation of Nios II R2 BMX (bit manipulation) and +CDX (code density) instructions. Enabling these instructions also +requires @option{-march=r2}. Since these instructions are optional +extensions to the R2 architecture, the default is not to emit them. + @item -mcustom-@var{insn}=@var{N} @itemx -mno-custom-@var{insn} @opindex mcustom-@var{insn} |