-O2 flag

Russell L. Carter rcarter at pinyon.org
Sun Jun 11 02:31:03 UTC 2017

On 06/10/17 18:47, Jim Ohlstein wrote:
> On Sat, 2017-06-10 at 21:25 -0300, Friedrich Locke wrote:
>> i switched to clan40, same error, i.e., it still persist.
>> The problem is that open OpenBSD/amd64 6.1, "gcc -O2" works 100 %.
>> What could it be the problem ?
> As a practical suggestion, how about installing one of the versions of
> gcc in ports and using that to compile your app?

He's tried both gcc and clang and the result was the same.  The problem
is most likely an assumption about the values on the stack, given that
the application "works" on openbsd.

These stack details were pointed out previously and all the new evidence
only increases the likelihood that it is a stack problem in the code.

No guarantees, though.


More information about the freebsd-questions mailing list