diff options
author | Richard Guenther <rguenther@suse.de> | 2010-06-01 13:00:46 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-06-01 13:00:46 +0000 |
commit | 0641fa9781e8cd257e0113360bef387bcbfd4b96 (patch) | |
tree | 2563221c514417af4e907e265bbeb3950fc915eb /gcc | |
parent | c4e09c3f8bbbeb122fec25eed43a8fbb9b51df88 (diff) | |
download | gcc-0641fa9781e8cd257e0113360bef387bcbfd4b96.zip gcc-0641fa9781e8cd257e0113360bef387bcbfd4b96.tar.gz gcc-0641fa9781e8cd257e0113360bef387bcbfd4b96.tar.bz2 |
optabs.c (init_optabs): Guard all accesses to reinit.
2010-06-01 Richard Guenther <rguenther@suse.de>
* optabs.c (init_optabs): Guard all accesses to reinit.
* ipa-pure-const.c (propagate): Fix another typo.
* opts.c (common_handle_option): Split assignment to bool.
* c-opts.c (c_common_handle_option): Likewise.
From-SVN: r160102
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/c-opts.c | 3 | ||||
-rw-r--r-- | gcc/ipa-pure-const.c | 3 | ||||
-rw-r--r-- | gcc/optabs.c | 4 | ||||
-rw-r--r-- | gcc/opts.c | 3 |
5 files changed, 17 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a4bdbe..c738fb0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-06-01 Richard Guenther <rguenther@suse.de> + + * optabs.c (init_optabs): Guard all accesses to reinit. + * ipa-pure-const.c (propagate): Fix another typo. + * opts.c (common_handle_option): Split assignment to bool. + * c-opts.c (c_common_handle_option): Likewise. + 2010-06-01 Arnaud Charlet <charlet@adacore.com> Matthew Gingell <gingell@adacore.com> diff --git a/gcc/c-opts.c b/gcc/c-opts.c index b485c25..08592f5 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -849,7 +849,8 @@ c_common_handle_option (size_t scode, const char *arg, int value, break; case OPT_fpermissive: - global_dc->permissive = flag_permissive = value; + flag_permissive = value; + global_dc->permissive = value; break; case OPT_fpreprocessed: diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index 3bea566..df2f8c8 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -1110,7 +1110,8 @@ propagate (void) } pure_const_state = MAX (pure_const_state, MIN (edge_state, w_l->state_previously_known)); - looping = MAX (looping, MIN (edge_looping, edge_state)); + looping = MAX (looping, MIN (edge_looping, + w_l->looping_previously_known)); if (pure_const_state == IPA_NEITHER) break; } diff --git a/gcc/optabs.c b/gcc/optabs.c index f753def..52b4cb9 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -6173,7 +6173,9 @@ void init_optabs (void) { unsigned int i; +#if GCC_VERSION >= 4000 && HAVE_DESIGNATED_INITIALIZERS static bool reinit; +#endif libfunc_hash = htab_create_ggc (10, hash_libfunc, eq_libfunc, NULL); /* Start by initializing all tables to contain CODE_FOR_nothing. */ @@ -6670,7 +6672,9 @@ init_optabs (void) /* Allow the target to add more libcalls or rename some, etc. */ targetm.init_libfuncs (); +#if GCC_VERSION >= 4000 && HAVE_DESIGNATED_INITIALIZERS reinit = true; +#endif } /* Print information about the current contents of the optabs on @@ -2182,7 +2182,8 @@ common_handle_option (size_t scode, const char *arg, int value, break; case OPT_pedantic_errors: - global_dc->pedantic_errors = flag_pedantic_errors = pedantic = 1; + flag_pedantic_errors = pedantic = 1; + global_dc->pedantic_errors = 1; break; case OPT_fwhopr: |