[Issue 8903] Bad code for enum array members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 10 07:56:13 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=8903


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #6 from yebblies <yebblies at gmail.com> 2013-12-11 02:56:10 EST ---
Allocation is now gone:

_D5testx6test_bFiZv PROC NEAR
;  COMDEF _D5testx6test_bFiZv
        push    ebp                                     ; 0000 _ 55
        mov     ebp, esp                                ; 0001 _ 8B. EC
        sub     esp, 52                                 ; 0003 _ 83. EC, 34
        push    ebx                                     ; 0006 _ 53
        push    esi                                     ; 0007 _ 56
        mov     dword ptr [ebp-4H], eax                 ; 0008 _ 89. 45, FC
        mov     byte ptr [ebp-34H], 0                   ; 000B _ C6. 45, CC, 00
        cmp     eax, 8                                  ; 000F _ 83. F8, 08
        jc      ?_004                                   ; 0012 _ 72, 0A
        mov     eax, 19                                 ; 0014 _ B8, 00000013
        call    _D5testx7__arrayZ                       ; 0019 _ E8,
00000000(rel)
?_004:  mov     dword ptr [ebp-24H], 1                  ; 001E _ C7. 45, DC,
00000001
        mov     ecx, 2                                  ; 0025 _ B9, 00000002
        mov     dword ptr [ebp-20H], ecx                ; 002A _ 89. 4D, E0
        mov     dword ptr [ebp-1CH], 3                  ; 002D _ C7. 45, E4,
00000003
        mov     dword ptr [ebp-18H], 4                  ; 0034 _ C7. 45, E8,
00000004
        mov     dword ptr [ebp-14H], 5                  ; 003B _ C7. 45, EC,
00000005
        mov     dword ptr [ebp-10H], 6                  ; 0042 _ C7. 45, F0,
00000006
        mov     dword ptr [ebp-0CH], 7                  ; 0049 _ C7. 45, F4,
00000007
        mov     dword ptr [ebp-8H], 8                   ; 0050 _ C7. 45, F8,
00000008
        lea     edx, [ebp-24H]                          ; 0057 _ 8D. 55, DC
        mov     ebx, dword ptr [ebp-4H]                 ; 005A _ 8B. 5D, FC
        mov     esi, dword ptr [edx+ebx*4]              ; 005D _ 8B. 34 9A
        pop     esi                                     ; 0060 _ 5E
        pop     ebx                                     ; 0061 _ 5B
        leave                                           ; 0062 _ C9
        ret                                             ; 0063 _ C3
_D5testx6test_bFiZv ENDP

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


More information about the Digitalmars-d-bugs mailing list