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".
---
 gcc/common.opt | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gcc/common.opt b/gcc/common.opt
index 17ea2016282..f54654cba1f 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
-- 
2.39.5

Reply via email to