On Sun, Jan 25, 2015 at 9:51 AM, Vladimir A. Pavlov <pv4@xxxxx> 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