diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2024-04-09 11:48:13 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2024-04-16 11:04:02 +0800 |
commit | 46d914d0e0b7e982627edb285c41c67cc4e640ac (patch) | |
tree | 561254e5eaa6e45a8c0b883c01c3fdf77e997c11 | |
parent | e1d4c8e44a2348e91befb4e7ef25ffe73c74db41 (diff) | |
download | gcc-46d914d0e0b7e982627edb285c41c67cc4e640ac.zip gcc-46d914d0e0b7e982627edb285c41c67cc4e640ac.tar.gz gcc-46d914d0e0b7e982627edb285c41c67cc4e640ac.tar.bz2 |
LoongArch: Add indexes for some compilation options.
gcc/ChangeLog:
* config/loongarch/loongarch.opt.urls: Regenerate.
* config/mn10300/mn10300.opt.urls: Likewise.
* config/msp430/msp430.opt.urls: Likewise.
* config/nds32/nds32-elf.opt.urls: Likewise.
* config/nds32/nds32-linux.opt.urls: Likewise.
* config/nds32/nds32.opt.urls: Likewise.
* config/pru/pru.opt.urls: Likewise.
* config/riscv/riscv.opt.urls: Likewise.
* config/rx/rx.opt.urls: Likewise.
* config/sh/sh.opt.urls: Likewise.
* config/sparc/sparc.opt.urls: Likewise.
* doc/invoke.texi: Add indexes for some compilation options.
-rw-r--r-- | gcc/config/loongarch/loongarch.opt.urls | 9 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/msp430/msp430.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/nds32/nds32-elf.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/nds32/nds32-linux.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/nds32/nds32.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/pru/pru.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/riscv/riscv.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/rx/rx.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh.opt.urls | 2 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.opt.urls | 2 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 7 |
12 files changed, 23 insertions, 13 deletions
diff --git a/gcc/config/loongarch/loongarch.opt.urls b/gcc/config/loongarch/loongarch.opt.urls index 88f0bb0..9ed5d7b 100644 --- a/gcc/config/loongarch/loongarch.opt.urls +++ b/gcc/config/loongarch/loongarch.opt.urls @@ -57,12 +57,17 @@ UrlSuffix(gcc/LoongArch-Options.html#index-mrecip) mrecip UrlSuffix(gcc/LoongArch-Options.html#index-mrecip) -; skipping UrlSuffix for 'mcmodel=' due to finding no URLs +mcmodel= +UrlSuffix(gcc/LoongArch-Options.html#index-mcmodel) mdirect-extern-access UrlSuffix(gcc/LoongArch-Options.html#index-mdirect-extern-access) -; skipping UrlSuffix for 'mrelax' due to finding no URLs +mrelax +UrlSuffix(gcc/LoongArch-Options.html#index-mrelax-2) + +mpass-mrelax-to-as +UrlSuffix(gcc/LoongArch-Options.html#index-mpass-mrelax-to-as) mtls-dialect= UrlSuffix(gcc/LoongArch-Options.html#index-mtls-dialect-1) diff --git a/gcc/config/mn10300/mn10300.opt.urls b/gcc/config/mn10300/mn10300.opt.urls index 396ca4a..d0d1cce 100644 --- a/gcc/config/mn10300/mn10300.opt.urls +++ b/gcc/config/mn10300/mn10300.opt.urls @@ -19,7 +19,7 @@ mno-crt0 UrlSuffix(gcc/MN10300-Options.html#index-mno-crt0) mrelax -UrlSuffix(gcc/MN10300-Options.html#index-mrelax-2) +UrlSuffix(gcc/MN10300-Options.html#index-mrelax-3) mreturn-pointer-on-d0 UrlSuffix(gcc/MN10300-Options.html#index-mreturn-pointer-on-d0) diff --git a/gcc/config/msp430/msp430.opt.urls b/gcc/config/msp430/msp430.opt.urls index 420c1c5..b8b8f9c 100644 --- a/gcc/config/msp430/msp430.opt.urls +++ b/gcc/config/msp430/msp430.opt.urls @@ -28,7 +28,7 @@ msmall UrlSuffix(gcc/MSP430-Options.html#index-msmall) mrelax -UrlSuffix(gcc/MSP430-Options.html#index-mrelax-3) +UrlSuffix(gcc/MSP430-Options.html#index-mrelax-4) minrt UrlSuffix(gcc/MSP430-Options.html#index-minrt) diff --git a/gcc/config/nds32/nds32-elf.opt.urls b/gcc/config/nds32/nds32-elf.opt.urls index 5399afb..3ae1efe 100644 --- a/gcc/config/nds32/nds32-elf.opt.urls +++ b/gcc/config/nds32/nds32-elf.opt.urls @@ -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) +UrlSuffix(gcc/NDS32-Options.html#index-mcmodel-1) diff --git a/gcc/config/nds32/nds32-linux.opt.urls b/gcc/config/nds32/nds32-linux.opt.urls index 27d39f0..ac589cc 100644 --- a/gcc/config/nds32/nds32-linux.opt.urls +++ b/gcc/config/nds32/nds32-linux.opt.urls @@ -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) +UrlSuffix(gcc/NDS32-Options.html#index-mcmodel-1) diff --git a/gcc/config/nds32/nds32.opt.urls b/gcc/config/nds32/nds32.opt.urls index e34512d..44fa069 100644 --- a/gcc/config/nds32/nds32.opt.urls +++ b/gcc/config/nds32/nds32.opt.urls @@ -51,7 +51,7 @@ mctor-dtor UrlSuffix(gcc/NDS32-Options.html#index-mctor-dtor) mrelax -UrlSuffix(gcc/NDS32-Options.html#index-mrelax-4) +UrlSuffix(gcc/NDS32-Options.html#index-mrelax-5) ; skipping UrlSuffix for 'munaligned-access' due to finding no URLs diff --git a/gcc/config/pru/pru.opt.urls b/gcc/config/pru/pru.opt.urls index 1f8a26a..c87affb 100644 --- a/gcc/config/pru/pru.opt.urls +++ b/gcc/config/pru/pru.opt.urls @@ -7,7 +7,7 @@ mmcu= UrlSuffix(gcc/PRU-Options.html#index-mmcu-2) mno-relax -UrlSuffix(gcc/PRU-Options.html#index-mno-relax) +UrlSuffix(gcc/PRU-Options.html#index-mno-relax-1) mloop UrlSuffix(gcc/PRU-Options.html#index-mloop) diff --git a/gcc/config/riscv/riscv.opt.urls b/gcc/config/riscv/riscv.opt.urls index 351f7f0..2f01ae5 100644 --- a/gcc/config/riscv/riscv.opt.urls +++ b/gcc/config/riscv/riscv.opt.urls @@ -49,7 +49,7 @@ UrlSuffix(gcc/RISC-V-Options.html#index-mstrict-align-4) ; skipping UrlSuffix for 'mexplicit-relocs' due to finding no URLs mrelax -UrlSuffix(gcc/RISC-V-Options.html#index-mrelax-5) +UrlSuffix(gcc/RISC-V-Options.html#index-mrelax-6) mcsr-check UrlSuffix(gcc/RISC-V-Options.html#index-mcsr-check) diff --git a/gcc/config/rx/rx.opt.urls b/gcc/config/rx/rx.opt.urls index 4cb0373..7af4bd2 100644 --- a/gcc/config/rx/rx.opt.urls +++ b/gcc/config/rx/rx.opt.urls @@ -25,7 +25,7 @@ msmall-data-limit= UrlSuffix(gcc/RX-Options.html#index-msmall-data-limit-2) mrelax -UrlSuffix(gcc/RX-Options.html#index-mrelax-6) +UrlSuffix(gcc/RX-Options.html#index-mrelax-7) mmax-constant-size= UrlSuffix(gcc/RX-Options.html#index-mmax-constant-size) diff --git a/gcc/config/sh/sh.opt.urls b/gcc/config/sh/sh.opt.urls index 2c3bc06..b282bc2 100644 --- a/gcc/config/sh/sh.opt.urls +++ b/gcc/config/sh/sh.opt.urls @@ -148,7 +148,7 @@ mprefergot UrlSuffix(gcc/SH-Options.html#index-mprefergot) mrelax -UrlSuffix(gcc/SH-Options.html#index-mrelax-7) +UrlSuffix(gcc/SH-Options.html#index-mrelax-8) mrenesas UrlSuffix(gcc/SH-Options.html#index-mrenesas) diff --git a/gcc/config/sparc/sparc.opt.urls b/gcc/config/sparc/sparc.opt.urls index 7977467..5a3e9d7 100644 --- a/gcc/config/sparc/sparc.opt.urls +++ b/gcc/config/sparc/sparc.opt.urls @@ -84,7 +84,7 @@ mtune= UrlSuffix(gcc/SPARC-Options.html#index-mtune-15) mcmodel= -UrlSuffix(gcc/SPARC-Options.html#index-mcmodel-1) +UrlSuffix(gcc/SPARC-Options.html#index-mcmodel-2) ; skipping UrlSuffix for 'mdebug=' due to finding no URLs diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e328558..7e517b8 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -27011,6 +27011,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 @item -mcmodel=@var{code-model} Set the code model to one of: @table @samp @@ -27073,6 +27074,8 @@ kernels, executables linked with @option{-static} or @option{-static-pie}. @option{-mdirect-extern-access} is not compatible with @option{-fPIC} or @option{-fpic}. +@opindex mrelax +@opindex mno-relax @item -mrelax @itemx -mno-relax Take (do not take) advantage of linker relaxations. If @@ -27085,6 +27088,8 @@ option and the conditional branch relaxation (it's required or the assembly code outputted by GCC may be rejected by the assembler because of a relocation overflow), @option{-mno-relax} otherwise. +@opindex mpass-mrelax-to-as +@opindex mno-pass-mrelax-to-as @item -mpass-mrelax-to-as @itemx -mno-pass-mrelax-to-as Pass (do not pass) the @option{-mrelax} or @option{-mno-relax} option @@ -27201,7 +27206,7 @@ Use traditional TLS. This is the default. Use TLS descriptors. @end table -@item loongarch-vect-unroll-limit +@item --param loongarch-vect-unroll-limit=@var{n} The vectorizer will use available tuning information to determine whether it would be beneficial to unroll the main vectorized loop and by how much. This parameter set's the upper bound of how much the vectorizer will unroll the main |