diff options
author | Gary Funck <gary@intrepid.com> | 2011-09-02 21:19:17 +0000 |
---|---|---|
committer | Gary Funck <gfunck@gcc.gnu.org> | 2011-09-02 21:19:17 +0000 |
commit | 58265ea647cc3d461d5ecb0b6f7ee7a20adf8be1 (patch) | |
tree | f7d31cb76ec49cf7d2ed94711ee6111092b65896 /gcc/opts.c | |
parent | dde460d482fcf150d17b0baa2bc0b97714ec6365 (diff) | |
download | gcc-58265ea647cc3d461d5ecb0b6f7ee7a20adf8be1.zip gcc-58265ea647cc3d461d5ecb0b6f7ee7a20adf8be1.tar.gz gcc-58265ea647cc3d461d5ecb0b6f7ee7a20adf8be1.tar.bz2 |
opts.c (print_specific_help): Fix off-by-one compare in assertion check.
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.
From-SVN: r178491
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |