diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-13 19:30:33 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-13 19:30:33 +0000 |
commit | 25e06a2bb9424a34e0eea4af7532b85c1453aa25 (patch) | |
tree | 0b182e58aca9cb1e599aa399f627ddea532431a7 | |
parent | 429b43badbc9eb936f960ebdfdf48f601a69a0a7 (diff) | |
download | gcc-25e06a2bb9424a34e0eea4af7532b85c1453aa25.tar.gz |
opts.c (c_common_init_options): Extra braces needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56262 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-opts.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd38b3c9504..ea1be68c771 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-08-13 Neil Booth <neil@daikokuya.co.uk> + + * c-opts.c (c_common_init_options): Extra braces needed. + Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com> * sh.c (sh_init_builtins): Add PARAMS to declaration. diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 2be99714775..64369a6a835 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -496,12 +496,14 @@ c_common_init_options (lang) qsort (cl_options, N_OPTS, sizeof (struct cl_option), opt_comp); #endif #if ENABLE_CHECKING + { size_t i; for (i = 1; i < N_OPTS; i++) if (strcmp (cl_options[i - 1].opt_text, cl_options[i].opt_text) >= 0) error ("options array incorrectly sorted: %s is before %s", cl_options[i - 1].opt_text, cl_options[i].opt_text); + } #endif c_language = lang; |