------- Additional Comments From hjl at lucon dot org  2004-10-16 19:31 -------
This is a 3.4/4.0 regression. Gcc 3.2 generates correct code:

        .file   "foo.c"
        .pred.safe_across_calls p1-p5,p16-p63
        .sbss
        .align 4
        .type   n.0#,@object
        .size   n.0#,4
n.0:
        .skip   4
        .text
        .align 16
        .global main#
        .proc main#
main:
        .prologue
        .body
        .mib
        nop 0
        mov r8 = r14
        br.ret.sptk.many b0
        .endp main#
        .align 16
        .global foo#
        .proc foo#
foo:
        .prologue
        .body
        .mlx
        addl r2 = @gprel(n.0#), gp
        movl r3 = -357910392
        ;;
        .mib
        nop 0
        add r8 = r2, r3
        br.ret.sptk.many b0
        .endp foo#
        .ident  "GCC: (GNU) 3.2.3 20030502 (Red Hat Linux 3.2.3-42)"


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|relocation truncated to fit:|[3.4/4.0 Regression]:
                   |GPREL22                     |relocation truncated to fit:
                   |                            |GPREL22


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

Reply via email to