Joseph Myers wrote: > On Mon, 10 Feb 2020, Ulrich Weigand wrote: > > I'm not sure how this can be implemented in the current option handling > > framework. The -ffast-math handling case would have to check whether > > or not there is any explicit use of -f(no-)finite-math-only; is there > > any infrastructure to readily perform such a test? > > Pass opts_set as well as opts to set_fast_math_flags, and use it for > checking whether an option was explicitly specified (whether enabled or > disabled) on the command line.
Ah, I see. I'll update the patch accordingly. Thanks! I guess I still need to check for the opts->frontend_set_... flags as well -- those are not reflected in opts_set, right? Bye, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain ulrich.weig...@de.ibm.com