Ryan Mansfield(deleted)
|
Re: floating point optimization crash under 6.4.1
|
Ryan Mansfield(deleted)
06/16/2009 12:17 PM
post31893
|
Re: floating point optimization crash under 6.4.1
KEvin Raymond wrote:
> Hello All,
>
> We are working on a project that includes an old math module that does an enormous amount of calculations that need to
be done as quickly as possible. The project successfully compiles and runs in QNX 6.4.0, but it complies and crashes in
6.4.1. We found that we needed to speed it up, so we inserted the following line into the make file:
>
> CCFLAGS := $(CCFLAGS) -O2 -march=core2 -msse -msse2 -msse3 -mssse3 -ffast-math
>
> We are running the executables on identical hardware, so there is not a problem with the CPU not supporting the
instructions. We tried compiling in 6.4.0 with the optimizations and running it on the 6.4.1 computer, and found that
the program with optimizations was at least 100% faster than compiling on 6.4.1 without the optimizations.
>
> The project is large and has several dependencies, so I cannot post any sample code at this point. The program crashes
100% of the time with the optimizations, so at least it's not an intermittent problem. It's crashing with Signal 11, a
segmentation fault. We have done a lot of testing on the program in QNX 6.4.0, and have never received this crash.
Does the program crash if you compile on 6.4.1 without optimization? If
it doesn't crash without optimization, please try adding
-fno-strict-aliasing to the CCFLAGS you posted.
Without a testcase its difficult for us to help.
Regards,
Ryan Mansfield
|
|
|