Re: Issue with undefined reference with assembler in rr

2016-01-14 Thread Dave Johansen
On Thu, Jan 14, 2016 at 5:39 AM, Richard W.M. Jones wrote: > On Wed, Jan 13, 2016 at 10:00:08PM -0700, Dave Johansen wrote: > > I was working on packaging rr [1] and one of the tests [2] fails to build > > when optimizations are turned on. I've reduced it to the following and > > still been able

Re: Issue with undefined reference with assembler in rr

2016-01-14 Thread Richard W.M. Jones
On Wed, Jan 13, 2016 at 10:00:08PM -0700, Dave Johansen wrote: > I was working on packaging rr [1] and one of the tests [2] fails to build > when optimizations are turned on. I've reduced it to the following and > still been able to reproduce the issue: > > static const float xmm0 = 10; > > int m

Issue with undefined reference with assembler in rr

2016-01-13 Thread Dave Johansen
I was working on packaging rr [1] and one of the tests [2] fails to build when optimizations are turned on. I've reduced it to the following and still been able to reproduce the issue: static const float xmm0 = 10; int main() { __asm__ __volatile__( #if __i386__ "movss xmm0, %xmm0\n\t" #e