[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#706207: gcc-4.6, gcc-4.7: invalid optimization when doing double -> int math and conversion (on big endian archs(?))



forwarded 706207 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57080
severity 706207 minor
thank you

On Fri, Apr 26, 2013 at 2:09 PM, Bastian Blank <waldi@debian.org> wrote:
> On Fri, Apr 26, 2013 at 01:04:30PM +0200, Ondřej Surý wrote:
>> I don't object to this, but somehow I fail to grasp the idea that the
>> result depends on architecture and optimization level.
>
> There are negative number involved. The result is somewhere within
> 5.0+-$epsilon depending on order of calculation and other parameters.
>
>> I would expect consistent results, even consistent *bad* results would be ok.
>
> Do you have consistent results on _one_ architecture and _one_
> optimization level?

I do get the same result on every compilation for every combination of
arch-optimization, but I still think the results should not differ
with architecture and optimization level.

I am lowering the severity and moving the discussion to gcc bugzilla, ok?

Ondrej
--
Ondřej Surý <ondrej@sury.org>


Reply to: