friedrich.locke at gmail.com
Sun Jun 11 00:25:09 UTC 2017
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 at 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.
> --- ---
> Eduardo Morras <emorrasg at yahoo.es>
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions