aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorGary Funck <gary@intrepid.com>2011-09-02 21:19:17 +0000
committerGary Funck <gary@intrepid.com>2011-09-02 21:19:17 +0000
commit20376a4c31803c899cbdfa3529fd95a5291472dc (patch)
treef7d31cb76ec49cf7d2ed94711ee6111092b65896 /gcc/opts.c
parent00e614ae0febfe1279b05cc73d35bb42a699e59b (diff)
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: https://gcc.gnu.org/svn/gcc/trunk@178491 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c2
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. */