> The compiler outputs a bg branch instruction when it should use a bgu. The
> cause seems to be related to having a negative value in the enumeration.

Fixed in 3.4.4pre:

_Z13DummyFunction10tTestEnum2:
.LLFB2:
        !#PROLOGUE# 0
        !#PROLOGUE# 1
        add     %o0, -2, %o0
        cmp     %o0, 1
        bgu     .LL2
        mov     0, %g1
        mov     2, %g1
.LL2:
        retl
        mov     %g1, %o0
.LLFE2:
        .size   _Z13DummyFunction10tTestEnum2, .-_Z13DummyFunction10tTestEnum2
        .ident  "GCC: (GNU) 3.4.4 20050224 (prerelease)"

-- 
Eric Botcazou

Reply via email to