[Issue 9722] optimizer kills GOT to EBX load

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 14 20:15:12 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9722



--- Comment #2 from Martin Nowak <code at dawg.eu> 2013-03-14 20:15:11 PDT ---
--------------------
dmd -c -fPIC -m32 -O bug
--------------------
_D3bug3fooFZv PROC NEAR
        push    ebp                                     ; 0000 _ 55
        mov     ebp, esp                                ; 0001 _ 8B. EC
        push    eax                                     ; 0003 _ 50
        push    ebx                                     ; 0004 _ 53
        call    ?_003                                   ; 0005 _ E8, 00000000

?_003   LABEL NEAR
        pop     ebx                                     ; 000A _ 5B
        add     ebx, offset _GLOBAL_OFFSET_TABLE_-$+1H  ; 000B _ 81. C3,
00000003(GOT r)
        call    _D3bug3barFZv                           ; 0011 _ E8,
FFFFFFFC(PLT r)
        pop     ebx                                     ; 0016 _ 5B
        mov     esp, ebp                                ; 0017 _ 8B. E5
        pop     ebp                                     ; 0019 _ 5D
        ret                                             ; 001A _ C3
_D3bug3fooFZv ENDP

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list