This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Committed to trunk], was: Re: [RFD] -ffinite-math-only.


Gabriel Dos Reis wrote:

>    Many thanks for having done this.   I have a small request however
> (I'll implement it if agreed upon):  I'll prefer __FINITE_MATH_ONLY__
> be defined to be 1 if flag_finite_math_only is set and 0 otherwise (I
> wasn't clear in my previous message, sorry).

So you want to have it like the treatment of `flag_hosted' in
c-common.c(cb_register_builtins), i.e., something like:

  if (flag_finite_math_only)
    cpp_define (pfile, "__FINITE_MATH_ONLY__=1");
  else
    cpp_define (pfile, "__FINITE_MATH_ONLY__=0");

?  Just to be sure ...

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]