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-4.4.5] wrong code, segfault in libtommath-0.42.0 with "-O2 -fgraphite-identity"


W dniu 2011-06-17 11:10, Ian Lance Taylor pisze:
> Many programs crash at -O2 but not at -O1.  That is because -O2
> implements more aggressive optimizations.  It does not mean that the
> compiler is wrong.
> 
> Often the program will work if you use -fno-strict-aliasing
> -fno-strict-overflow along with -O2.  If so, it still does not indicate
> a compiler bug; it indicates a program bug.

Thanks for explanation!
libtommath works with -fno-strict-aliasing -fno-strict-overflow , i
notified upstream (but i can't prepare test case ).
Regards,
Marcin.


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