This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]