bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to


From: nickc at redhat dot com
Subject: [Bug binutils/19311] arm-linux-as build on Mac OS X with Xcode7 fails to assemble code from FreePascal cross-compiler
Date: Tue, 26 Jan 2016 10:10:16 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19311

--- Comment #7 from Nick Clifton <nickc at redhat dot com> ---
Hi Loria,

> Investigation so far shows evidence of some problem with loop optimization
> of the construct used in "encode_arm_immediate"

So this *is* a host compiler bug.  Phew!

> #define rotate_left(v, n) (v << n | v >> (32 - n))
>   for (i = 0; i < 32; i += 2)
>     if ((a = rotate_left (val, i)) <= 0xff)
>       return a | (i << 7); /* 12-bit pack: [shift-cnt,const].  */
>   return FAIL;

> I am looking for a way to either add a workaround or set some optimzerflag
> to stop the broken code from beeing submitted.

You could try turning rotate_left into an inline function.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]