[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: filter unwated cflags? (-ffast-math)
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2013-04-16 18:29:25
Message-ID: 2620204.HgVoAeljuH () xps
[Download RAW message or body]

El Dimarts, 16 d'abril de 2013, a les 16:39:32, Bernd Buschinski va escriure:
> hi,

Hi

> I am not sure how do deal with unwanted cflags(cxxflags), so I ask here :)
> 
> For kjs for example -ffast-math is known to cause problems, as we stricly
> rely on IEEE compatible floating point, NaN, Inf, signed Zero and all the
> stuff.
> 
> So the question should I filter them? or leave it to the user to
> optimize(break) his system?

Well, if you know it'll break, you should shout. If that shouting means just a 
huge message or stopping the compilation i am not sure, but if it'll give you 
extra work for no reason in forme of bugs, etc. i'd go for stopping the 
compilation.

Cheers,
  Albert

> 
> If you say yes to filter, it also involves
> -fno-math-errno
> -funsafe-math-optimizations
> -ffinite-math-only
> -fno-rounding-math
> -fno-signaling-nans
> -fcx-limited-range
> and I have no clue if there are msvc (or other compiler) versions of them.
> 
> If you are against filter, how should I deal with bugreport caused by XYZ
> cflag?
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic