[PATCH] Fix -ffast-math flags handling inconsistencies
Ulrich Weigand
uweigand@de.ibm.com
Tue Feb 11 12:47:00 GMT 2020
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.Weigand@de.ibm.com
More information about the Gcc-patches
mailing list