Comment 6 for bug 926855

Revision history for this message
Asa Sandahl (asa-sandahl) wrote : Re: [Bug 926855] Re: [ARMhf] gcc produces assembler it can't compile

Hi Michael,

I cant' find any

"asm"

chunks in there.
(Only in some external declarations.)

Can it look any other way?

/Åsa

On 15 February 2012 22:39, Michael Hope <email address hidden> wrote:

> Asa, does the code contain any inline assembly? GCC estimates the size
> of each instruction and uses that to decide if it can use a short or a
> long branch. Long chunks of inline assembly can break that and make it
> think the code is shorter than it is.
>
> --
> You received this bug notification because you are a member of Linaro
> Toolchain Developers, which is subscribed to Linaro GCC.
> https://bugs.launchpad.net/bugs/926855
>
> Title:
> [ARMhf] gcc produces assembler it can't compile
>
> Status in Linaro GCC:
> Triaged
> Status in “gcc-4.6” package in Ubuntu:
> Confirmed
>
> Bug description:
> I'm porting the sagemath software to ARM. I completed the port with
> ubuntu oneiric.
>
> I upgraded to (a snapshot of) precise, and now a single file in the
> whole project doesn't build anymore.
>
> Hence something has been broken from oneiric/armel to precise/armhf.
>
> The attached mp.c is a "gcc -E" version of the problematic file, so it
> allows to easily reproduce the issue without fuss : if you compile it
> with "gcc -c -o mp.o mp.c -O3 -funroll-loops", then the assembler will
> find two cases of "branch out of range". Other switch combinations
> don't give problems, and the same combination is ok on x86_64 for
> example.
>
> Ah, on precise the gcc version is the one of Fri, 20 Jan 2012 12:10:59
> +100 uploaded by doko, and changelog "Merge with debian".
>
> There's no problem giving more details or doing tests if you want.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gcc-linaro/+bug/926855/+subscriptions
>