[Issue 9722] optimizer kills GOT to EBX load

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 14 20:15:13 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

--- Comment #3 from github-bugzilla at puremagic.com 2013-03-14 20:15:12 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c3fa2edf6a1881f59afdcf101ba0f4a592f62c67
fix Issue 9722 - optimizer kills GOT to EBX load

https://github.com/D-Programming-Language/dmd/commit/28b16887c2007838e7bae7aff6e26aec5466398b
Merge pull request #1748 from WalterBright/fix9722

fix Issue 9722 - optimizer kills GOT to EBX load

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