On Fri, Sep 13, 2013 at 6:45 PM, Joseph S. Myers <jos...@codesourcery.com> wrote: > On Fri, 13 Sep 2013, Richard Biener wrote: > >> @@ -1691,6 +1695,12 @@ common_handle_option (struct gcc_options >> opts->x_flag_ipa_reference = false; >> break; >> >> + case OPT_ftree_vectorize: >> + if (!opts_set->x_flag_tree_loop_vectorize) >> + opts->x_flag_tree_loop_vectorize = value; >> + if (!opts_set->x_flag_tree_slp_vectorize) >> + opts->x_flag_tree_slp_vectorize = value; >> + break; >> >> doesn't look obviously correct. Does that handle > > It looks right to me. The general principle is that the more specific > option takes precedence over the less specific one, whatever the order on > the command line. > >> -ftree-vectorize -fno-tree-loop-vectorize -ftree-vectorize > > Should mean -ftree-slp-vectorize. > >> -ftree-loop-vectorize -fno-tree-vectorize > > Should mean -ftree-loop-vectorize. > >> -ftree-slp-vectorize -fno-tree-vectorize > > Should mean -ftree-slp-vectorize.
Thanks for clarifying. Richard. > -- > Joseph S. Myers > jos...@codesourcery.com