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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to