------- Comment #6 from geoffk at gcc dot gnu dot org  2006-08-22 01:20 -------
It turns out that if you compile this with 'gcc -mcpu=G4 -O -gdwarf-2' on
powerpc-darwin, this testcase works fine, but if you do it with '-mcpu=G3', it
fails; that is, it fails when V4SFmode is not supported by the target.  The
testcase does correctly generate a DW_AT_const_value:

        .byte   0x7     ; uleb128 0x7; (DIE (0xa0) DW_TAG_variable)
        .ascii "Foo\0"  ; DW_AT_name
        .byte   0x1     ; DW_AT_decl_file
        .byte   0x2     ; DW_AT_decl_line
        .long   0x72    ; DW_AT_type
        .byte   0x10    ; DW_AT_const_value
        .long   0x4d6e6b28      ; fp or vector constant word 0
        .long   0x0     ; fp or vector constant word 1
        .long   0x0     ; fp or vector constant word 2
        .long   0x0     ; fp or vector constant word 3


-- 


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

Reply via email to