Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Feb 2017 15:36:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216770] lang/julia: fails to build with clang 4.0
Message-ID:  <bug-216770-13-VD8eVw3zW7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216770-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216770-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216770

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emaste@freebsd.org

--- Comment #9 from Dimitry Andric <dim@FreeBSD.org> ---
(In reply to tavert from comment #8)
> Is that working around a compiler bug in clang 4.0, or undefined behavior=
 in
> the source where other compiler versions behaved differently?

It's not entirely clear yet.  It seems that adding that line, or putting so=
me
printf's in the ratio() function "fixes" it, either due to some sort of
undefined behavior or a compiler bug.  So as a quick stopgap it would proba=
bly
be OK.

That said, I did some bisecting of upstream llvm/clang, and this revision
causes the trouble:
http://llvm.org/viewvc/llvm-project?view=3Drevision&revision=3D280351

------------------------------------------------------------------------
r280351 | jamesm | 2016-09-01 12:44:35 +0200 (Thu, 01 Sep 2016) | 22 lines

[SimplifyCFG] Change the algorithm in SinkThenElseCodeToEnd

It shuffles around some code in smisc.c's ratio() function, apparently with
interesting effects.  I still need to figure out some way of transforming t=
his
into a test case for upstream, or if it is actually caused by undefined
behavior, some workaround that can be applied permanently.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216770-13-VD8eVw3zW7>