summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-17 05:33:18 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-17 05:33:18 +0000
commit976650bcac6692bdc5d66b4254d64ca7fab9b8a7 (patch)
treefec195bdc2e5316cb4e977a34615e03efeb33383 /gcc/opts.c
parent878870b49e114a18ebe3c78d1fef3a632dfe49b9 (diff)
downloadgcc-976650bcac6692bdc5d66b4254d64ca7fab9b8a7.tar.gz
* c.opt: Document Uncodumented; use it. Document ObjC options.
* opts.c (print_filtered_help): Skip undocumented switches. * opts.h (CL_UNDOCUMENTED): New. * opts.sh: Handle Undocumented. * toplev.c (documented_lang_options): Prevent its becoming empty. f: * lang-options.h: Remove. * lang.opt: Document most options. objc: * lang-options.h: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69494 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 7a203dcc2ec..6e966633f20 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1523,6 +1523,10 @@ print_filtered_help (unsigned int flag)
if ((cl_options[i].flags & filter) != flag)
continue;
+ /* Skip help for internal switches. */
+ if (cl_options[i].flags & CL_UNDOCUMENTED)
+ continue;
+
/* During transition, ignore switches with no help. */
help = cl_options[i].help;
if (!help)