[Aldor-l] GCC / ICC differences

Gabriel Dos Reis gdr at integrable-solutions.net
Sat Aug 16 23:53:23 EDT 2008


2008/8/16  <pip88nl at gmail.com>:
> I just did a full recompile using ICC (everything, including rona) and
> found a few differences. Aldor compiled with gcc segfaults when compiling
> tests/library/axllib/bug1247.as, but not when compiled with icc. Also,
> tests/library/axllib/float4.as has the following differences:
>
> < Original: 0
> < integer 0 = 0
> < fraction 0 = 0
> < round 0 = 0
> < round(0,nearest) = 0
> < round(0,up) = 0
> < round(0,down) = 0
> < round(0,zero) = 0
> < round(0,any) = 0
> ---
>> Original: -0
>> integer -0 = 0
>> fraction -0 = 0
>> round -0 = 0
>> round(-0,nearest) = 0
>> round(-0,up) = 0
>> round(-0,down) = 0
>> round(-0,zero) = 0
>> round(-0,any) = 0
>
> The latter is ICC. This output is in fact equal to the output in
> aldor/lib/axllib/testout/float4.out and supposedly correct. What is GCC
> doing to get different results and are these actually correct, as well?
>
> Pippijn

What optimization flags did you use for both compilers?

-- Gaby



More information about the Aldor-l mailing list