-O2 flag

Jim Ohlstein jim at mailman-hosting.com
Sun Jun 11 11:22:16 UTC 2017


On Sat, 2017-06-10 at 19:24 -0700, Russell L. Carter wrote:
> 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.

One of us has misread, but I took his statement to read that it
compiles with gcc -02 on OpenBSD. He's tried two versions of clang on
FreeBSD (38 and 40).

> 
> 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.
> 

-- 
Jim Ohlstein
Professional Mailman Hosting
https://mailman-hosting.com/



More information about the freebsd-questions mailing list