Fix some opindex for some options [PR115022]

While looking at the index I noticed that some options had
`-` in the front for the index which is wrong. And then
I noticed there was no index for `mcmodel=` for targets or had
used `-mcmodel` incorrectly.

This fixes both of those and regnerates the urls files see that
`-mcmodel=` option now has an url associated with it.

gcc/ChangeLog:

	PR target/115022
	* doc/invoke.texi (fstrub=disable): Fix opindex.
	(minline-memops-threshold): Fix opindex.
	(mcmodel=): Add opindex and fix them.
	* common.opt.urls: Regenerate.
	* config/aarch64/aarch64.opt.urls: Regenerate.
	* config/bpf/bpf.opt.urls: Regenerate.
	* config/i386/i386.opt.urls: Regenerate.
	* config/loongarch/loongarch.opt.urls: Regenerate.
	* config/nds32/nds32-elf.opt.urls: Regenerate.
	* config/nds32/nds32-linux.opt.urls: Regenerate.
	* config/or1k/or1k.opt.urls: Regenerate.
	* config/riscv/riscv.opt.urls: Regenerate.
	* config/rs6000/aix64.opt.urls: Regenerate.
	* config/rs6000/linux64.opt.urls: Regenerate.
	* config/sparc/sparc.opt.urls: Regenerate.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
This commit is contained in:
Andrew Pinski 2024-05-29 20:40:31 -07:00
parent 7e322d576e
commit a0d60660f2
13 changed files with 33 additions and 16 deletions

View file

@ -1339,6 +1339,9 @@ UrlSuffix(gcc/Optimize-Options.html#index-fstrict-aliasing)
fstrict-overflow
UrlSuffix(gcc/Code-Gen-Options.html#index-fstrict-overflow)
fstrub=disable
UrlSuffix(gcc/Instrumentation-Options.html#index-fstrub_003ddisable)
fstrub=strict
UrlSuffix(gcc/Instrumentation-Options.html#index-fstrub_003dstrict)

View file

@ -18,7 +18,8 @@ UrlSuffix(gcc/AArch64-Options.html#index-mfix-cortex-a53-843419)
mlittle-endian
UrlSuffix(gcc/AArch64-Options.html#index-mlittle-endian)
; skipping UrlSuffix for 'mcmodel=' due to finding no URLs
mcmodel=
UrlSuffix(gcc/AArch64-Options.html#index-mcmodel_003d)
mtp=
UrlSuffix(gcc/AArch64-Options.html#index-mtp)

View file

@ -33,3 +33,6 @@ UrlSuffix(gcc/eBPF-Options.html#index-msmov)
mcpu=
UrlSuffix(gcc/eBPF-Options.html#index-mcpu-5)
minline-memops-threshold=
UrlSuffix(gcc/eBPF-Options.html#index-minline-memops-threshold)

View file

@ -40,7 +40,8 @@ UrlSuffix(gcc/x86-Options.html#index-march-16)
mlarge-data-threshold=
UrlSuffix(gcc/x86-Options.html#index-mlarge-data-threshold)
; skipping UrlSuffix for 'mcmodel=' due to finding no URLs
mcmodel=
UrlSuffix(gcc/x86-Options.html#index-mcmodel_003d-7)
mcpu=
UrlSuffix(gcc/x86-Options.html#index-mcpu-14)

View file

@ -58,7 +58,7 @@ mrecip
UrlSuffix(gcc/LoongArch-Options.html#index-mrecip)
mcmodel=
UrlSuffix(gcc/LoongArch-Options.html#index-mcmodel)
UrlSuffix(gcc/LoongArch-Options.html#index-mcmodel_003d-1)
mdirect-extern-access
UrlSuffix(gcc/LoongArch-Options.html#index-mdirect-extern-access)

View file

@ -1,5 +1,5 @@
; Autogenerated by regenerate-opt-urls.py from gcc/config/nds32/nds32-elf.opt and generated HTML
mcmodel=
UrlSuffix(gcc/NDS32-Options.html#index-mcmodel-1)
UrlSuffix(gcc/NDS32-Options.html#index-mcmodel_003d-2)

View file

@ -1,5 +1,5 @@
; Autogenerated by regenerate-opt-urls.py from gcc/config/nds32/nds32-linux.opt and generated HTML
mcmodel=
UrlSuffix(gcc/NDS32-Options.html#index-mcmodel-1)
UrlSuffix(gcc/NDS32-Options.html#index-mcmodel_003d-2)

View file

@ -24,7 +24,8 @@ UrlSuffix(gcc/OpenRISC-Options.html#index-mdouble-float-3)
munordered-float
UrlSuffix(gcc/OpenRISC-Options.html#index-munordered-float)
; skipping UrlSuffix for 'mcmodel=' due to finding no URLs
mcmodel=
UrlSuffix(gcc/OpenRISC-Options.html#index-mcmodel_003d-3)
mcmov
UrlSuffix(gcc/OpenRISC-Options.html#index-mcmov-1)

View file

@ -41,7 +41,8 @@ UrlSuffix(gcc/RISC-V-Options.html#index-msave-restore)
mshorten-memrefs
UrlSuffix(gcc/RISC-V-Options.html#index-mshorten-memrefs)
; skipping UrlSuffix for 'mcmodel=' due to finding no URLs
mcmodel=
UrlSuffix(gcc/RISC-V-Options.html#index-mcmodel_003d-4)
mstrict-align
UrlSuffix(gcc/RISC-V-Options.html#index-mstrict-align-4)

View file

@ -6,7 +6,8 @@ UrlSuffix(gcc/RS_002f6000-and-PowerPC-Options.html#index-maix64)
maix32
UrlSuffix(gcc/RS_002f6000-and-PowerPC-Options.html#index-maix32)
; skipping UrlSuffix for 'mcmodel=' due to finding no URLs
mcmodel=
UrlSuffix(gcc/RS_002f6000-and-PowerPC-Options.html#index-mcmodel_003d-5)
mpe
UrlSuffix(gcc/RS_002f6000-and-PowerPC-Options.html#index-mpe)

View file

@ -1,4 +1,5 @@
; Autogenerated by regenerate-opt-urls.py from gcc/config/rs6000/linux64.opt and generated HTML
; skipping UrlSuffix for 'mcmodel=' due to finding no URLs
mcmodel=
UrlSuffix(gcc/RS_002f6000-and-PowerPC-Options.html#index-mcmodel_003d-5)

View file

@ -84,7 +84,7 @@ mtune=
UrlSuffix(gcc/SPARC-Options.html#index-mtune-15)
mcmodel=
UrlSuffix(gcc/SPARC-Options.html#index-mcmodel-2)
UrlSuffix(gcc/SPARC-Options.html#index-mcmodel_003d-6)
; skipping UrlSuffix for 'mdebug=' due to finding no URLs

View file

@ -18248,7 +18248,7 @@ without @option{-fsplit-stack} always has a large stack. Support for
this is implemented in the gold linker in GNU binutils release 2.21
and later.
@opindex -fstrub=disable
@opindex fstrub=disable
@item -fstrub=disable
Disable stack scrubbing entirely, ignoring any @code{strub} attributes.
See @xref{Common Type Attributes}.
@ -21185,6 +21185,7 @@ impose any restrictions on the assembler.
Generate little-endian code. This is the default when GCC is configured for an
@samp{aarch64-*-*} but not an @samp{aarch64_be-*-*} target.
@opindex mcmodel=
@opindex mcmodel=tiny
@item -mcmodel=tiny
Generate code for the tiny code model. The program and its statically defined
@ -25832,7 +25833,7 @@ Outputs pseudo-c assembly dialect.
@end table
@opindex -minline-memops-threshold
@opindex minline-memops-threshold
@item -minline-memops-threshold=@var{bytes}
Specifies a size threshold in bytes at or below which memmove, memcpy
and memset shall always be expanded inline. Operations dealing with
@ -27092,7 +27093,7 @@ section (on some targets). The default value is 0.
Inline all block moves (such as calls to @code{memcpy} or structure copies)
less than or equal to @var{n} bytes. The default value of @var{n} is 1024.
@opindex mcmodel
@opindex mcmodel=
@item -mcmodel=@var{code-model}
Set the code model to one of:
@table @samp
@ -29631,7 +29632,7 @@ which must be a power of 2 between 4 and 512.
@item -march=@var{arch}
Specify the name of the target architecture.
@opindex mcmodel
@opindex mcmodel=
@item -mcmodel=@var{code-model}
Set the code model to one of
@table @asis
@ -30232,6 +30233,7 @@ Enable generation of shift with immediate (@code{l.srai}, @code{l.srli},
@code{l.slli}) instructions. By default extra instructions will be generated
to store the immediate to a register first.
@opindex mcmodel=
@opindex mcmodel=small
@item -mcmodel=small
Generate OpenRISC code for the small model: The GOT is limited to 64k. This is
@ -31102,6 +31104,7 @@ Do not or do generate unaligned memory accesses. The default is set depending
on whether the processor we are optimizing for supports fast unaligned access
or not.
@opindex mcmodel=
@opindex mcmodel=medlow
@item -mcmodel=medlow
Generate code for the medium-low code model. The program and its statically
@ -31119,7 +31122,7 @@ The code generated by the medium-any code model is position-independent, but is
not guaranteed to function correctly when linked into position-independent
executables or libraries.
@opindex -mcmodel=large
@opindex mcmodel=large
@item -mcmodel=large
Generate code for a large code model, which has no restrictions on size or
placement of symbols.
@ -31450,6 +31453,7 @@ values for @var{cpu_type} are used for @option{-mtune} as for
architecture and registers set by @option{-mcpu}, but the
scheduling parameters set by @option{-mtune}.
@opindex mcmodel=
@opindex mcmodel=small
@item -mcmodel=small
Generate PowerPC64 code for the small model: The TOC is limited to
@ -33782,7 +33786,7 @@ The 32-bit environment sets int, long and pointer to 32 bits.
The 64-bit environment sets int to 32 bits and long and pointer
to 64 bits.
@opindex mcmodel
@opindex mcmodel=
@item -mcmodel=@var{which}
Set the code model to one of
@ -36286,6 +36290,7 @@ stack pointer that is not modified by signal or interrupt handlers
and therefore can be used for temporary data without adjusting the stack
pointer. The flag @option{-mno-red-zone} disables this red zone.
@opindex mcmodel=
@opindex mcmodel=small
@item -mcmodel=small
Generate code for the small code model: the program and its symbols must