From 976650bcac6692bdc5d66b4254d64ca7fab9b8a7 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 17 Jul 2003 05:33:18 +0000 Subject: * 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 --- gcc/opts.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/opts.c') 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) -- cgit v1.2.1