https://gcc.gnu.org/g:7ba5e0e4509dc0bfd4932137b8d89ce97c8a5425

commit r16-5718-g7ba5e0e4509dc0bfd4932137b8d89ce97c8a5425
Author: Sandra Loosemore <[email protected]>
Date:   Mon Nov 17 00:00:18 2025 +0000

    doc, ft32: Clean up FT32 options and documentation [PR122243]
    
    gcc/ChangeLog
            PR other/122243
            * config/ft32/ft32.opt (mlra): Mark obsolete option as Undocumented.
            * doc/invoke.texi (Option Summary) <FT32 Options>: Remove -mlra.
            (FT32 Options): Likewise.  Add @opindex entries for negative
            option forms.

Diff:
---
 gcc/config/ft32/ft32.opt |  2 +-
 gcc/doc/invoke.texi      | 13 +++++++------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/gcc/config/ft32/ft32.opt b/gcc/config/ft32/ft32.opt
index 039ca29db3a7..def410d2af11 100644
--- a/gcc/config/ft32/ft32.opt
+++ b/gcc/config/ft32/ft32.opt
@@ -23,7 +23,7 @@ Target Mask(SIM)
 Target the software simulator.
 
 mlra
-Target RejectNegative Ignore
+Target RejectNegative Ignore Undocumented
 Ignored, but preserved for backward compatibility.
 
 mnodiv
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d3d5cc93772a..fab22655d9a9 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1087,7 +1087,7 @@ Objective-C and Objective-C++ Dialects}.
 @gccoptlist{-msmall-model  -mno-lsim}
 
 @emph{FT32 Options} (@ref{FT32 Options})
-@gccoptlist{-msim  -mlra  -mnodiv  -mft32b  -mcompress  -mnopm}
+@gccoptlist{-msim  -mnodiv  -mft32b  -mcompress  -mnopm}
 
 @emph{FRV Options} (@ref{FRV Options})
 @gccoptlist{-mgpr-32  -mgpr-64  -mfpr-32  -mfpr-64
@@ -27737,6 +27737,7 @@ These options are defined specifically for the FT32 
port.
 @table @gcctabopt
 
 @opindex msim
+@opindex mno-sim
 @item -msim
 Specifies that the program will be run on the simulator.  This causes
 an alternate runtime startup and library to be linked.
@@ -27744,23 +27745,23 @@ You must not use this option when generating programs 
that will run on
 real hardware; you must provide your own runtime library for whatever
 I/O functions are needed.
 
-@opindex mlra
-@item -mlra
-Does nothing.  Preserved for backward compatibility.
-
 @opindex mnodiv
+@opindex mno-nodiv
 @item -mnodiv
 Do not use div and mod instructions.
 
 @opindex mft32b
+@opindex mno-ft32b
 @item -mft32b
 Enable use of the extended instructions of the FT32B processor.
 
 @opindex mcompress
+@opindex mno-compress
 @item -mcompress
 Compress all code using the Ft32B code compression scheme.
 
-@opindex  mnopm
+@opindex mnopm
+@opindex mno-nopm
 @item -mnopm
 Do not generate code that reads program memory.

Reply via email to