#513 struct in idata incorrect initialiation

closed-fixed
5
2003-05-19
2003-05-10
No

zeropad_storage_idata.c in regression tests for host ds390:

struct x idata teststruct[3] = {
...
}

; gen/ds390/zeropad/zeropad_storage_idata.c:19: struct x
idata teststruct[3] = {
; genPointerSet
mov r0,#_teststruct
mov @r0,#0x0A
inc r0
mov @r0,#0x00
; genArrayInit
mov dptr, #(_teststruct + 0x0002)
; store 1 x 0x1 to DPTR (element size 10)
mov a, #0x01
movx @dptr, a
inc dptr

teststruct.a is correctly initialized, but
data for teststruct.b are written to XDATA.

Discussion

  • Bernhard Held

    Bernhard Held - 2003-05-19
    • status: open --> closed
     
  • Bernhard Held

    Bernhard Held - 2003-05-19
    • assigned_to: nobody --> johanknol
    • status: closed --> closed-fixed
     
  • Bernhard Held

    Bernhard Held - 2003-05-19

    Logged In: YES
    user_id=203539

    Fixed in ds390/main.c 1.49 and ds390/gen.c 1.185 by Johan.

     

Log in to post a comment.