This is the mail archive of the gcc-help@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: Gcc floating-point optimizer weird behaviour


On Sun, Jan 25, 2015 at 9:51 AM, Vladimir A. Pavlov <pv4@bk.ru> wrote:
>
> Is it gcc bug or do I misunderstand how floating-point arithmetics
> works in C and what is allowed for optimizer?
>
> If it's my fault can anyone explain (e.g. provide links) please why
> it's an allowed behaviour of optimizer?

See the description of -fexcess-precision in the manual.  You probably
want -fexcess-precision=standard or -std=c99.

Ian


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