Date: Sat, 10 Jun 2017 21:25:05 -0300 From: Friedrich Locke <friedrich.locke@gmail.com> To: Eduardo Morras <emorrasg@yahoo.es>, freebsd-questions@freebsd.org Subject: Re: -O2 flag Message-ID: <593C8DE1.4060803@gmail.com> In-Reply-To: <20170610223753.4e37600d2c32d0b689144e00@yahoo.es> References: <593C4679.5010104@gmail.com> <20170610223753.4e37600d2c32d0b689144e00@yahoo.es>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ? Em 10/06/2017 17:37, Eduardo Morras via freebsd-questions escreveu: > On Sat, 10 Jun 2017 16:20:25 -0300 > Friedrich Locke <friedrich.locke@gmail.com> wrote: > >> Hi folks, >> >> i am trying compile a program with cc on freebsd 11. >> When i use -O2 compilation flag, the compiled code is giving error on >> execution, but with i omit -O2 everything works ok. >> >> Have anybody already faced such problem ? > > No, which compiler are you using? Which version? Are you using the last > version? It looks like a bug in the compiler, perhaps modifying your > code you can bypass it. > > In FreeBSD 11, the default cc is clang38, try with clang40. To install > it, use port llvm40, it includes clang40 now: > > #pkg install llvm40 > > and use clang40 instead cc. > >> Thanks in advance. > > HTH > > --- --- > Eduardo Morras <emorrasg@yahoo.es> > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?593C8DE1.4060803>