diff options
author | gfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-02 21:19:17 +0000 |
---|---|---|
committer | gfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-02 21:19:17 +0000 |
commit | 634b1f856f3cead5bc8370fbcc22077d2505c26a (patch) | |
tree | f7d31cb76ec49cf7d2ed94711ee6111092b65896 /gcc/opts.c | |
parent | bc83f58704de603dcd6863a3e2f9dcc994b6c14f (diff) | |
download | gcc-634b1f856f3cead5bc8370fbcc22077d2505c26a.tar.gz |
2011-09-02 Gary Funck <gary@intrepid.com>
* opts.c (print_specific_help): Fix off-by-one compare in
assertion check.
* opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
Increase by +5 to allow for more languages.
* optc-gen.awk: Generate #if that ensures that the number of
languages is within the implementation-defined limit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178491 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/opts.c b/gcc/opts.c index 59e8910f18c..5d5bcb96028 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -1125,7 +1125,7 @@ print_specific_help (unsigned int include_flags, /* Sanity check: Make sure that we do not have more languages than we have bits available to enumerate them. */ - gcc_assert ((1U << cl_lang_count) < CL_MIN_OPTION_CLASS); + gcc_assert ((1U << cl_lang_count) <= CL_MIN_OPTION_CLASS); /* If we have not done so already, obtain the desired maximum width of the output. */ |