[Bug target/39247] FAIL: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE

mikpe at it dot uu dot se gcc-bugzilla@gcc.gnu.org
Sun Oct 18 12:55:00 GMT 2009



------- Comment #3 from mikpe at it dot uu dot se  2009-10-18 12:55 -------
On ARM, gcc generates assembly code for the bb-reorg.c test case that gas fails
to assemble. The pr34999.c test case fails for the same reason. The following 
reduced assembly snippet illustrates it:

> cat bb-reorg.s
        .text
        .align  2
        .global main
main:
        ldr     r0, .L30
        mov     pc, lr
        .section        .text.unlikely
        .align  2
.L30:   .word   1819043176
> as bb-reorg.s
bb-reorg.s: Assembler messages:
bb-reorg.s:5: Error: internal_relocation (type: OFFSET_IMM) not fixed up

This still occurs with the recently released binutils-2.20.

Does gcc generate invalid assembly code, or is the assembly code valid and gas
is in error for failing to handle it?

Should the bb-reorg and pr34999 test cases be XFAILed on arm until this is
resolved?


-- 

mikpe at it dot uu dot se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu dot se


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39247



More information about the Gcc-bugs mailing list