https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103438

--- Comment #10 from Nils Smeds <nils.smeds at gmail dot com> ---
Is there a benefit to augment the -Q output as follows?

[tooladmin@login2302 build]$ diff -r -p a b
diff -r -p a/gcc/opts.c b/gcc/opts.c
*** a/gcc/opts.c        Wed Jul 28 08:55:07 2021
--- b/gcc/opts.c        Thu Dec  2 13:50:34 2021
*************** print_filtered_help (unsigned int includ
*** 1531,1536 ****
--- 1531,1538 ----
                    strcat (new_help, _("[enabled]"));
                  else if (ena == 0)
                    strcat (new_help, _("[disabled]"));
+           else
+                   strcat (new_help, _("[deferred]"))
                }
            }

------
This should lead to the following diff:

-  -fdelete-null-pointer-checks                 [enabled]
+  -fdelete-null-pointer-checks                 [deferred]
@@ -332 +332 @@
-  -fleading-underscore                 [enabled]
+  -fleading-underscore                 [deferred]
@@ -393 +393 @@
-  -fprefetch-loop-arrays               [enabled]
+  -fprefetch-loop-arrays               [deferred]
@@ -502 +502 @@
-  -fstrict-volatile-bitfields          [enabled]
+  -fstrict-volatile-bitfields          [deferred]
@@ -533 +533 @@
-  -ftree-loop-if-convert               [enabled]
+  -ftree-loop-if-convert               [deferred]

Indicating to the user that he/she should dig further if they are interested to
find out how/if the option is in effect.

Reply via email to