:: Re: [DNG] Gcc issue?
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: parazyd
Ημερομηνία:  
Προς: Steven W. Scott
Υ/ο: dng
Αντικείμενο: Re: [DNG] Gcc issue?
On Thu, 21 Apr 2016, Steven W. Scott wrote:

>    Just curious, anyone else getting segfaults after compiling with gcc -O3
>    optimization flag on alpha 4? Same system, same code, same flags work ok
>    on Wheezy. If I back down to -O2 no problems.

>
>    I'm blaming gcc, but I was interested if anyone else had a similar
>    experience or insight as to what might be the issue.


Do you actually understand how optimization works? The bigger the level,
the more unsafe code you get, like you just got segfaults. Depending on
the program, one will take some max. level of optimization, but any
higher and it will break, like yours did. Note how many more warnings
you get on compilation as you get higher in optimization level.
You could blame GCC, because optimization is a feature of GCC, but I'd still
keep calm and just compile with -O2, which is basically a standard these days.

--
~ parazyd
6CB4 6C63 641D B1F1 F811 5B3A BB5E 2E35 B92E 373E