On Mon, 31 Jan 2011, Xinliang David Li wrote: > On Mon, Jan 31, 2011 at 9:52 AM, Joseph S. Myers > <jos...@codesourcery.com> wrote: > > On Sun, 30 Jan 2011, Ian Lance Taylor wrote: > > > >> I think that the call to lang_hooks.init_option_struct must be moved > >> after the call to default_options_optimization, one way or another. > > > > No, that is wrong; by design this structure initialization should happen > > before the options from the command line (including -On) have their > > effects. Rather, I think -fno-fast-math - whether explicit or implicit - > > should not be overriding such language-dependent defaults for particular > > options; if a language defaults to -fno-math-errno, explicit -fmath-errno > > should be required to override that (essentially, the set of options > > implied by -ffast-math / -fno-fast-math should depend on the language). > > Should the optimization-dependent-defaluts also be split into a > language dependent and independent parts?
I hope that can be avoided, but if needed there is always the post_options hook that can do arbitrary processing as needed. -- Joseph S. Myers jos...@codesourcery.com