https://gcc.gnu.org/g:4b038ec1dc349aadef9419001b579a0e00352b72

commit r16-7022-g4b038ec1dc349aadef9419001b579a0e00352b72
Author: Sandra Loosemore <[email protected]>
Date:   Mon Jan 19 15:31:08 2026 +0000

    doc: Mark -foffload-abi and -foffload-abi-host-opts undocumented [PR67300]
    
    These options are not useful to users; offload code generation assumes
    that e.g.  pointer sizes are the same on both the host and offload compiler.
    
    gcc/ChangeLog
            PR other/67300
            * common.opt (foffload-abi, foffload-abi-host-opts): Mark
            "Undocumented".

Diff:
---
 gcc/common.opt | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/common.opt b/gcc/common.opt
index 17ea20162827..f54654cba1f6 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2470,8 +2470,10 @@ foffload-options=
 Common Driver Joined RejectNegative MissingArgError(options or targets=options 
missing after %qs)
 -foffload-options=<targets>=<options>  Specify options for the offloading 
targets.
 
+; -foffload-abi is not useful to users because the host/offload
+; pointer sizes must match regardless.
 foffload-abi=
-Common Joined RejectNegative Enum(offload_abi)
+Common Undocumented Joined RejectNegative Enum(offload_abi)
 -foffload-abi=[lp64|ilp32]     Set the ABI to use in an offload compiler.
 
 Enum
@@ -2483,8 +2485,10 @@ Enum(offload_abi) String(ilp32) Value(OFFLOAD_ABI_ILP32)
 EnumValue
 Enum(offload_abi) String(lp64) Value(OFFLOAD_ABI_LP64)
 
+; -foffload-abi-host-opts is not useful to users because the host/offload
+; pointer sizes must match regardless.
 foffload-abi-host-opts=
-Common Joined RejectNegative MissingArgError(option missing after %qs)
+Common Undocumented Joined RejectNegative MissingArgError(option missing after 
%qs)
 -foffload-abi-host-opts=<options>      Specify host ABI options.
 
 fomit-frame-pointer

Reply via email to